1. 21 6月, 2016 2 次提交
    • V
      net: dsa: mv88e6xxx: remove redundant assignments · fbae5a48
      Vivien Didelot 提交于
      The chip->ds and ds->slave_mii_bus assignments are common to both legacy
      and new MDIO probing and are already done in the later setup code.
      
      Remove the duplicated assignments from the MDIO probing code.
      Signed-off-by: NVivien Didelot <vivien.didelot@savoirfairelinux.com>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      fbae5a48
    • V
      net: dsa: mv88e6xxx: fix style issues · 57d32310
      Vivien Didelot 提交于
      This patch fixes 5 style problems reported by checkpatch:
      
          WARNING: suspect code indent for conditional statements (8, 24)
          #492: FILE: drivers/net/dsa/mv88e6xxx.c:492:
          +	if (phydev->link)
          +			reg |= PORT_PCS_CTRL_LINK_UP;
      
          CHECK: Logical continuations should be on the previous line
          #1318: FILE: drivers/net/dsa/mv88e6xxx.c:1318:
          +		     oldstate == PORT_CONTROL_STATE_FORWARDING)
          +		    && (state == PORT_CONTROL_STATE_DISABLED ||
      
          CHECK: multiple assignments should be avoided
          #1662: FILE: drivers/net/dsa/mv88e6xxx.c:1662:
          +		vlan->vid_begin = vlan->vid_end = next.vid;
      
          WARNING: line over 80 characters
          #2097: FILE: drivers/net/dsa/mv88e6xxx.c:2097:
          +				       const struct switchdev_obj_port_vlan *vlan,
      
          WARNING: suspect code indent for conditional statements (16, 32)
          #2734: FILE: drivers/net/dsa/mv88e6xxx.c:2734:
          +		if (mv88e6xxx_6352_family(ps) || mv88e6xxx_6351_family(ps) ||
          [...]
          +				reg |= PORT_CONTROL_EGRESS_ADD_TAG;
      
          total: 0 errors, 3 warnings, 2 checks, 3805 lines checked
      
      It also rebases and integrates changes sent by Ben Dooks [1]:
      
          The driver has a number of functions that are not exported or
          declared elsewhere, so make them static to avoid the following
          warnings from sparse:
      
          drivers/net/dsa/mv88e6xxx.c:113:5: warning: symbol 'mv88e6xxx_reg_read' was not declared. Should it be static?
          drivers/net/dsa/mv88e6xxx.c:167:5: warning: symbol 'mv88e6xxx_reg_write' was not declared. Should it be static?
          drivers/net/dsa/mv88e6xxx.c:231:5: warning: symbol 'mv88e6xxx_set_addr' was not declared. Should it be static?
          drivers/net/dsa/mv88e6xxx.c:367:6: warning: symbol 'mv88e6xxx_ppu_state_init' was not declared. Should it be static?
          drivers/net/dsa/mv88e6xxx.c:3157:5: warning: symbol 'mv88e6xxx_phy_page_read' was not declared. Should it be static?
          drivers/net/dsa/mv88e6xxx.c:3169:5: warning: symbol 'mv88e6xxx_phy_page_write' was not declared. Should it be static?
          drivers/net/dsa/mv88e6xxx.c:3583:26: warning: symbol 'mv88e6xxx_switch_driver' was not declared. Should it be static?
          drivers/net/dsa/mv88e6xxx.c:3621:5: warning: symbol 'mv88e6xxx_probe' was not declared. Should it be static?
      
      [1] http://patchwork.ozlabs.org/patch/632708/Signed-off-by: NVivien Didelot <vivien.didelot@savoirfairelinux.com>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      57d32310
  2. 20 6月, 2016 4 次提交
  3. 19 6月, 2016 6 次提交
  4. 18 6月, 2016 28 次提交