Skip to content

Commit d2b9779

Browse files
Russell Kingdavem330
authored andcommitted
net: phy: fixed-phy: remove fixed_phy_update_state()
mvneta is the only user of fixed_phy_update_state(), which has been converted to use phylink instead. Remove fixed_phy_update_state(). Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent c554f53 commit d2b9779

File tree

2 files changed

+0
-40
lines changed

2 files changed

+0
-40
lines changed

drivers/net/phy/fixed_phy.c

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -115,37 +115,6 @@ int fixed_phy_set_link_update(struct phy_device *phydev,
115115
}
116116
EXPORT_SYMBOL_GPL(fixed_phy_set_link_update);
117117

118-
int fixed_phy_update_state(struct phy_device *phydev,
119-
const struct fixed_phy_status *status,
120-
const struct fixed_phy_status *changed)
121-
{
122-
struct fixed_mdio_bus *fmb = &platform_fmb;
123-
struct fixed_phy *fp;
124-
125-
if (!phydev || phydev->mdio.bus != fmb->mii_bus)
126-
return -EINVAL;
127-
128-
list_for_each_entry(fp, &fmb->phys, node) {
129-
if (fp->addr == phydev->mdio.addr) {
130-
write_seqcount_begin(&fp->seqcount);
131-
#define _UPD(x) if (changed->x) \
132-
fp->status.x = status->x
133-
_UPD(link);
134-
_UPD(speed);
135-
_UPD(duplex);
136-
_UPD(pause);
137-
_UPD(asym_pause);
138-
#undef _UPD
139-
fixed_phy_update(fp);
140-
write_seqcount_end(&fp->seqcount);
141-
return 0;
142-
}
143-
}
144-
145-
return -ENOENT;
146-
}
147-
EXPORT_SYMBOL(fixed_phy_update_state);
148-
149118
int fixed_phy_add(unsigned int irq, int phy_addr,
150119
struct fixed_phy_status *status,
151120
int link_gpio)

include/linux/phy_fixed.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ extern void fixed_phy_unregister(struct phy_device *phydev);
2424
extern int fixed_phy_set_link_update(struct phy_device *phydev,
2525
int (*link_update)(struct net_device *,
2626
struct fixed_phy_status *));
27-
extern int fixed_phy_update_state(struct phy_device *phydev,
28-
const struct fixed_phy_status *status,
29-
const struct fixed_phy_status *changed);
3027
#else
3128
static inline int fixed_phy_add(unsigned int irq, int phy_id,
3229
struct fixed_phy_status *status,
@@ -50,12 +47,6 @@ static inline int fixed_phy_set_link_update(struct phy_device *phydev,
5047
{
5148
return -ENODEV;
5249
}
53-
static inline int fixed_phy_update_state(struct phy_device *phydev,
54-
const struct fixed_phy_status *status,
55-
const struct fixed_phy_status *changed)
56-
{
57-
return -ENODEV;
58-
}
5950
#endif /* CONFIG_FIXED_PHY */
6051

6152
#endif /* __PHY_FIXED_H */

0 commit comments

Comments
 (0)