netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/8] Add irq controller support to Marvell switches
@ 2016-03-14  0:33 Andrew Lunn
  2016-03-14  0:33 ` [RFC PATCH 1/8] net: dsa: Add parsing of an interrupt property Andrew Lunn
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Andrew Lunn @ 2016-03-14  0:33 UTC (permalink / raw)
  To: netdev, Florian Fainelli, Jason Cooper, Vivien Didelot; +Cc: Andrew Lunn

The Marvell switches contain one or two interrupt controllers,
depending on switch features. If the switch contains embedded PHYs,
one of these controllers contains the interrupts from these PHYs. In
order that the phylib can make use of these interrupts, they need to
be exported from the driver so a phandle can be used to reference
them. So this patchset make use of the core interrupt infrastructure
to implement one or two interrupt drivers within the switch
driver. The device controller, which contains the PHY interrupts, has
a IRQ domain associated to it, so it can be accessed outside of the
switch driver.

I have a further patch to a dts file to make use of this, but that
board has not yet been accepted into arm-soc.

It would be good if somebody with core IRQ knowledge could review
the second patch. Hi Jason :-)

    Andrew

Andrew Lunn (8):
  net: dsa: Add parsing of an interrupt property
  dsa: mv88e6xxx: Add support for switch and device interrupts
  dsa: mv88e6352: Wire up the mv88e6xxx interrupt code
  dsa: mv88e6171: Wire up the mv88e6xxx interrupt code
  dsa: mv88e6123_61_65: Wire up the mv88e6xxx interrupt code
  dsa: mv88e6131: Wire up the mv88e6xxx interrupt code
  net: dsa: Support phy interrupt property for switch ports.
  net: phy: Use threaded IRQ, to allow IRQ from sleeping devices

 Documentation/devicetree/bindings/net/dsa/dsa.txt |  10 +-
 drivers/net/dsa/mv88e6123_61_65.c                 |   6 +-
 drivers/net/dsa/mv88e6131.c                       |   7 +-
 drivers/net/dsa/mv88e6171.c                       |   6 +-
 drivers/net/dsa/mv88e6352.c                       |   6 +-
 drivers/net/dsa/mv88e6xxx.c                       | 312 ++++++++++++++++++++++
 drivers/net/dsa/mv88e6xxx.h                       |  22 ++
 drivers/net/phy/phy.c                             |   5 +-
 include/net/dsa.h                                 |   6 +
 net/dsa/dsa.c                                     |   8 +
 net/dsa/dsa_priv.h                                |   1 +
 net/dsa/slave.c                                   |  11 +-
 12 files changed, 389 insertions(+), 11 deletions(-)

-- 
2.7.0

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-03-14  0:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-14  0:33 [RFC PATCH 0/8] Add irq controller support to Marvell switches Andrew Lunn
2016-03-14  0:33 ` [RFC PATCH 1/8] net: dsa: Add parsing of an interrupt property Andrew Lunn
2016-03-14  0:33 ` [RFC PATCH 2/8] dsa: mv88e6xxx: Add support for switch and device interrupts Andrew Lunn
2016-03-14  0:33 ` [RFC PATCH 3/8] dsa: mv88e6352: Wire up the mv88e6xxx interrupt code Andrew Lunn
2016-03-14  0:33 ` [RFC PATCH 4/8] dsa: mv88e6171: " Andrew Lunn
2016-03-14  0:33 ` [RFC PATCH 5/8] dsa: mv88e6123_61_65: " Andrew Lunn
2016-03-14  0:33 ` [RFC PATCH 6/8] dsa: mv88e6131: " Andrew Lunn
2016-03-14  0:33 ` [RFC PATCH 7/8] net: dsa: Support phy interrupt property for switch ports Andrew Lunn
2016-03-14  0:33 ` [RFC PATCH 8/8] net: phy: Use threaded IRQ, to allow IRQ from sleeping devices Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).