aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/phy.h
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2018-11-09 18:58:01 +0100
committerDavid S. Miller <davem@davemloft.net>2018-11-11 09:41:32 -0800
commit34d884e3dae6ecf0f9e9cc9be7632703a23f9f96 (patch)
treec5c5c320b82e02d495eed42746ba3668b265e89a /include/linux/phy.h
parentnet: phy: simplify phy_mac_interrupt and related functions (diff)
downloadlinux-dev-34d884e3dae6ecf0f9e9cc9be7632703a23f9f96.tar.xz
linux-dev-34d884e3dae6ecf0f9e9cc9be7632703a23f9f96.zip
net: phy: improve and inline phy_change
Now that phy_mac_interrupt() doesn't call phy_change() any longer it's called from phy_interrupt() only. Therefore phy_interrupt_is_valid() returns true always and the check can be removed. In case of PHY_HALTED phy_interrupt() bails out immediately, therefore the second check for PHY_HALTED including the call to phy_disable_interrupts() can be removed. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions