On 2/24/2021 8:11 AM, Daniel González Cabanelas wrote:
> The current bcm63xx_enet driver doesn't asign the internal phy IRQ. As a
> result of this it works in polling mode.
>
> Fix it using the phy_device structure to assign the platform IRQ.
>
> Tested under a BCM6348 board. Kernel dmesg before the patch:
> Broadcom BCM63XX (1) bcm63xx_enet-0:01: attached PHY driver [Broadcom
> BCM63XX (1)] (mii_bus:phy_addr=bcm63xx_enet-0:01, irq=POLL)
>
> After the patch:
> Broadcom BCM63XX (1) bcm63xx_enet-0:01: attached PHY driver [Broadcom
> BCM63XX (1)] (mii_bus:phy_addr=bcm63xx_enet-0:01, irq=17)
>
> Pluging and uplugging the ethernet cable now generates interrupts and the
> PHY goes up and down as expected.
>
> Signed-off-by: Daniel González Cabanelas <dgcb...@gmail.com>
Acked-by: Florian Fainelli <f.faine...@gmail.com>
--
Florian