linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] ARM: mxs: sanitize enet_out clock handling
@ 2013-03-18  8:26 Shawn Guo
  2013-03-18  8:26 ` [PATCH v2 1/4] net: fec: handle optional clk_ptp more gracefully Shawn Guo
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Shawn Guo @ 2013-03-18  8:26 UTC (permalink / raw)
  To: linux-arm-kernel

Handling enet_out on MX28 is cumbersome at the moment. Most boards need
it enabled and for that, they have to add code to mach-mxs.c (see sps1
as an example). Since this is board specific, we better encode it in
the devicetree, that is the reason it was made for.

The seres propose to have enet_out clock defined in device tree and
have fec driver to enable the clock if found.  This will make adding
new board easier, since we don't have to touch mach-mxs.c for this
case. It scales much better.

Changes since v1:
 * Rebased on v3.9-rc1
 * Add a patch to have clk_ptp handled in the same way that enet_out
   is done
 * Add enet_out into imx28.dtsi and overwrite clocks and clock-names
   for m28evk board where the clock is absent
 * Remove unneeded enet_out clk initialization from board code

David,

If the series looks good to you, I hope I can have your ACK on the
first 2 patches to have the series go via arm-soc tree for sake of
git bisect.  Alternatively, please apply the first 2 on your tree
for 3.10 and we will queue the platform patches for 3.11.

Shawn

Shawn Guo (2):
  net: fec: handle optional clk_ptp more gracefully
  ARM: mxs: remove unneeded enet_out clk initialization

Wolfram Sang (2):
  net: freescale: fec: add support for optional enet_out clk
  ARM: dts: mxs: add enet_out clock to devicetree

 arch/arm/boot/dts/imx28-m28evk.dts   |    2 ++
 arch/arm/boot/dts/imx28.dtsi         |    4 ++--
 arch/arm/mach-mxs/mach-mxs.c         |   12 ------------
 drivers/net/ethernet/freescale/fec.c |   18 +++++++++++++-----
 drivers/net/ethernet/freescale/fec.h |    1 +
 5 files changed, 18 insertions(+), 19 deletions(-)

-- 
1.7.9.5

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-03-18 16:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-18  8:26 [PATCH v2 0/4] ARM: mxs: sanitize enet_out clock handling Shawn Guo
2013-03-18  8:26 ` [PATCH v2 1/4] net: fec: handle optional clk_ptp more gracefully Shawn Guo
2013-03-18  8:26 ` [PATCH v2 2/4] net: freescale: fec: add support for optional enet_out clk Shawn Guo
2013-03-18  8:26 ` [PATCH v2 3/4] ARM: dts: mxs: add enet_out clock to devicetree Shawn Guo
2013-03-18  8:26 ` [PATCH v2 4/4] ARM: mxs: remove unneeded enet_out clk initialization Shawn Guo
2013-03-18 16:57 ` [PATCH v2 0/4] ARM: mxs: sanitize enet_out clock handling David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).