1. 07 11月, 2022 1 次提交
  2. 29 9月, 2022 1 次提交
  3. 28 7月, 2022 1 次提交
  4. 20 7月, 2022 1 次提交
  5. 04 7月, 2022 2 次提交
  6. 11 6月, 2022 1 次提交
  7. 20 5月, 2022 1 次提交
  8. 15 5月, 2022 1 次提交
  9. 02 5月, 2022 1 次提交
  10. 19 4月, 2022 1 次提交
  11. 31 3月, 2022 1 次提交
  12. 25 1月, 2022 1 次提交
  13. 05 1月, 2022 3 次提交
    • V
      can: dev: add sanity check in can_set_static_ctrlmode() · 7d4a101c
      Vincent Mailhol 提交于
      Previous patch removed can_priv::ctrlmode_static to replace it with
      can_get_static_ctrlmode().
      
      A condition sine qua non for this to work is that the controller
      static modes should never be set in can_priv::ctrlmode_supported
      (c.f. the comment on can_priv::ctrlmode_supported which states that it
      is for "options that can be *modified* by netlink"). Also, this
      condition is already correctly fulfilled by all existing drivers
      which rely on the ctrlmode_static feature.
      
      Nonetheless, we added an extra safeguard in can_set_static_ctrlmode()
      to return an error value and to warn the developer who would be
      adventurous enough to set to static a given feature that is already
      set to supported.
      
      The drivers which rely on the static controller mode are then updated
      to check the return value of can_set_static_ctrlmode().
      
      Link: https://lore.kernel.org/all/20211213160226.56219-3-mailhol.vincent@wanadoo.frSigned-off-by: NVincent Mailhol <mailhol.vincent@wanadoo.fr>
      Signed-off-by: NMarc Kleine-Budde <mkl@pengutronix.de>
      7d4a101c
    • V
      can: do not increase rx_bytes statistics for RTR frames · 8e674ca7
      Vincent Mailhol 提交于
      The actual payload length of the CAN Remote Transmission Request (RTR)
      frames is always 0, i.e. no payload is transmitted on the wire.
      However, those RTR frames still use the DLC to indicate the length of
      the requested frame.
      
      As such, net_device_stats::rx_bytes should not be increased for the
      RTR frames.
      
      This patch fixes all the CAN drivers.
      
      Link: https://lore.kernel.org/all/20211207121531.42941-5-mailhol.vincent@wanadoo.fr
      Cc: Marc Kleine-Budde <mkl@pengutronix.de>
      Cc: Nicolas Ferre <nicolas.ferre@microchip.com>
      Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
      Cc: Ludovic Desroches <ludovic.desroches@microchip.com>
      Cc: Chandrasekar Ramakrishnan <rcsekar@samsung.com>
      Cc: Maxime Ripard <mripard@kernel.org>
      Cc: Chen-Yu Tsai <wens@csie.org>
      Cc: Jernej Skrabec <jernej.skrabec@gmail.com>
      Cc: Yasushi SHOJI <yashi@spacecubics.com>
      Cc: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com>
      Cc: Naga Sureshkumar Relli <naga.sureshkumar.relli@xilinx.com>
      Cc: Michal Simek <michal.simek@xilinx.com>
      Cc: Stephane Grosjean <s.grosjean@peak-system.com>
      Tested-by: Jimmy Assarsson <extja@kvaser.com> # kvaser
      Signed-off-by: NVincent Mailhol <mailhol.vincent@wanadoo.fr>
      Acked-by: Stefan Mätje <stefan.maetje@esd.eu> # esd_usb2
      Tested-by: Stefan Mätje <stefan.maetje@esd.eu> # esd_usb2
      Signed-off-by: NMarc Kleine-Budde <mkl@pengutronix.de>
      8e674ca7
    • V
      can: do not increase rx statistics when generating a CAN rx error message frame · 676068db
      Vincent Mailhol 提交于
      The CAN error message frames (i.e. error skb) are an interface
      specific to socket CAN. The payload of the CAN error message frames
      does not correspond to any actual data sent on the wire. Only an error
      flag and a delimiter are transmitted when an error occurs (c.f. ISO
      11898-1 section 10.4.4.2 "Error flag").
      
      For this reason, it makes no sense to increment the rx_packets and
      rx_bytes fields of struct net_device_stats because no actual payload
      were transmitted on the wire.
      
      This patch fixes all the CAN drivers.
      
      Link: https://lore.kernel.org/all/20211207121531.42941-2-mailhol.vincent@wanadoo.fr
      CC: Marc Kleine-Budde <mkl@pengutronix.de>
      CC: Nicolas Ferre <nicolas.ferre@microchip.com>
      CC: Alexandre Belloni <alexandre.belloni@bootlin.com>
      CC: Ludovic Desroches <ludovic.desroches@microchip.com>
      CC: Chandrasekar Ramakrishnan <rcsekar@samsung.com>
      CC: Maxime Ripard <mripard@kernel.org>
      CC: Chen-Yu Tsai <wens@csie.org>
      CC: Jernej Skrabec <jernej.skrabec@gmail.com>
      CC: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com>
      CC: Naga Sureshkumar Relli <naga.sureshkumar.relli@xilinx.com>
      CC: Michal Simek <michal.simek@xilinx.com>
      CC: Stephane Grosjean <s.grosjean@peak-system.com>
      Tested-by: Jimmy Assarsson <extja@kvaser.com> # kvaser
      Signed-off-by: NVincent Mailhol <mailhol.vincent@wanadoo.fr>
      Acked-by: Stefan Mätje <stefan.maetje@esd.eu> # esd_usb2
      Tested-by: Stefan Mätje <stefan.maetje@esd.eu> # esd_usb2
      Signed-off-by: NMarc Kleine-Budde <mkl@pengutronix.de>
      676068db
  14. 07 12月, 2021 3 次提交
  15. 19 8月, 2021 4 次提交
  16. 10 8月, 2021 1 次提交
  17. 25 7月, 2021 4 次提交
  18. 27 5月, 2021 4 次提交
  19. 06 5月, 2021 1 次提交
  20. 07 4月, 2021 1 次提交
  21. 30 3月, 2021 5 次提交
  22. 16 3月, 2021 1 次提交