lkml.org 
[lkml]   [2022]   [Dec]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH RFC net-next v2 0/2] net: phy: mxl-gpy: broken interrupt fixes
Date
The GPY215 has a broken interrupt pin. This patch series tries to
workaround that and because in general that is not possible, disables the
interrupts by default and falls back to polling mode. There is an opt-in
via the devicetree.

The devicetree binding is missing for now because there is still an
ongoing discussion. I'm sending this, because I want to get some feedback
on the new handling in the phy core. As Andrew pointed out, we cannot
change the irq in the PHY's .probe() because a MAC driver might overwrite
it afterwards, e.g. the stmmac does so. Instead introduce a new flag which
can be set by the PHY driver and which is evaluated just before the PHY is
attached and thus the interrupt is requested.

Btw. I'm not sure dev_flags is the correct place here. I couldn't see
when to use dev_flags and when to use the plain one-bit properties in the
struct phy_device. The latter seems to be used internally, but of course
there is at least one exception, the .mac_managed_pm is set by the MAC
drivers.

v2:
- new handling of how to disable the interrupts

Michael Walle (2):
net: phy: allow a phy to opt-out of interrupt handling
net: phy: mxl-gpy: disable interrupts on GPY215 by default

drivers/net/phy/mxl-gpy.c | 5 +++++
drivers/net/phy/phy_device.c | 7 +++++++
include/linux/phy.h | 2 ++
3 files changed, 14 insertions(+)

--
2.30.2

\
 
 \ /
  Last update: 2023-03-26 23:22    [W:0.044 / U:0.376 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site