]> git.baikalelectronics.ru Git - uboot.git/commit
net/phy: Fix phy_connect() for phy addr 0
authorPriyanka Jain <priyanka.jain@nxp.com>
Tue, 5 Nov 2019 04:05:11 +0000 (04:05 +0000)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 9 Dec 2019 15:47:42 +0000 (09:47 -0600)
commitfae1cc21cf2709025a585de492c0f0c8a85b13f2
tree18fcb1a86d68ab135591226b69b0c57f5da7ec39
parent8bd37c0961e4da1c46dd711a77cc59c643ba28b0
net/phy: Fix phy_connect() for phy addr 0

Fix 'mask' calculation in phy_connect() for phy addr '0'.
'mask' is getting set to '0xffffffff' for phy addr '0'
in phy_connect() whereas expected value is '0'.

Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
Reported-by: tetsu-aoki via github
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/phy/phy.c