linux_dsm_epyc7002/drivers/net
Marek Behún 075e238d12 mdio_bus: fix mdio_register_device when RESET_CONTROLLER is disabled
When CONFIG_RESET_CONTROLLER is disabled, the
devm_reset_control_get_exclusive function returns -ENOTSUPP. This is not
handled in subsequent check and then the mdio device fails to probe.

When CONFIG_RESET_CONTROLLER is enabled, its code checks in OF for reset
device, and since it is not present, returns -ENOENT. -ENOENT is handled.
Add -ENOTSUPP also.

This happened to me when upgrading kernel on Turris Omnia. You either
have to enable CONFIG_RESET_CONTROLLER or use this patch.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Fixes: 71dd6c0dff ("net: phy: add support for reset-controller")
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-11-18 17:59:32 -08:00
..
appletalk
arcnet
bonding bonding: fix state transition issue in link monitoring 2019-11-05 17:40:16 -08:00
caif
can slcan: Fix memory leak in error path 2019-11-14 10:38:30 +01:00
dsa mv88e6xxx: Reject requests to enable time stamping on both edges. 2019-11-15 12:48:32 -08:00
ethernet net/mlx4_en: Fix wrong limitation for number of TX rings 2019-11-18 17:18:34 -08:00
fddi
fjes
hamradio
hippi
hyperv hv_netvsc: Fix error handling in netvsc_attach() 2019-10-30 18:17:36 -07:00
ieee802154
ipvlan
netdevsim devlink: disallow reload operation during device cleanup 2019-11-09 19:38:36 -08:00
phy mdio_bus: fix mdio_register_device when RESET_CONTROLLER is disabled 2019-11-18 17:59:32 -08:00
plip
ppp
slip slip: Fix memory leak in slip_open error path 2019-11-13 12:06:27 -08:00
team
usb ax88172a: fix information leak on short answers 2019-11-15 12:18:45 -08:00
vmxnet3
wan
wimax
wireless wireless-drivers fixes for v5.4 2019-11-14 01:50:10 -08:00
xen-netback
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c
macvlan.c
macvtap.c
Makefile
mdio.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
thunderbolt.c
tun.c
veth.c
virtio_net.c
vrf.c
vsockmon.c
vxlan.c vxlan: fix unexpected failure of vxlan_changelink() 2019-10-30 11:52:47 -07:00
xen-netfront.c