Skip to content
  1. Oct 18, 2016
  2. Oct 17, 2016
    • David S. Miller's avatar
      Merge branch 'mv88e6xxx-interrupt-support' · 3aaf8630
      David S. Miller authored
      
      
      Andrew Lunn says:
      
      ====================
      Interrupt support for mv88e6xxx
      
      This patchset add interrupt controller support to the MV88E6xxx.  This
      allows access to the interrupts the internal PHY generate. These
      interrupts can then be associated to a PHY device in the device tree
      and used by the PHY lib, rather than polling.
      
      Since interrupt handling needs to make MDIO bus accesses, threaded
      interrupts are used. The phylib needs to request the PHY interrupt
      using the threaded IRQ API. This in term allows some simplification to
      the code, in that the phylib interrupt handler can directly call
      phy_change(), rather than use a work queue. The work queue is however
      retained for the phy_mac_interrupt() call, which can be called in hard
      interrupt context.
      
      Since RFC v1:
      
      Keep phy_mac_interrupt() callable in hard IRQ context.
      
      The fix to trigger the phy state machine transitions on interrupts has
      already been submitted, so is dropped from here.
      
      Added back shared interrupts support.
      ====================
      
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      3aaf8630
    • Andrew Lunn's avatar
      arm: vf610: zii devel b: Add support for switch interrupts · f283745b
      Andrew Lunn authored
      
      
      The Switches use GPIO lines to indicate interrupts from two of the
      switches.
      
      With these interrupts in place, we can make use of the interrupt
      controllers within the switch to indicate when the internal PHYs
      generate an interrupt. Use standard PHY properties to do this.
      
      Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      f283745b
    • Andrew Lunn's avatar
      net: phy: Use phy name when requesting the interrupt · ae0219cb
      Andrew Lunn authored
      
      
      Using the fixed name "phy_interrupt" is not very informative in
      /proc/interrupts when there are a lot of phys, e.g. a device with an
      Ethernet switch. So when requesting the interrupt, use the name of the
      phy.
      
      Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Acked-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      ae0219cb
    • Andrew Lunn's avatar
      net: phy: Threaded interrupts allow some simplification · 664fcf12
      Andrew Lunn authored
      
      
      The PHY interrupts are now handled in a threaded interrupt handler,
      which can sleep. The work queue is no longer needed, phy_change() can
      be called directly. phy_mac_interrupt() still needs to be safe to call
      in interrupt context, so keep the work queue, and use a helper to call
      phy_change().
      
      Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      664fcf12