riscv defconfig CONFIG_PM/macb/generic PHY regression in v5.18-rc1

Conor.Dooley at microchip.com Conor.Dooley at microchip.com
Tue Apr 5 07:41:00 PDT 2022


On 05/04/2022 14:17, Conor Dooley wrote:
> 
> 
> On 05/04/2022 13:25, Andrew Lunn wrote:
>> On Tue, Apr 05, 2022 at 01:05:12PM +0000, Conor.Dooley at microchip.com wrote:
>>> [ 2.818894] macb 20112000.ethernet eth0: PHY [20112000.ethernet-ffffffff:09] driver [Generic PHY] (irq=POLL)
>>
>> Hi Conor
>>
>> In general, it is better to use the specific PHY driver for the PHY
>> then rely on the generic PHY driver. I think the Icicle Kit has a
>> VSC8662? So i would suggest you enable the Vitesse PHYs.
> 
> Hi Andrew, thanks for the quick reply.
> It does indeed have a Vitesse VSC8662, but the link never seems to
> come up for me [1] so I have been using Generic PHY. I'll try look
> at why that is. Either way would like to know what's gone wrong in
> the Generic PHY case since that's what's available in the riscv
> defconfig.

I think I put this badly - without the reversion of the CONFIG_PM
addition, the link doesn't come up for the Vitesse driver but there
is no validation failure:

[    1.521768] macb 20112000.ethernet eth0: Cadence GEM rev 0x0107010c at 0x20112000 irq 17 (00:04:a3:4d:4c:dc)
[    3.206274] macb 20112000.ethernet eth0: PHY [20112000.ethernet-ffffffff:09] driver [Vitesse VSC8662] (irq=POLL)
[    3.216641] macb 20112000.ethernet eth0: configuring for phy/sgmii link mode
(and then nothing)

If I revert the CONFIG_PM addition:

[    1.508882] macb 20112000.ethernet eth0: Cadence GEM rev 0x0107010c at 0x20112000 irq 17 (00:04:a3:4d:4c:dc)
[    2.879617] macb 20112000.ethernet eth0: PHY [20112000.ethernet-ffffffff:09] driver [Vitesse VSC8662] (irq=POLL)
[    2.890010] macb 20112000.ethernet eth0: configuring for phy/sgmii link mode
[    6.981823] macb 20112000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[    6.989657] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

> 
> Thanks,
> Conor.
> 
> [1]:

> 
>>
>>    Andrew
>>
>> _______________________________________________
>> linux-riscv mailing list
>> linux-riscv at lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/linux-riscv



More information about the linux-riscv mailing list