1. 01 Apr, 2015 3 commits
    • Petri Gynther's avatar
      net: bcmgenet: enable MoCA link state change detection · 8d88c6eb
      Petri Gynther authored
      Currently, MoCA fixed PHYs are always in link-up state, regardless of
      whether the link is actually up or not.
      
      Add code to properly detect MoCA link state changes and to reflect the
      new state in MoCA fixed PHY. Only GENET V3 and V4 MACs are capable of
      detecting MoCA link state changes.
      
      The code works as follows:
      1. GENET MAC detects MoCA link state change and issues UMAC_IRQ_LINK_UP
         or UMAC_IRQ_LINK_DOWN interrupt.
      2. Link up/down interrupt is processed in bcmgenet_irq_task(), which
         calls phy_mac_interrupt().
      3. phy_mac_interrupt() updates the fixed PHY phydev->link and kicks
         the PHY state machine.
      4. PHY state machine proceeds to read the fixed PHY link status
         register.
      5. When the fixed PHY link status register is being read, the new
         function bcmgenet_fixed_phy_link_update() gets called. It copies
         the fixed PHY phydev->link value to the fixed PHY status->link.
      6. PHY state machine receives the new link state of the fixed PHY.
      7. MoCA fixed PHY link state now correctly reflects the real MoCA
         hardware link state.
      Signed-off-by: default avatarPetri Gynther <pgynther@google.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      8d88c6eb
    • Uwe Kleine-König's avatar
      net: phy: at803x: simplify using devm_gpiod_get_optional and its 4th argument · 687908c2
      Uwe Kleine-König authored
      Since 39b2bbe3 (gpio: add flags argument to gpiod_get*() functions)
      which appeared in v3.17-rc1, the gpiod_get* functions take an additional
      parameter that allows to specify direction and initial value for output.
      Moreover use devm_gpiod_get_optional instead of ignoring all errors
      returned by devm_gpiod_get and simplify accordingly.
      
      The result is more strict error handling which is good.
      Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      687908c2
    • Rasmus Villemoes's avatar
      caif: remove unused struct member · 906a7985
      Rasmus Villemoes authored
      The tty_name member of struct ser_device is never set or used, so it
      can be removed. (The definition of struct ser_device is private to
      this .c file, and the identifier tty_name only occurs in this one
      place.)
      Signed-off-by: default avatarRasmus Villemoes <linux@rasmusvillemoes.dk>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      906a7985
  2. 31 Mar, 2015 37 commits