]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: call phy_disable_interrupts() in phy_init_hw()
authorJisheng Zhang <Jisheng.Zhang@synaptics.com>
Wed, 24 Jun 2020 07:59:23 +0000 (15:59 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jun 2020 21:52:49 +0000 (14:52 -0700)
commitddff18bd5871a21323489b8caaf9c2a67228a67e
tree5399a6c3e32d842c96e657c01a6431f40ce587d8
parent12b12b0fa1f925ad960d0c90dd7ecde27a96c08b
net: phy: call phy_disable_interrupts() in phy_init_hw()

Call phy_disable_interrupts() in phy_init_hw() to "have a defined init
state as we don't know in which state the PHY is if the PHY driver is
loaded. We shouldn't assume that it's the chip power-on defaults, BIOS
or boot loader could have changed this. Or in case of dual-boot
systems the other OS could leave the PHY in whatever state." as pointed
out by Heiner.

Suggested-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c