1. 23 May, 2013 2 commits
    • Jay Fenlason's avatar
      cxgb3: Fix warning about using rcu_dereference when not in a rcu-locked section · 9313eb4b
      Jay Fenlason authored
      It is about using rcu_dereference() when not in a rcu-locked section. It only
      happens on initialization hence fix the initialization to not rcu_dereference()
      Signed-off-by: default avatarJay Fenlason <fenlason@redhat.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      9313eb4b
    • Mark Rutland's avatar
      net: smsc911x: don't artificially limit build · f1238261
      Mark Rutland authored
      Currently the SMSC911X driver may only be built for a specific set of
      architectures, being limited to do so by a Kconfig depends line. This
      means that if a platform wishes to use the driver, its architecture must
      be added to the list explicitly, introducing pointless churn.
      
      This may have been due to the driver's use of the {read,write}s{b,w,l}
      functions, which have since been replaced with the more standard
      io{read,write}{8,16,32}_rep. We can instead depend on HAS_IOMEM, which
      should prevent build issues while allowing the driver to be built for
      currently unlisted architectures, including x86 and arm64.
      
      This patch removes the explicit list of architectures from the driver's
      depend line, and replaces it with a dependency on HAS_IOMEM.
      Signed-off-by: default avatarMark Rutland <mark.rutland@arm.com>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: netdev@vger.kernel.org
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      f1238261
  2. 22 May, 2013 24 commits
  3. 21 May, 2013 12 commits
  4. 20 May, 2013 2 commits
    • Florian Fainelli's avatar
      phy: add phy_mac_interrupt() to use with PHY_IGNORE_INTERRUPT · 5ea94e76
      Florian Fainelli authored
      There is currently no way for an Ethernet MAC driver servicing PHY link
      interrupts to notify this to the PHY state machine without defining its
      own state machine. Since most drivers are not so special, introduce a
      helper: phy_mac_interrupt() which can be called from a link up/down
      interrupt routine to update the PHY state machine. To avoid code
      duplication some refactoring has been done to expose the workqueue and
      its corresponding callback internally.
      Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      5ea94e76
    • Florian Fainelli's avatar
      phy: fix the use of PHY_IGNORE_INTERRUPT · 2c7b4921
      Florian Fainelli authored
      When a PHY device is registered with the special IRQ value
      PHY_IGNORE_INTERRUPT (-2) it will not properly be handled by the PHY
      library:
      
      - it continues to poll its register, while we do not want this
        because such PHY link events or register changes are serviced by an
        Ethernet MAC
      - it will still try to configure PHY interrupts at the PHY level, such
        interrupts do not exist at the PHY but at the MAC level
      - the state machine only handles PHY_POLL, but should also handle
        PHY_IGNORE_INTERRUPT similarly
      
      This patch updates the PHY state machine and initialization paths to
      account for the specific PHY_IGNORE_INTERRUPT. Based on an earlier patch
      by Thomas Petazzoni, and reworked to add the missing bits. Add a helper
      phy_interrupt_is_valid() which specifically tests for a PHY interrupt
      not to be PHY_POLL or PHY_IGNORE_INTERRUPT and use it throughout the
      code.
      Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
      Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      2c7b4921