History

net: phy: remove genphy_config_init

Now that all users have been removed we can remove genphy_config_init.

Heiner Kallweit committed 7 years ago

Commit 4b9cb2a1 parent 00843d92 files · +0 −52Browse files

Unified · Split

2 files
  1. drivers/net/phy/phy_device.c +0 −51
  2. include/linux/phy.h +0 −1
drivers/net/phy/phy_device.c+0−51
@@ -1885,57 +1885,6 @@ int genphy_soft_reset(struct phy_device *phydev) · 1884 unmodified lines
18851885 }
18861886 EXPORT_SYMBOL(genphy_soft_reset);
18871887
1888−int genphy_config_init(struct phy_device *phydev)
1889−{
1890− int val;
1891− __ETHTOOL_DECLARE_LINK_MODE_MASK(features) = { 0, };
1892−
1893− linkmode_set_bit_array(phy_basic_ports_array,
1894− ARRAY_SIZE(phy_basic_ports_array),
1895− features);
1896− linkmode_set_bit(ETHTOOL_LINK_MODE_Pause_BIT, features);
1897− linkmode_set_bit(ETHTOOL_LINK_MODE_Asym_Pause_BIT, features);
1898−
1899− /* Do we support autonegotiation? */
1900− val = phy_read(phydev, MII_BMSR);
1901− if (val < 0)
1902− return val;
1903−
1904− if (val & BMSR_ANEGCAPABLE)
1905− linkmode_set_bit(ETHTOOL_LINK_MODE_Autoneg_BIT, features);
1906−
1907− if (val & BMSR_100FULL)
1908− linkmode_set_bit(ETHTOOL_LINK_MODE_100baseT_Full_BIT, features);
1909− if (val & BMSR_100HALF)
1910− linkmode_set_bit(ETHTOOL_LINK_MODE_100baseT_Half_BIT, features);
1911− if (val & BMSR_10FULL)
1912− linkmode_set_bit(ETHTOOL_LINK_MODE_10baseT_Full_BIT, features);
1913− if (val & BMSR_10HALF)
1914− linkmode_set_bit(ETHTOOL_LINK_MODE_10baseT_Half_BIT, features);
1915−
1916− if (val & BMSR_ESTATEN) {
1917− val = phy_read(phydev, MII_ESTATUS);
1918− if (val < 0)
1919− return val;
1920−
1921− if (val & ESTATUS_1000_TFULL)
1922− linkmode_set_bit(ETHTOOL_LINK_MODE_1000baseT_Full_BIT,
1923− features);
1924− if (val & ESTATUS_1000_THALF)
1925− linkmode_set_bit(ETHTOOL_LINK_MODE_1000baseT_Half_BIT,
1926− features);
1927− if (val & ESTATUS_1000_XFULL)
1928− linkmode_set_bit(ETHTOOL_LINK_MODE_1000baseX_Full_BIT,
1929− features);
1930− }
1931−
1932− linkmode_and(phydev->supported, phydev->supported, features);
1933− linkmode_and(phydev->advertising, phydev->advertising, features);
1934−
1935− return 0;
1936−}
1937−EXPORT_SYMBOL(genphy_config_init);
1938−
19391888 /**
19401889 * genphy_read_abilities - read PHY abilities from Clause 22 registers
19411890 * @phydev: target phy_device struct
include/linux/phy.h+0−1
@@ -1069,7 +1069,6 @@ void phy_attached_print(struct phy_device *phydev, const char *fmt, ...) · 1068 unmodified lines
10691069 void phy_attached_info(struct phy_device *phydev);
10701070
10711071 /* Clause 22 PHY */
1072−int genphy_config_init(struct phy_device *phydev);
10731072 int genphy_read_abilities(struct phy_device *phydev);
10741073 int genphy_setup_forced(struct phy_device *phydev);
10751074 int genphy_restart_aneg(struct phy_device *phydev);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t