[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <92970535-1af2-3bca-9f70-6b2d093b2ac1@gmail.com>
Date:   Wed, 24 Feb 2021 09:08:48 -0800
From:   Florian Fainelli <f.fainelli@...il.com>
To:     Daniel González Cabanelas <dgcbueu@...il.com>,
        davem@...emloft.net
Cc:     kuba@...nel.org, gregkh@...uxfoundation.org,
        netdev@...r.kernel.org, noltari@...il.com
Subject: Re: [PATCH v3] bcm63xx_enet: fix internal phy IRQ assignment
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 <dgcbueu@...il.com>
Acked-by: Florian Fainelli <f.fainelli@...il.com>
-- 
Florian
Powered by blists - more mailing lists
 
