Thread (28 messages) 28 messages, 6 authors, 2013-01-17

[PATCH 4/4] net/smsc911x: Provide common clock functionality

From: Lee Jones <hidden>
Date: 2012-12-20 20:41:05
Also in: lkml, netdev

On Thu, 20 Dec 2012, Russell King - ARM Linux wrote:
On Thu, Dec 20, 2012 at 08:12:08PM +0100, Linus Walleij wrote:
quoted
On Wed, Dec 19, 2012 at 6:19 PM, Lee Jones [off-list ref] wrote:
quoted
Some platforms provide clocks which require enabling before the
SMSC911x chip will power on. This patch uses the new common clk
framework to do just that. If no clock is provided, it will just
be ignored and the driver will continue to assume that no clock
is required for the chip to run successfully.

Cc: Steve Glendinning <steve.glendinning@shawell.net>
Cc: netdev at vger.kernel.org
Signed-off-by: Lee Jones <redacted>
Seems to me like it'll do the trick.
Acked-by: Linus Walleij <redacted>
This looks fairly dangerous.  What about those platforms which use this
driver, but don't provide a clock for it?

It looks like this will result in those platforms losing their ethernet
support.  There's at least a bunch of the ARM evaluation boards which
make use of this driver...
Right, but nothing should regress. If no clock is provided the driver
moves on during the request and will refuse to prepare, enable and
disable there after. 

Unless I've made a mistake somewhere? If so, I'd be happy to fixup.

-- 
Lee Jones
Linaro ST-Ericsson Landing Team Lead
Linaro.org ? Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help