1. 11 Dec, 2019 35 commits
  2. 10 Dec, 2019 5 commits
    • Nathan Chancellor's avatar
      ppp: Adjust indentation into ppp_async_input · 08cbc75f
      Nathan Chancellor authored
      Clang warns:
      
      ../drivers/net/ppp/ppp_async.c:877:6: warning: misleading indentation;
      statement is not part of the previous 'if' [-Wmisleading-indentation]
                                      ap->rpkt = skb;
                                      ^
      ../drivers/net/ppp/ppp_async.c:875:5: note: previous statement is here
                                      if (!skb)
                                      ^
      1 warning generated.
      
      This warning occurs because there is a space before the tab on this
      line. Clean up this entire block's indentation so that it is consistent
      with the Linux kernel coding style and clang no longer warns.
      
      Fixes: 6722e78c ("[PPP]: handle misaligned accesses")
      Link: https://github.com/ClangBuiltLinux/linux/issues/800Signed-off-by: default avatarNathan Chancellor <natechancellor@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      08cbc75f
    • Nathan Chancellor's avatar
      net: smc911x: Adjust indentation in smc911x_phy_configure · 5c61e223
      Nathan Chancellor authored
      Clang warns:
      
      ../drivers/net/ethernet/smsc/smc911x.c:939:3: warning: misleading
      indentation; statement is not part of the previous 'if'
      [-Wmisleading-indentation]
               if (!lp->ctl_rfduplx)
               ^
      ../drivers/net/ethernet/smsc/smc911x.c:936:2: note: previous statement
      is here
              if (lp->ctl_rspeed != 100)
              ^
      1 warning generated.
      
      This warning occurs because there is a space after the tab on this line.
      Remove it so that the indentation is consistent with the Linux kernel
      coding style and clang no longer warns.
      
      Fixes: 0a0c72c9 ("[PATCH] RE: [PATCH 1/1] net driver: Add support for SMSC LAN911x line of ethernet chips")
      Link: https://github.com/ClangBuiltLinux/linux/issues/796Signed-off-by: default avatarNathan Chancellor <natechancellor@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      5c61e223
    • Nathan Chancellor's avatar
      net: tulip: Adjust indentation in {dmfe, uli526x}_init_module · fe06bf3d
      Nathan Chancellor authored
      Clang warns:
      
      ../drivers/net/ethernet/dec/tulip/uli526x.c:1812:3: warning: misleading
      indentation; statement is not part of the previous 'if'
      [-Wmisleading-indentation]
              switch (mode) {
              ^
      ../drivers/net/ethernet/dec/tulip/uli526x.c:1809:2: note: previous
      statement is here
              if (cr6set)
              ^
      1 warning generated.
      
      ../drivers/net/ethernet/dec/tulip/dmfe.c:2217:3: warning: misleading
      indentation; statement is not part of the previous 'if'
      [-Wmisleading-indentation]
              switch(mode) {
              ^
      ../drivers/net/ethernet/dec/tulip/dmfe.c:2214:2: note: previous
      statement is here
              if (cr6set)
              ^
      1 warning generated.
      
      This warning occurs because there is a space before the tab on these
      lines. Remove them so that the indentation is consistent with the Linux
      kernel coding style and clang no longer warns.
      
      While we are here, adjust the default block in dmfe_init_module to have
      a proper break between the label and assignment and add a space between
      the switch and opening parentheses to avoid a checkpatch warning.
      
      Fixes: e1c3e501 ("[PATCH] initialisation cleanup for ULI526x-net-driver")
      Link: https://github.com/ClangBuiltLinux/linux/issues/795Signed-off-by: default avatarNathan Chancellor <natechancellor@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      fe06bf3d
    • David S. Miller's avatar
      Merge branch 'dp83867-fix-fifo-depth' · 80bfc3b4
      David S. Miller authored
      Dan Murphy says:
      
      ====================
      Fix Tx/Rx FIFO depth for DP83867
      
      The DP83867 supports both the RGMII and SGMII modes.  The Tx and Rx FIFO depths
      are configurable in these modes but may not applicable for both modes.
      
      When the device is configured for RGMII mode the Tx FIFO depth is applicable
      and for SGMII mode both Tx and Rx FIFO depth settings are applicable.  When
      the driver was originally written only the RGMII device was available and there
      were no standard fifo-depth DT properties.
      
      The patchset converts the special ti,fifo-depth property to the standard
      tx-fifo-depth property while still allowing the ti,fifo-depth property to be
      set as to maintain backward compatibility.
      
      In addition to this change the rx-fifo-depth property support was added and only
      written when the device is configured for SGMII mode.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      80bfc3b4
    • Dan Murphy's avatar
      net: phy: dp83867: Add rx-fifo-depth and tx-fifo-depth · e02d1816
      Dan Murphy authored
      This code changes the TI specific ti,fifo-depth to the common
      tx-fifo-depth property.  The tx depth is applicable for both RGMII and
      SGMII modes of operation.
      
      rx-fifo-depth was added as well but this is only applicable for SGMII
      mode.
      
      So in summary
      if RGMII mode write tx fifo depth only
      if SGMII mode write both rx and tx fifo depths
      
      If the property is not populated in the device tree then set the value
      to the default values.
      Signed-off-by: default avatarDan Murphy <dmurphy@ti.com>
      Reported-by: default avatarAdrian Bunk <bunk@kernel.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      e02d1816