From: w.sang@pengutronix.de (Wolfram Sang)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC 0/3] arm: mxs: sanitize enet_out clock handling
Date: Tue, 29 Jan 2013 15:46:10 +0100 [thread overview]
Message-ID: <1359470773-14290-1-git-send-email-w.sang@pengutronix.de> (raw)
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.
My proposal will overwrite the generic "clock" and "clock-names" properties
from imx28.dtsi in the board file. The original one has 2 entries, and boards
needing enet_out will overload it with three entries. The network driver will
enable the clock if it was specified. The old code enabling the clock will be
backward compatible but print a WARN if the legacy mode needs to be used.
This will make adding new board easier, since we don't have to touch mach-mxs.c
for this case. It scales much better.
Tested on a MX28EVK. Please review, comment, apply(?)
Thanks,
Wolfram
Wolfram Sang (3):
net: freescale: fec: add support for optional enet_out clk
arm: mxs: add enet_out clock to devicetree
arm: mach-mxs: make enabling enet_out a legacy function
arch/arm/boot/dts/imx28-apf28.dts | 3 +++
arch/arm/boot/dts/imx28-apx4devkit.dts | 3 +++
arch/arm/boot/dts/imx28-cfa10049.dts | 3 +++
arch/arm/boot/dts/imx28-evk.dts | 3 +++
arch/arm/boot/dts/imx28-sps1.dts | 3 +++
arch/arm/boot/dts/imx28-tx28.dts | 3 +++
arch/arm/mach-mxs/mach-mxs.c | 24 ++++++++++++++++--------
drivers/net/ethernet/freescale/fec.c | 10 ++++++++++
drivers/net/ethernet/freescale/fec.h | 1 +
9 files changed, 45 insertions(+), 8 deletions(-)
--
1.7.10.4
next reply other threads:[~2013-01-29 14:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-29 14:46 Wolfram Sang [this message]
2013-01-29 14:46 ` [RFC 1/3] net: freescale: fec: add support for optional enet_out clk Wolfram Sang
2013-01-30 5:25 ` Shawn Guo
2013-01-31 15:12 ` Wolfram Sang
2013-01-29 14:46 ` [RFC 2/3] arm: mxs: add enet_out clock to devicetree Wolfram Sang
2013-01-29 14:46 ` [RFC 3/3] arm: mach-mxs: make enabling enet_out a legacy function Wolfram Sang
2013-01-30 5:48 ` Shawn Guo
2013-01-30 7:58 ` Wolfram Sang
2013-01-30 12:29 ` Shawn Guo
2013-03-15 21:27 ` [RFC 0/3] arm: mxs: sanitize enet_out clock handling Trent Piepho
2013-03-18 6:40 ` Shawn Guo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1359470773-14290-1-git-send-email-w.sang@pengutronix.de \
--to=w.sang@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).