1. 29 May, 2020 6 commits
    • Mark Brown's avatar
    • Mark Brown's avatar
    • Mark Brown's avatar
      Merge series "regmap: provide simple bitops and use them in a driver" from... · 93b92992
      Mark Brown authored
      Merge series "regmap: provide simple bitops and use them in a driver" from Bartosz Golaszewski <brgl@bgdev.pl>
      Bartosz Golaszewski <bgolaszewski@baylibre.com>:
      
      From: Bartosz Golaszewski <bgolaszewski@baylibre.com>
      
      I noticed that oftentimes I use regmap_update_bits() for simple bit
      setting or clearing. In this case the fourth argument is superfluous as
      it's always 0 or equal to the mask argument.
      
      This series proposes to add simple bit operations for setting, clearing
      and testing specific bits with regmap.
      
      The second patch uses all three in a driver that got recently picked into
      the net-next tree.
      
      The patches obviously target different trees so - if you're ok with
      the change itself - I propose you pick the first one into your regmap
      tree for v5.8 and then I'll resend the second patch to add the first
      user for these macros for v5.9.
      
      v1 -> v2:
      - convert the new macros to static inline functions
      
      v2 -> v3:
      - drop unneeded ternary operator
      
      Bartosz Golaszewski (2):
        regmap: provide helpers for simple bit operations
        net: ethernet: mtk-star-emac: use regmap bitops
      
       drivers/base/regmap/regmap.c                  | 22 +++++
       drivers/net/ethernet/mediatek/mtk_star_emac.c | 80 ++++++++-----------
       include/linux/regmap.h                        | 36 +++++++++
       3 files changed, 93 insertions(+), 45 deletions(-)
      
      base-commit: 8f3d9f35
      
      --
      2.26.1
      
      _______________________________________________
      linux-arm-kernel mailing list
      linux-arm-kernel@lists.infradead.org
      http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
      93b92992
    • Mark Brown's avatar
      Merge series "New DSA driver for VSC9953 Seville switch" from Vladimir Oltean <olteanv@gmail.com>: · 626ceee3
      Mark Brown authored
      Looking at the Felix and Ocelot drivers, Maxim asked if it would be
      possible to use them as a base for a new driver for the switch inside
      NXP T1040. Turns out, it is! The result is a driver eerily similar to
      Felix.
      
      The biggest challenge seems to be getting register read/write API
      generic enough to cover such wild bitfield variations between hardware
      generations. There is a patch on the regmap core which I would like to
      get in through the networking subsystem, if possible (and if Mark is
      ok), since it's a trivial addition.
      
      Maxim Kochetkov (4):
        soc/mscc: ocelot: add MII registers description
        net: mscc: ocelot: convert SYS_PAUSE_CFG register access to regfield
        net: mscc: ocelot: extend watermark encoding function
        net: dsa: ocelot: introduce driver for Seville VSC9953 switch
      
      Vladimir Oltean (7):
        regmap: add helper for per-port regfield initialization
        net: mscc: ocelot: unexport ocelot_probe_port
        net: mscc: ocelot: convert port registers to regmap
        net: mscc: ocelot: convert QSYS_SWITCH_PORT_MODE and SYS_PORT_MODE to
          regfields
        net: dsa: ocelot: create a template for the DSA tags on xmit
        net: mscc: ocelot: split writes to pause frame enable bit and to
          thresholds
        net: mscc: ocelot: disable flow control on NPI interface
      
       drivers/net/dsa/ocelot/Kconfig           |   12 +
       drivers/net/dsa/ocelot/Makefile          |    6 +
       drivers/net/dsa/ocelot/felix.c           |   49 +-
       drivers/net/dsa/ocelot/felix_vsc9959.c   |   72 +-
       drivers/net/dsa/ocelot/seville.c         |  742 +++++++++++++++
       drivers/net/dsa/ocelot/seville.h         |   50 +
       drivers/net/dsa/ocelot/seville_vsc9953.c | 1064 ++++++++++++++++++++++
       drivers/net/ethernet/mscc/ocelot.c       |   87 +-
       drivers/net/ethernet/mscc/ocelot.h       |    9 +-
       drivers/net/ethernet/mscc/ocelot_board.c |   21 +-
       drivers/net/ethernet/mscc/ocelot_io.c    |   18 +-
       drivers/net/ethernet/mscc/ocelot_regs.c  |   57 ++
       include/linux/regmap.h                   |    8 +
       include/soc/mscc/ocelot.h                |   68 +-
       include/soc/mscc/ocelot_dev.h            |   78 --
       include/soc/mscc/ocelot_qsys.h           |   13 -
       include/soc/mscc/ocelot_sys.h            |   23 -
       net/dsa/tag_ocelot.c                     |   21 +-
       18 files changed, 2196 insertions(+), 202 deletions(-)
       create mode 100644 drivers/net/dsa/ocelot/seville.c
       create mode 100644 drivers/net/dsa/ocelot/seville.h
       create mode 100644 drivers/net/dsa/ocelot/seville_vsc9953.c
      
      base-commit: 8f3d9f35
      
      --
      2.25.1
      626ceee3
    • Bartosz Golaszewski's avatar
      regmap: provide helpers for simple bit operations · aa2ff9db
      Bartosz Golaszewski authored
      In many instances regmap_update_bits() is used for simple bit setting
      and clearing. In these cases the last argument is redundant and we can
      hide it with a static inline function.
      
      This adds three new helpers for simple bit operations: set_bits,
      clear_bits and test_bits (the last one defined as a regular function).
      Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
      Link: https://lore.kernel.org/r/20200528154503.26304-2-brgl@bgdev.plSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      aa2ff9db
    • Vladimir Oltean's avatar
      regmap: add helper for per-port regfield initialization · 8baebfc2
      Vladimir Oltean authored
      Similar to the standalone regfields, add an initializer for the users
      who need to set .id_size and .id_offset in order to use the
      regmap_fields_update_bits_base API.
      Signed-off-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
      Link: https://lore.kernel.org/r/20200527234113.2491988-2-olteanv@gmail.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      8baebfc2
  2. 24 May, 2020 5 commits
    • Linus Torvalds's avatar
      Linux 5.7-rc7 · 9cb1fd0e
      Linus Torvalds authored
      9cb1fd0e
    • Linus Torvalds's avatar
      Merge tag 'efi-urgent-2020-05-24' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 98790bba
      Linus Torvalds authored
      Pull EFI fixes from Thomas Gleixner:
       "A set of EFI fixes:
      
         - Don't return a garbage screen info when EFI framebuffer is not
           available
      
         - Make the early EFI console work properly with wider fonts instead
           of drawing garbage
      
         - Prevent a memory buffer leak in allocate_e820()
      
         - Print the firmware error record properly so it can be decoded by
           users
      
         - Fix a symbol clash in the host tool build which only happens with
           newer compilers.
      
         - Add a missing check for the event log version of TPM which caused
           boot failures on several Dell systems due to an attempt to decode
           SHA-1 format with the crypto agile algorithm"
      
      * tag 'efi-urgent-2020-05-24' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        tpm: check event log version before reading final events
        efi: Pull up arch-specific prototype efi_systab_show_arch()
        x86/boot: Mark global variables as static
        efi: cper: Add support for printing Firmware Error Record Reference
        efi/libstub/x86: Avoid EFI map buffer alloc in allocate_e820()
        efi/earlycon: Fix early printk for wider fonts
        efi/libstub: Avoid returning uninitialized data from setup_graphics()
      98790bba
    • Linus Torvalds's avatar
      Merge tag 'x86-urgent-2020-05-24' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 667b6249
      Linus Torvalds authored
      Pull x86 fixes from Thomas Gleixner:
       "Two fixes for x86:
      
         - Unbreak stack dumps for inactive tasks by interpreting the special
           first frame left by __switch_to_asm() correctly.
      
           The recent change not to skip the first frame so ORC and frame
           unwinder behave in the same way caused all entries to be
           unreliable, i.e. prepended with '?'.
      
         - Use cpumask_available() instead of an implicit NULL check of a
           cpumask_var_t in mmio trace to prevent a Clang build warning"
      
      * tag 'x86-urgent-2020-05-24' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/unwind/orc: Fix unwind_get_return_address_ptr() for inactive tasks
        x86/mmiotrace: Use cpumask_available() for cpumask_var_t variables
      667b6249
    • Linus Torvalds's avatar
      Merge tag 'sched-urgent-2020-05-24' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 9e61d12b
      Linus Torvalds authored
      Pull scheduler fixes from Thomas Gleixner:
       "A set of fixes for the scheduler:
      
         - Fix handling of throttled parents in enqueue_task_fair() completely.
      
           The recent fix overlooked a corner case where the first iteration
           terminates due to an entity already being on the runqueue which
           makes the list management incomplete and later triggers the
           assertion which checks for completeness.
      
         - Fix a similar problem in unthrottle_cfs_rq().
      
         - Show the correct uclamp values in procfs which prints the effective
           value twice instead of requested and effective"
      
      * tag 'sched-urgent-2020-05-24' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/fair: Fix unthrottle_cfs_rq() for leaf_cfs_rq list
        sched/debug: Fix requested task uclamp values shown in procfs
        sched/fair: Fix enqueue_task_fair() warning some more
      9e61d12b
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · caffb99b
      Linus Torvalds authored
      Pull networking fixes from David Miller:
      
       1) Fix RCU warnings in ipv6 multicast router code, from Madhuparna
          Bhowmik.
      
       2) Nexthop attributes aren't being checked properly because of
          mis-initialized iterator, from David Ahern.
      
       3) Revert iop_idents_reserve() change as it caused performance
          regressions and was just working around what is really a UBSAN bug
          in the compiler. From Yuqi Jin.
      
       4) Read MAC address properly from ROM in bmac driver (double iteration
          proceeds past end of address array), from Jeremy Kerr.
      
       5) Add Microsoft Surface device IDs to r8152, from Marc Payne.
      
       6) Prevent reference to freed SKB in __netif_receive_skb_core(), from
          Boris Sukholitko.
      
       7) Fix ACK discard behavior in rxrpc, from David Howells.
      
       8) Preserve flow hash across packet scrubbing in wireguard, from Jason
          A. Donenfeld.
      
       9) Cap option length properly for SO_BINDTODEVICE in AX25, from Eric
          Dumazet.
      
      10) Fix encryption error checking in kTLS code, from Vadim Fedorenko.
      
      11) Missing BPF prog ref release in flow dissector, from Jakub Sitnicki.
      
      12) dst_cache must be used with BH disabled in tipc, from Eric Dumazet.
      
      13) Fix use after free in mlxsw driver, from Jiri Pirko.
      
      14) Order kTLS key destruction properly in mlx5 driver, from Tariq
          Toukan.
      
      15) Check devm_platform_ioremap_resource() return value properly in
          several drivers, from Tiezhu Yang.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (71 commits)
        net: smsc911x: Fix runtime PM imbalance on error
        net/mlx4_core: fix a memory leak bug.
        net: ethernet: ti: cpsw: fix ASSERT_RTNL() warning during suspend
        net: phy: mscc: fix initialization of the MACsec protocol mode
        net: stmmac: don't attach interface until resume finishes
        net: Fix return value about devm_platform_ioremap_resource()
        net/mlx5: Fix error flow in case of function_setup failure
        net/mlx5e: CT: Correctly get flow rule
        net/mlx5e: Update netdev txq on completions during closure
        net/mlx5: Annotate mutex destroy for root ns
        net/mlx5: Don't maintain a case of del_sw_func being null
        net/mlx5: Fix cleaning unmanaged flow tables
        net/mlx5: Fix memory leak in mlx5_events_init
        net/mlx5e: Fix inner tirs handling
        net/mlx5e: kTLS, Destroy key object after destroying the TIS
        net/mlx5e: Fix allowed tc redirect merged eswitch offload cases
        net/mlx5: Avoid processing commands before cmdif is ready
        net/mlx5: Fix a race when moving command interface to events mode
        net/mlx5: Add command entry handling completion
        rxrpc: Fix a memory leak in rxkad_verify_response()
        ...
      caffb99b
  3. 23 May, 2020 29 commits