History

net: phy: add new version of phy_do_ioctl

Add a new version of phy_do_ioctl that doesn't check whether net_device is running. It will typically be used if suitable drivers attach the PHY in probe already.

Heiner Kallweit committed 6 years ago

Commit bbbf8431 parent 3231e5d2 files · +14 −3Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/phy.h+1−0
@@ -1242,6 +1242,7 @@ void phy_ethtool_ksettings_get(struct phy_device *phydev, · 1241 unmodified lines
1242int phy_ethtool_ksettings_set(struct phy_device *phydev,1242int phy_ethtool_ksettings_set(struct phy_device *phydev,
1243 const struct ethtool_link_ksettings *cmd);1243 const struct ethtool_link_ksettings *cmd);
1244int phy_mii_ioctl(struct phy_device *phydev, struct ifreq *ifr, int cmd);1244int phy_mii_ioctl(struct phy_device *phydev, struct ifreq *ifr, int cmd);
1245int phy_do_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd);
1245int phy_do_ioctl_running(struct net_device *dev, struct ifreq *ifr, int cmd);1246int phy_do_ioctl_running(struct net_device *dev, struct ifreq *ifr, int cmd);
1246void phy_request_interrupt(struct phy_device *phydev);1247void phy_request_interrupt(struct phy_device *phydev);
1247void phy_free_interrupt(struct phy_device *phydev);1248void phy_free_interrupt(struct phy_device *phydev);