1. 24 Nov, 2020 10 commits
  2. 23 Nov, 2020 23 commits
  3. 22 Nov, 2020 1 commit
  4. 21 Nov, 2020 6 commits
    • Jakub Kicinski's avatar
      Merge tag 'linux-can-next-for-5.11-20201120' of... · 5e087239
      Jakub Kicinski authored
      Merge tag 'linux-can-next-for-5.11-20201120' of git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next
      
      Marc Kleine-Budde says:
      
      ====================
      pull-request: can-next 2020-11-20
      
      The first patch is by Yegor Yefremov and he improves the j1939 documentaton by
      adding tables for the CAN identifier and its fields.
      
      Then there are 8 patches by Oliver Hartkopp targeting the CAN driver
      infrastructure and drivers. These add support for optional DLC element to the
      Classical CAN frame structure. See patch ea780056 ("can: add optional DLC
      element to Classical CAN frame structure") for details. Oliver's last patch
      adds len8_dlc support to several drivers. Stefan Mätje provides a patch to add
      len8_dlc support to the esd_usb2 driver.
      
      The next patch is by Oliver Hartkopp, too and adds support for modification of
      Classical CAN DLCs to CAN GW sockets.
      
      The next 3 patches target the nxp,flexcan DT bindings. One patch by my adds the
      missing uint32 reference to the clock-frequency property. Joakim Zhang's
      patches fix the fsl,clk-source property and add the IMX_SC_R_CAN() macro to the
      imx firmware header file, which will be used in the flexcan driver later.
      
      Another patch by Joakim Zhang prepares the flexcan driver for SCU based
      stop-mode, by giving the existing, GPR based stop-mode, a _GPR postfix.
      
      The next 5 patches are by me, target the flexcan driver, and clean up the
      .ndo_open and .ndo_stop callbacks. These patches try to fix a sporadically
      hanging flexcan_close() during simultanious ifdown, sending of CAN messages and
      probably open CAN bus. I was never able to reproduce, but these seem to fix the
      problem at the reporting user. As these changes are rather big, I'd like to
      mainline them via net-next/master.
      
      The next patches are by Jimmy Assarsson and Christer Beskow, they add support
      for new USB devices to the existing kvaser_usb driver.
      
      The last patch is by Kaixu Xia and simplifies the return in the
      mcp251xfd_chip_softreset() function in the mcp251xfd driver.
      
      * tag 'linux-can-next-for-5.11-20201120' of git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next: (25 commits)
        can: mcp251xfd: remove useless code in mcp251xfd_chip_softreset
        can: kvaser_usb: Add new Kvaser hydra devices
        can: kvaser_usb: kvaser_usb_hydra: Add support for new device variant
        can: kvaser_usb: Add new Kvaser Leaf v2 devices
        can: kvaser_usb: Add USB_{LEAF,HYDRA}_PRODUCT_ID_END defines
        can: flexcan: flexcan_close(): change order if commands to properly shut down the controller
        can: flexcan: flexcan_open(): completely initialize controller before requesting IRQ
        can: flexcan: flexcan_rx_offload_setup(): factor out mailbox and rx-offload setup into separate function
        can: flexcan: move enabling/disabling of interrupts from flexcan_chip_{start,stop}() to callers
        can: flexcan: factor out enabling and disabling of interrupts into separate function
        can: flexcan: rename macro FLEXCAN_QUIRK_SETUP_STOP_MODE -> FLEXCAN_QUIRK_SETUP_STOP_MODE_GPR
        dt-bindings: firmware: add IMX_SC_R_CAN(x) macro for CAN
        dt-bindings: can: fsl,flexcan: fix fsl,clk-source property
        dt-bindings: can: fsl,flexcan: add uint32 reference to clock-frequency property
        can: gw: support modification of Classical CAN DLCs
        can: drivers: add len8_dlc support for esd_usb2 CAN adapter
        can: drivers: add len8_dlc support for various CAN adapters
        can: drivers: introduce helpers to access Classical CAN DLC values
        can: update documentation for DLC usage in Classical CAN
        can: rename CAN FD related can_len2dlc and can_dlc2len helpers
        ...
      ====================
      
      Link: https://lore.kernel.org/r/20201120133318.3428231-1-mkl@pengutronix.deSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      5e087239
    • Heiner Kallweit's avatar
      net: bridge: switch to net core statistics counters handling · 7609ecb2
      Heiner Kallweit authored
      Use netdev->tstats instead of a member of net_bridge for storing
      a pointer to the per-cpu counters. This allows us to use core
      functionality for statistics handling.
      Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
      Link: https://lore.kernel.org/r/9bad2be2-fd84-7c6e-912f-cee433787018@gmail.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      7609ecb2
    • Jakub Kicinski's avatar
      Merge branch 'net-hns3-misc-updates-for-next' · 9c89cc9b
      Jakub Kicinski authored
      Huazhong Tan says:
      
      ====================
      net: hns3: misc updates for -next
      
      This series includes some misc updates for the HNS3 ethernet driver.
      
       #1 adds support for 1280 queues
       #2 adds mapping for BAR45 which is needed by RoCE client.
       #3 extend the interrupt resources.
       #4&#5 add support to query firmware's calculated shaping parameters.
      ====================
      
      Link: https://lore.kernel.org/r/1605863783-36995-1-git-send-email-tanhuazhong@huawei.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      9c89cc9b
    • Yonglong Liu's avatar
      net: hns3: adds debugfs to dump more info of shaping parameters · c331ecf1
      Yonglong Liu authored
      Adds debugfs to dump new shaping parameters: rate and flag.
      Signed-off-by: default avatarYonglong Liu <liuyonglong@huawei.com>
      Signed-off-by: default avatarHuazhong Tan <tanhuazhong@huawei.com>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      c331ecf1
    • Yonglong Liu's avatar
      net: hns3: add support to utilize the firmware calculated shaping parameters · e364ad30
      Yonglong Liu authored
      Since the calculation of the driver is fixed, if the number of
      queue or clock changed, the calculated result may be inaccurate.
      
      So for compatible and maintainable, add a new flag to tell the
      firmware to calculate the shaping parameters with the specified
      rate.
      Signed-off-by: default avatarYonglong Liu <liuyonglong@huawei.com>
      Signed-off-by: default avatarHuazhong Tan <tanhuazhong@huawei.com>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      e364ad30
    • Yufeng Mo's avatar
      net: hns3: add support for pf querying new interrupt resources · 3a6863e4
      Yufeng Mo authored
      For HNAE3_DEVICE_VERSION_V3, a maximum of 1281 interrupt
      resources are supported. To utilize these new resources,
      extend the corresponding field or variable to 16bit type,
      and remove the restriction of NIC client that only use a
      maximum of 65 interrupt vectors. In addition, the I/O address
      of the extended interrupt resources are different, so an extra
      handler is needed.
      
      Currently, the total number of interrupts is the sum of RoCE's
      number and RoCE's offset (RoCE is in front of NIC), since
      the number of both NIC and RoCE are same. For readability,
      rewrite the corresponding field of the command, rename the
      RoCE's offset field as the number of NIC interrupts, then
      the total number of interrupts is sum of the number of RoCE
      and NIC, and replace vport->back with hdev in
      hclge_init_roce_base_info() for simplifying the code.
      Signed-off-by: default avatarYufeng Mo <moyufeng@huawei.com>
      Signed-off-by: default avatarHuazhong Tan <tanhuazhong@huawei.com>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      3a6863e4