Thread (12 messages) flat view 12 messages, 4 authors, 2015-02-24

[PATCH] spi: sirf: add reset controller dependency

From: arnd@arndb.de (Arnd Bergmann)
Date: 2015-02-24 13:34:22
Also in: linux-spi, lkml

On Tuesday 24 February 2015 18:56:44 Chen-Yu Tsai wrote:
quoted
--- a/drivers/net/ethernet/stmicro/stmmac/Kconfig
+++ b/drivers/net/ethernet/stmicro/stmmac/Kconfig
@@ -1,11 +1,11 @@
 config STMMAC_ETH
        tristate "STMicroelectronics 10/100/1000 Ethernet driver"
        depends on HAS_IOMEM && HAS_DMA
+       depends on RESET_CONTROLLER
        select MII
        select PHYLIB
        select CRC32
        select PTP_1588_CLOCK
-       select RESET_CONTROLLER
I was the one that introduced this. At the time a generic binding for the
stmmac core was requested, which supported an optional reset control. There
wasn't an *_optional stub available, so I went with this. See

    http://lists.infradead.org/pipermail/linux-arm-kernel/2014-January/224684.html
b424080a9e08
With commit b424080a9e08 ("reset: Add optional resets and stubs") in, I
think using devm_reset_control_get() in the driver is the proper solution.
The hardware is found in quite a few platforms, and not all of them have
reset controllers.
I suppose you mean devm_reset_control_get_option() instead of
devm_reset_control_get()?

Yes, that sounds right.

	Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help