Skip to content

Commit e7f932f

Browse files
committed
Merge branch 'linux-6.6-trunk/at91/net' into linux-6.6-mchp
2 parents eb79ffa + aa33c21 commit e7f932f

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

drivers/net/ethernet/cadence/macb_main.c

+2
Original file line numberDiff line numberDiff line change
@@ -5373,6 +5373,8 @@ static int __maybe_unused macb_resume(struct device *dev)
53735373
macb_restore_features(bp);
53745374
rtnl_lock();
53755375

5376+
if (!of_phy_is_fixed_link(bp->pdev->dev.of_node))
5377+
phylink_init_phydev(bp->phylink);
53765378
phylink_start(bp->phylink);
53775379
rtnl_unlock();
53785380

drivers/net/phy/phylink.c

+10
Original file line numberDiff line numberDiff line change
@@ -2726,6 +2726,16 @@ int phylink_ethtool_set_eee(struct phylink *pl, struct ethtool_eee *eee)
27262726
}
27272727
EXPORT_SYMBOL_GPL(phylink_ethtool_set_eee);
27282728

2729+
/**
2730+
* phylink_init_phydev() - initialize phydev associated to phylink
2731+
* @pl: a pointer to a &struct phylink returned from phylink_create()
2732+
*/
2733+
int phylink_init_phydev(struct phylink *pl)
2734+
{
2735+
return phy_init_hw(pl->phydev);
2736+
}
2737+
EXPORT_SYMBOL_GPL(phylink_init_phydev);
2738+
27292739
/* This emulates MII registers for a fixed-mode phy operating as per the
27302740
* passed in state. "aneg" defines if we report negotiation is possible.
27312741
*

include/linux/phylink.h

+1
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,7 @@ int phylink_ethtool_set_eee(struct phylink *, struct ethtool_eee *);
689689
int phylink_mii_ioctl(struct phylink *, struct ifreq *, int);
690690
int phylink_speed_down(struct phylink *pl, bool sync);
691691
int phylink_speed_up(struct phylink *pl);
692+
int phylink_init_phydev(struct phylink *pl);
692693

693694
#define phylink_zero(bm) \
694695
bitmap_zero(bm, __ETHTOOL_LINK_MODE_MASK_NBITS)

0 commit comments

Comments
 (0)