1. 07 1月, 2020 2 次提交
  2. 06 11月, 2019 2 次提交
  3. 12 8月, 2019 2 次提交
    • V
      net: dsa: mv88e6xxx: remove wait and update routines · 2ad4da77
      Vivien Didelot 提交于
      Now that we have proper Wait Bit and Wait Mask routines, remove the
      unused mv88e6xxx_wait routine and its Global 1 and Global 2 variants.
      
      The indirect tables such as the Device Mapping Table or Priority
      Override Table make use of an Update bit to distinguish reading (0)
      from writing (1) operations. After a write operation occurs, the bit
      self clears right away so there's no need to wait on it. Thus keep
      things simple and remove the mv88e6xxx_update helper as well.
      Signed-off-by: NVivien Didelot <vivien.didelot@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2ad4da77
    • V
      net: dsa: mv88e6xxx: introduce wait bit routine · 19fb7f69
      Vivien Didelot 提交于
      Many portions of the driver need to wait until a given bit is set
      or cleared. Some busses even have a specific implementation for this
      operation. In preparation for such variant, implement a generic Wait
      Bit routine that can be used by the driver core functions.
      
      This allows us to get rid of the custom implementations we may find
      in the driver. Note that for the EEPROM bits, BUSY and RUNNING bits
      are independent, thus it is more efficient to wait independently for
      each bit instead of waiting for their mask.
      Signed-off-by: NVivien Didelot <vivien.didelot@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      19fb7f69
  4. 24 6月, 2019 1 次提交
  5. 05 6月, 2019 1 次提交
  6. 31 5月, 2019 1 次提交
  7. 21 5月, 2018 1 次提交
  8. 08 5月, 2018 1 次提交
  9. 30 4月, 2018 3 次提交
  10. 21 3月, 2018 1 次提交
  11. 19 3月, 2018 1 次提交
  12. 15 2月, 2018 2 次提交
  13. 21 8月, 2017 1 次提交
  14. 19 7月, 2017 4 次提交
  15. 21 6月, 2017 10 次提交
  16. 16 6月, 2017 1 次提交
  17. 05 6月, 2017 3 次提交
  18. 08 4月, 2017 1 次提交
    • F
      net: dsa: mv88e6xxx: Make SMI c22/c45 read/write functions static · 54a88e4c
      Florian Fainelli 提交于
      The SMI clause 22 & 45 read/write operations are local to the global2.c file,
      so make them static. This eliminates the following warning:
      
      drivers/net/dsa/mv88e6xxx/global2.c:571:5: warning: no previous prototype for 'mv88e6xxx_g2_smi_phy_read_c45' [-Wmissing-prototypes]
       int mv88e6xxx_g2_smi_phy_read_c45(struct mv88e6xxx_chip *chip, int addr,
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      drivers/net/dsa/mv88e6xxx/global2.c:602:5: warning: no previous prototype for 'mv88e6xxx_g2_smi_phy_read_c22' [-Wmissing-prototypes]
       int mv88e6xxx_g2_smi_phy_read_c22(struct mv88e6xxx_chip *chip, int addr,
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      drivers/net/dsa/mv88e6xxx/global2.c:635:5: warning: no previous prototype for 'mv88e6xxx_g2_smi_phy_write_c45' [-Wmissing-prototypes]
       int mv88e6xxx_g2_smi_phy_write_c45(struct mv88e6xxx_chip *chip, int addr,
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      drivers/net/dsa/mv88e6xxx/global2.c:664:5: warning: no previous prototype for 'mv88e6xxx_g2_smi_phy_write_c22' [-Wmissing-prototypes]
       int mv88e6xxx_g2_smi_phy_write_c22(struct mv88e6xxx_chip *chip, int addr,
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      Suggested-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Reviewed-by: NVivien Didelot <vivien.didelot@savoirfairelinux.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      54a88e4c
  19. 02 4月, 2017 2 次提交
新手
引导
客服 返回
顶部