linux/drivers/net/ethernet/apm/xgene
Thomas Bogendoerfer 0db01097ca xgene: Don't fail probe, if there is no clk resource for SGMII interfaces
This change fixes following problem

[    1.827940] xgene-enet: probe of 1f210030.ethernet failed with error -2

which leads to a missing ethernet interface (reproducable at least on
Gigabyte MP30-AR0 and APM Mustang systems).

The check for a valid clk resource fails, because DT doesn't provide a
clock for sgenet1. But the driver doesn't use this clk, if the ethernet
port is connected via SGMII. Therefore this patch avoids probing for clk
on SGMII interfaces.

Fixes: 9aea7779b7 ("drivers: net: xgene: Fix crash on DT systems")
Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-07-13 09:21:15 -07:00
..
Kconfig drivers: net: xgene: Poll link status via GPIO 2016-08-13 11:48:53 -07:00
Makefile drivers: net: xgene: Add support for Classifier engine 2016-02-17 22:08:34 -05:00
xgene_enet_cle.c net: xgene: move xgene_cle_ptree_ewdn data off stack 2016-12-08 21:30:54 -05:00
xgene_enet_cle.h net: xgene: move xgene_cle_ptree_ewdn data off stack 2016-12-08 21:30:54 -05:00
xgene_enet_ethtool.c net: phy: Make phy_ethtool_ksettings_get return void 2017-06-13 12:59:06 -04:00
xgene_enet_hw.c xgene: Check all RGMII phy mode variants 2017-05-19 19:41:43 -04:00
xgene_enet_hw.h drivers: net: xgene: Add rx_overrun/tx_underrun statistics 2017-05-16 11:41:10 -04:00
xgene_enet_main.c xgene: Don't fail probe, if there is no clk resource for SGMII interfaces 2017-07-13 09:21:15 -07:00
xgene_enet_main.h drivers: net: xgene: Workaround for HW errata 10GE_10/ENET_15 2017-05-16 11:41:10 -04:00
xgene_enet_ring2.c drivers: net: xgene: Add support for Jumbo frame 2016-12-03 15:46:50 -05:00
xgene_enet_ring2.h drivers: net: xgene: Add ring manager v2 functions 2015-04-30 16:03:13 -04:00
xgene_enet_sgmac.c drivers: net: xgene: Fix redundant prefetch buffer cleanup 2017-05-16 11:41:11 -04:00
xgene_enet_sgmac.h drivers: net: xgene: Fix module unload crash - clkrst sequence 2016-07-25 21:51:43 -07:00
xgene_enet_xgmac.c drivers: net: xgene: Fix redundant prefetch buffer cleanup 2017-05-16 11:41:11 -04:00
xgene_enet_xgmac.h drivers: net: xgene: Add rx_overrun/tx_underrun statistics 2017-05-16 11:41:10 -04:00