linux/drivers/net/ethernet/cadence
Zong Li 5eff1461a6 net: macb: ensure the device is available before accessing GEMGXL control registers
If runtime power menagement is enabled, the gigabit ethernet PLL would
be disabled after macb_probe(). During this period of time, the system
would hang up if we try to access GEMGXL control registers.

We can't put runtime_pm_get/runtime_pm_put/ there due to the issue of
sleep inside atomic section (7fa2955ff7 ("sh_eth: Fix sleeping
function called from invalid context"). Add netif_running checking to
ensure the device is available before accessing GEMGXL device.

Changed in v2:
 - Use netif_running instead of its own flag

Signed-off-by: Zong Li <zong.li@sifive.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-05-23 16:15:11 -07:00
..
Kconfig ethernet: select CONFIG_CRC32 as needed 2020-12-04 14:42:21 -08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
macb.h net: macb: Disable PCS auto-negotiation for SGMII fixed-link mode 2021-03-12 16:44:45 -08:00
macb_main.c net: macb: ensure the device is available before accessing GEMGXL control registers 2021-05-23 16:15:11 -07:00
macb_pci.c net: macb: move pdata to private header 2020-09-30 14:18:19 -07:00
macb_ptp.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00