Niklas Cassel
30549aab14
net: stmmac: Fix stmmac_mdio_reset() when building stmmac as modules
...
When building stmmac, it is only possible to select CONFIG_DWMAC_GENERIC,
or any of the glue drivers, when CONFIG_STMMAC_PLATFORM is set.
The only exception is CONFIG_STMMAC_PCI.
When calling of_mdiobus_register(), it will call our ->reset()
callback, which is set to stmmac_mdio_reset().
Most of the code in stmmac_mdio_reset() is protected by a
"#if defined(CONFIG_STMMAC_PLATFORM)", which will evaluate
to false when CONFIG_STMMAC_PLATFORM=m.
Because of this, the phy reset gpio will only be pulled when
stmmac is built as built-in, but not when built as modules.
Fix this by using "#if IS_ENABLED()" instead of "#if defined()".
Signed-off-by: Niklas Cassel <niklas.cassel@linaro.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2018-10-31 18:35:58 -07:00
..
2018-07-22 11:12:29 -07:00
2018-09-12 20:24:20 -07:00
2018-07-26 21:24:23 -07:00
2018-09-12 20:24:20 -07:00
2018-09-12 20:24:20 -07:00
2018-09-18 19:57:40 -07:00
2018-09-12 20:24:20 -07:00
2018-08-07 17:54:19 -07:00
2018-09-12 20:24:20 -07:00
2018-10-22 19:48:04 -07:00
2018-10-25 16:20:02 -07:00
2018-09-12 20:24:21 -07:00
2018-09-21 19:15:15 -07:00
2018-10-16 10:00:07 -07:00
2018-06-23 10:44:30 +09:00
2018-10-25 06:50:48 -07:00
2018-09-12 20:24:21 -07:00
2018-10-26 19:25:07 -07:00
2018-09-21 19:02:05 -07:00
2018-10-25 11:32:24 -07:00
2018-07-16 09:04:54 +02:00
2018-10-04 09:48:37 -07:00
2018-10-25 16:43:35 -07:00
2018-09-21 19:15:14 -07:00
2018-08-04 13:08:06 -07:00
2018-09-12 20:24:21 -07:00
2018-10-21 21:10:12 -07:00
2018-08-07 17:54:19 -07:00
2018-10-25 06:50:48 -07:00
2018-09-26 10:18:08 -07:00
2018-10-19 11:03:06 -07:00
2018-10-31 12:42:38 -07:00
2018-09-17 07:55:19 -07:00
2018-10-29 20:43:40 -07:00
2018-09-21 19:15:15 -07:00
2018-10-03 21:00:17 -07:00
2018-10-31 11:05:51 -07:00
2018-10-30 11:34:41 -07:00
2018-10-01 22:55:36 -07:00
2018-10-31 12:56:58 -07:00
2018-09-21 19:11:39 -07:00
2018-10-25 16:20:48 -07:00
2018-06-12 16:19:22 -07:00
2018-10-19 11:03:06 -07:00
2018-10-25 16:20:02 -07:00
2018-05-31 14:17:33 -04:00
2018-09-21 19:00:09 -07:00
2018-10-21 21:11:46 -07:00
2018-10-01 22:48:08 -07:00
2018-07-27 13:45:14 -07:00
2018-10-19 17:04:38 -07:00
2018-06-23 20:52:09 +09:00
2018-07-05 20:05:54 +09:00
2018-06-12 16:19:22 -07:00
2018-10-25 06:50:48 -07:00
2018-10-03 21:00:17 -07:00
2018-09-12 20:24:20 -07:00
2018-10-25 16:15:23 -07:00
2018-09-25 10:35:29 -07:00
2018-10-19 10:42:19 -07:00
2018-09-12 20:24:20 -07:00
2018-09-21 19:15:14 -07:00
2018-10-25 06:50:48 -07:00
2018-09-21 19:15:14 -07:00
2018-10-21 21:10:12 -07:00
2018-10-23 10:55:35 -07:00
2018-10-31 18:35:58 -07:00
2018-09-19 21:17:58 -07:00
2018-07-27 19:16:37 +08:00
2018-07-05 19:33:39 +09:00
2018-10-22 20:20:14 -07:00
2018-09-19 23:08:36 -07:00
2018-10-21 21:10:12 -07:00
2018-09-19 21:17:58 -07:00
2018-09-12 20:24:21 -07:00
2018-03-26 12:07:49 -04:00
2018-09-12 20:24:20 -07:00
2018-07-27 13:45:14 -07:00
2018-09-13 08:14:33 -07:00
2018-09-13 08:14:33 -07:00
2018-09-17 08:12:11 -07:00
2018-09-13 08:14:33 -07:00