android_kernel_oneplus_msm8998/drivers/net
Chen-Yu Tsai 89e0660bc5 net: stmmac: dwmac-rk: Don't fail if phy regulator is absent
[ Upstream commit 3b25528e1e355c803e73aa326ce657b5606cda73 ]

The devicetree binding lists the phy phy as optional. As such, the
driver should not bail out if it can't find a regulator. Instead it
should just skip the remaining regulator related code and continue
on normally.

Skip the remainder of phy_power_on() if a regulator supply isn't
available. This also gets rid of the bogus return code.

Fixes: 2e12f53663 ("net: stmmac: dwmac-rk: Use standard devicetree property for phy regulator")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-09-10 10:29:50 +01:00
..
appletalk net/appletalk: fix minor pointer leak to userspace in SIOCFINDIPDDPRT 2018-09-29 03:08:52 -07:00
arcnet
bonding bonding: Force slave speed check after link state recovery for 802.3ad 2019-09-06 10:18:05 +02:00
caif caif-hsi: fix possible deadlock in cfhsi_exit_module() 2019-08-04 09:34:54 +02:00
can can: peak_usb: force the string buffer NULL-terminated 2019-09-06 10:18:07 +02:00
cris
dsa net: dsa: mv88e6xxx: Fix u64 statistics 2019-03-23 08:44:23 +01:00
ethernet net: stmmac: dwmac-rk: Don't fail if phy regulator is absent 2019-09-10 10:29:50 +01:00
fddi
fjes
hamradio net: hamradio: use eth_broadcast_addr 2018-08-24 13:26:55 +02:00
hippi
hyperv
ieee802154 ieee802154: fakelb: switch from BUG_ON() to WARN_ON() on problem 2018-08-24 13:26:58 +02:00
ipvlan ipvlan: disallow userns cap_net_admin to change global mode/flags 2019-03-23 08:44:31 +01:00
irda
phy net: phy: Check against net_device being NULL 2019-08-04 09:34:44 +02:00
plip
ppp compat_ioctl: pppoe: fix PPPOEIOCSFWD handling 2019-08-11 12:20:46 +02:00
slip slip: make slhc_free() silently accept an error pointer 2019-05-16 19:44:51 +02:00
team team: Always enable vlan tx offload 2019-07-10 09:56:37 +02:00
usb net: kalmia: fix memory leaks 2019-09-10 10:29:47 +01:00
vmxnet3
wan drivers: net: lmc: fix case value for target abort error 2018-09-05 09:18:36 +02:00
wimax wimax/i2400m: fix a memory leak bug 2019-09-10 10:29:47 +01:00
wireless mwifiex: fix 802.11n/WPA detection 2019-08-25 10:52:54 +02:00
xen-netback xen/netback: Reset nr_frags before freeing skb 2019-08-25 10:53:05 +02:00
dummy.c
eql.c
geneve.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macvlan.c
macvtap.c
Makefile
mdio.c
mii.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c rapidio/rionet: do not free skb before reading its length 2018-12-13 09:21:26 +01:00
sb1000.c
Space.c
sungem_phy.c
tun.c tun: forbid iface creation with rtnl ops 2018-12-17 21:55:09 +01:00
veth.c
virtio_net.c
vrf.c
vxlan.c vxlan: Don't call gro_cells_destroy() before device is unregistered 2019-04-03 06:23:25 +02:00
xen-netfront.c xen/netfront: tolerate frags with no data 2019-01-13 10:05:28 +01:00