1. Jul 22, 2022
  2. Jul 21, 2022
  3. Jul 20, 2022
    • David S. Miller's avatar
      Merge tag 'linux-can-fixes-for-5.19-20220720' of... · 44484fa8
      David S. Miller authored
      Merge tag 'linux-can-fixes-for-5.19-20220720' of git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can
      
      
      
      Marc Kleine-Budde says:
      
      ====================
      this is a pull request of 2 patches for net/master.
      
      The first patch is by me and fixes the detection of the mcp251863 in
      the mcp251xfd driver.
      
      The last patch is by Liang He and adds a missing of_node_put() in the
      rcar_canfd driver.
      ====================
      
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      44484fa8
    • Alex Elder's avatar
      net: ipa: initialize ring indexes to 0 · 5fb859f7
      Alex Elder authored
      
      
      When a GSI channel is initially allocated, and after it has been
      reset, the hardware assumes its ring index is 0.  And although we
      do initialize channels this way, the comments in the IPA code don't
      really explain this.  For event rings, it doesn't matter what value
      we use initially, so using 0 is just fine.
      
      Add some information about the assumptions made by hardware above
      the definition of the gsi_ring structure in "gsi.h".
      
      Zero the index field for all rings (channel and event) when the ring
      is allocated.  As a result, that function initializes all fields in
      the structure.
      
      Stop zeroing the index the top of gsi_channel_program().  Initially
      we'll use the index value set when the channel ring was allocated.
      And we'll explicitly zero the index value in gsi_channel_reset()
      before programming the hardware, adding a comment explaining why
      it's required.
      
      For event rings, use the index initialized by gsi_ring_alloc()
      rather than 0 when ringing the doorbell in gsi_evt_ring_program().
      (It'll still be zero, but we won't assume that to be the case.)
      
      Use a local variable in gsi_evt_ring_program() that represents the
      address of the event ring's ring structure.
      
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      5fb859f7
    • Ido Schimmel's avatar
      mlxsw: spectrum_router: Fix IPv4 nexthop gateway indication · e5ec6a25
      Ido Schimmel authored
      mlxsw needs to distinguish nexthops with a gateway from connected
      nexthops in order to write the former to the adjacency table of the
      device. The check used to rely on the fact that nexthops with a gateway
      have a 'link' scope whereas connected nexthops have a 'host' scope. This
      is no longer correct after commit 747c1430 ("ip: fix dflt addr
      selection for connected nexthop").
      
      Fix that by instead checking the address family of the gateway IP. This
      is a more direct way and also consistent with the IPv6 counterpart in
      mlxsw_sp_rt6_is_gateway().
      
      Cc: stable@vger.kernel.org
      Fixes: 747c1430 ("ip: fix dflt addr selection for connected nexthop")
      Fixes: 597cfe4f
      
       ("nexthop: Add support for IPv4 nexthops")
      Signed-off-by: default avatarIdo Schimmel <idosch@nvidia.com>
      Reviewed-by: default avatarAmit Cohen <amcohen@nvidia.com>
      Reviewed-by: default avatarNicolas Dichtel <nicolas.dichtel@6wind.com>
      Reviewed-by: default avatarDavid Ahern <dsahern@kernel.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      e5ec6a25