* [Patch net-next] net: phy: LAN937x: add interrupt support for link detection
@ 2022-04-23 15:47 Arun Ramadoss
2022-04-23 15:59 ` Andrew Lunn
2022-04-26 8:20 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 4+ messages in thread
From: Arun Ramadoss @ 2022-04-23 15:47 UTC (permalink / raw)
To: linux-kernel, netdev
Cc: Paolo Abeni, Jakub Kicinski, David S. Miller, Russell King,
Heiner Kallweit, Andrew Lunn, UNGLinuxDriver, Arun Ramadoss
Added the config_intr and handle_interrupt for the LAN937x phy which is
same as the LAN87xx phy.
Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com>
---
drivers/net/phy/microchip_t1.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/phy/microchip_t1.c b/drivers/net/phy/microchip_t1.c
index 796fbcb7dafe..d4c93d59bc53 100644
--- a/drivers/net/phy/microchip_t1.c
+++ b/drivers/net/phy/microchip_t1.c
@@ -792,6 +792,8 @@ static struct phy_driver microchip_t1_phy_driver[] = {
.flags = PHY_POLL_CABLE_TEST,
.features = PHY_BASIC_T1_FEATURES,
.config_init = lan87xx_config_init,
+ .config_intr = lan87xx_phy_config_intr,
+ .handle_interrupt = lan87xx_handle_interrupt,
.suspend = genphy_suspend,
.resume = genphy_resume,
.config_aneg = lan87xx_config_aneg,
base-commit: cfc1d91a7d78cf9de25b043d81efcc16966d55b3
--
2.33.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Patch net-next] net: phy: LAN937x: add interrupt support for link detection
2022-04-23 15:47 [Patch net-next] net: phy: LAN937x: add interrupt support for link detection Arun Ramadoss
@ 2022-04-23 15:59 ` Andrew Lunn
2022-04-24 10:15 ` Arun.Ramadoss
2022-04-26 8:20 ` patchwork-bot+netdevbpf
1 sibling, 1 reply; 4+ messages in thread
From: Andrew Lunn @ 2022-04-23 15:59 UTC (permalink / raw)
To: Arun Ramadoss
Cc: linux-kernel, netdev, Paolo Abeni, Jakub Kicinski,
David S. Miller, Russell King, Heiner Kallweit, UNGLinuxDriver
On Sat, Apr 23, 2022 at 09:17:27PM +0530, Arun Ramadoss wrote:
> Added the config_intr and handle_interrupt for the LAN937x phy which is
> same as the LAN87xx phy.
>
> Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
While looking at the code, i noticed LAN87XX has PHY_POLL_CABLE_TEST
where as LAN937X does not. Is this correct?
Andrew
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Patch net-next] net: phy: LAN937x: add interrupt support for link detection
2022-04-23 15:59 ` Andrew Lunn
@ 2022-04-24 10:15 ` Arun.Ramadoss
0 siblings, 0 replies; 4+ messages in thread
From: Arun.Ramadoss @ 2022-04-24 10:15 UTC (permalink / raw)
To: andrew
Cc: linux-kernel, UNGLinuxDriver, linux, kuba, pabeni, netdev, davem,
hkallweit1
On Sat, 2022-04-23 at 17:59 +0200, Andrew Lunn wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you
> know the content is safe
>
> On Sat, Apr 23, 2022 at 09:17:27PM +0530, Arun Ramadoss wrote:
> > Added the config_intr and handle_interrupt for the LAN937x phy
> > which is
> > same as the LAN87xx phy.
> >
> > Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com>
>
> Reviewed-by: Andrew Lunn <andrew@lunn.ch>
>
> While looking at the code, i noticed LAN87XX has PHY_POLL_CABLE_TEST
> where as LAN937X does not. Is this correct?
>
> Andrew
Yes Andrew, When I added the LAN937x support in the below patch I added
the call back for the cable_test_start and cable_test_get_status and
forgot to add the PHY_POLL_CABLE_TEST flag.
https://patchwork.kernel.org/project/netdevbpf/patch/20220304094401.31375-6-arun.ramadoss@microchip.com/
I initially posted the patch for adding flag in net-next, but you have
suggested to me sent the bug fix patch for this. I sent the bug fix
patch for adding the flag.
https://patchwork.kernel.org/project/netdevbpf/patch/20220413071409.13530-1-arun.ramadoss@microchip.com/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Patch net-next] net: phy: LAN937x: add interrupt support for link detection
2022-04-23 15:47 [Patch net-next] net: phy: LAN937x: add interrupt support for link detection Arun Ramadoss
2022-04-23 15:59 ` Andrew Lunn
@ 2022-04-26 8:20 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 4+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-04-26 8:20 UTC (permalink / raw)
To: Arun Ramadoss
Cc: linux-kernel, netdev, pabeni, kuba, davem, linux, hkallweit1,
andrew, UNGLinuxDriver
Hello:
This patch was applied to netdev/net-next.git (master)
by Paolo Abeni <pabeni@redhat.com>:
On Sat, 23 Apr 2022 21:17:27 +0530 you wrote:
> Added the config_intr and handle_interrupt for the LAN937x phy which is
> same as the LAN87xx phy.
>
> Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com>
> ---
> drivers/net/phy/microchip_t1.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> [...]
Here is the summary with links:
- [net-next] net: phy: LAN937x: add interrupt support for link detection
https://git.kernel.org/netdev/net-next/c/fb0a43f5bd45
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-04-26 8:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-23 15:47 [Patch net-next] net: phy: LAN937x: add interrupt support for link detection Arun Ramadoss
2022-04-23 15:59 ` Andrew Lunn
2022-04-24 10:15 ` Arun.Ramadoss
2022-04-26 8:20 ` patchwork-bot+netdevbpf
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.