On Nov 29 2018, Andrew Lunn wrote:
> So if we assume you can identify the PHY using its ID registers, you
> can put this reset code into the soft_reset call. That gets called
> first before anything else. There is no need to add a new function to
> phy_driver.
I've tried the following, but it ma
>diff --git a/drivers/net/phy/mscc.c b/drivers/net/phy/mscc.c
>index 7cae17517744..8e0a71ee6bab 100644
>--- a/drivers/net/phy/mscc.c
>+++ b/drivers/net/phy/mscc.c
>@@ -1822,6 +1822,24 @@ static int vsc85xx_probe(struct phy_device *phydev)
> return vsc85xx_dt_led_modes_get(
On Wed, 28 Nov 2018 18:28:58 PST (-0800), and...@lunn.ch wrote:
This is all fine as long as Linux doesn't go and reset the phy again. Until
bafbdd527d56 ("phylib: Add device reset GPIO support") was the case. After
that commit I believe phylib is resetting the phy while attempting to enter
unman
> This is all fine as long as Linux doesn't go and reset the phy again. Until
> bafbdd527d56 ("phylib: Add device reset GPIO support") was the case. After
> that commit I believe phylib is resetting the phy while attempting to enter
> unmanaged mode, which is now allowed in this particular chip.
>
f 10090000.ethernet failed with error -110
[ 1354.40] macb: GEM doesn't support hardware ptp.
[ 1354.41] libphy: MACB_mii_bus: probed
[ 1355.26] macb 1009.ethernet (unnamed net_device)
(uninitialized): Could not attach to PHY
[ 1355.300000] macb: probe of 1009.ethernet failed
al times to let it succeed.
>>
>> [ 40.53] macb: GEM doesn't support hardware ptp.
>> [ 40.53] libphy: MACB_mii_bus: probed
>> [ 41.45] macb 1009.ethernet (unnamed net_device)
>> (uninitialized): Could not attach to PHY
>> [ 41.51] macb:
40.53] libphy: MACB_mii_bus: probed
[ 41.45] macb 1009.ethernet (unnamed net_device) (uninitialized):
Could not attach to PHY
[ 41.510000] macb: probe of 10090000.ethernet failed with error -110
[ 1354.40] macb: GEM doesn't support hardware ptp.
[ 1354.41] libphy: MACB_
] macb 1009.ethernet (unnamed net_device) (uninitialized):
Could not attach to PHY
[ 41.510000] macb: probe of 10090000.ethernet failed with error -110
[ 1354.40] macb: GEM doesn't support hardware ptp.
[ 1354.41] libphy: MACB_mii_bus: probed
[ 1355.26] macb 1009.et