1. 30 Mar, 2022 11 commits
    • Linus Torvalds's avatar
      Merge tag 'regulator-fix-v5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator · 4f373011
      Linus Torvalds authored
      Pull regulator fixes from Mark Brown:
       "A couple of fixes for the rt4831 driver which fix features that didn't
        work due to incomplete description of the register configuration"
      
      * tag 'regulator-fix-v5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator:
        regulator: rt4831: Add active_discharge_on to fix discharge API
        regulator: rt4831: Add bypass mask to fix set_bypass API work
      4f373011
    • Linus Torvalds's avatar
      Merge tag 'dmaengine-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine · 2a44cdaa
      Linus Torvalds authored
      Pull dmaengine updates from Vinod Koul:
       "This time we have bunch of driver updates and some new device support.
      
        New support:
         - Document RZ/V2L and RZ/G2UL dma binding
         - TI AM62x k3-udma and k3-psil support
      
        Updates:
         - Yaml conversion for Mediatek uart apdma schema
         - Removal of DMA-32 fallback configuration for various drivers
         - imx-sdma updates for channel restart"
      
      * tag 'dmaengine-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine: (23 commits)
        dmaengine: hisi_dma: fix MSI allocate fail when reload hisi_dma
        dmaengine: dw-axi-dmac: cleanup comments
        dmaengine: fsl-dpaa2-qdma: Drop comma after SoC match table sentinel
        dt-bindings: dma: Convert mtk-uart-apdma to DT schema
        dmaengine: ppc4xx: Make use of the helper macro LIST_HEAD()
        dmaengine: idxd: Remove useless DMA-32 fallback configuration
        dmaengine: qcom_hidma: Remove useless DMA-32 fallback configuration
        dmaengine: sh: Kconfig: Add ARCH_R9A07G054 dependency for RZ_DMAC config option
        dmaengine: ti: k3-psil: Add AM62x PSIL and PDMA data
        dmaengine: ti: k3-udma: Add AM62x DMSS support
        dmaengine: ti: cleanup comments
        dmaengine: imx-sdma: clean up some inconsistent indenting
        dmaengine: Revert "dmaengine: shdma: Fix runtime PM imbalance on error"
        dmaengine: idxd: restore traffic class defaults after wq reset
        dmaengine: altera-msgdma: Remove useless DMA-32 fallback configuration
        dmaengine: stm32-dma: set dma_device max_sg_burst
        dmaengine: imx-sdma: fix cyclic buffer race condition
        dmaengine: imx-sdma: restart cyclic channel if needed
        dmaengine: iot: Remove useless DMA-32 fallback configuration
        dmaengine: ptdma: handle the cases based on DMA is complete
        ...
      2a44cdaa
    • Linus Torvalds's avatar
      Merge tag 'rproc-v5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux · 2c54e184
      Linus Torvalds authored
      Pull remoteproc updates from Bjorn Andersson:
       "In the remoteproc core, it's now possible to mark the sysfs attributes
        read only on a per-instance basis, which is then used by the TI wkup
        M3 driver.
      
        Also, the rproc_shutdown() interface propagates errors to the caller
        and an array underflow is fixed in the debugfs interface. The
        rproc_da_to_va() API is moved to the public API to allow e.g. child
        rpmsg devices to acquire pointers to memory shared with the remote
        processor.
      
        The TI K3 R5F and DSP drivers gains support for attaching to instances
        already started by the bootloader, aka IPC-only mode.
      
        The Mediatek remoteproc driver gains support for the MT8186 SCP. The
        driver's probe function is reordered and moved to use the devres
        version of rproc_alloc() to save a few gotos. The driver's probe
        function is also transitioned to use dev_err_probe() to provide better
        debug support.
      
        Support for the Qualcomm SC7280 Wireless Subsystem (WPSS) is
        introduced. The Hexagon based remoteproc drivers gains support for
        voting for interconnect bandwidth during launch of the remote
        processor. The modem subsystem (MSS) driver gains support for probing
        the BAM-DMUX driver, which provides the network interface towards the
        modem on a set of older Qualcomm platforms. In addition a number a bug
        fixes are introduces in the Qualcomm drivers.
      
        Lastly Qualcomm ADSP DeviceTree binding is converted to YAML format,
        to allow validation of DeviceTree source files"
      
      * tag 'rproc-v5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux: (22 commits)
        remoteproc: qcom_q6v5_mss: Create platform device for BAM-DMUX
        remoteproc: qcom: q6v5_wpss: Add support for sc7280 WPSS
        dt-bindings: remoteproc: qcom: Add SC7280 WPSS support
        dt-bindings: remoteproc: qcom: adsp: Convert binding to YAML
        remoteproc: k3-dsp: Add support for IPC-only mode for all K3 DSPs
        remoteproc: k3-dsp: Refactor mbox request code in start
        remoteproc: k3-r5: Add support for IPC-only mode for all R5Fs
        remoteproc: k3-r5: Refactor mbox request code in start
        remoteproc: Change rproc_shutdown() to return a status
        remoteproc: qcom: q6v5: Add interconnect path proxy vote
        remoteproc: mediatek: Support mt8186 scp
        dt-bindings: remoteproc: mediatek: Add binding for mt8186 scp
        remoteproc: qcom_q6v5_mss: Fix some leaks in q6v5_alloc_memory_region
        remoteproc: qcom_wcnss: Add missing of_node_put() in wcnss_alloc_memory_region
        remoteproc: qcom: Fix missing of_node_put in adsp_alloc_memory_region
        remoteproc: move rproc_da_to_va declaration to remoteproc.h
        remoteproc: wkup_m3: Set sysfs_read_only flag
        remoteproc: Introduce sysfs_read_only flag
        remoteproc: Fix count check in rproc_coredump_write()
        remoteproc: mtk_scp: Use dev_err_probe() where possible
        ...
      2c54e184
    • Linus Torvalds's avatar
      Merge tag 'hwlock-v5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux · d177850d
      Linus Torvalds authored
      Pull hwspinlock updates from Bjorn Andersson:
       "This updates sprd and srm32 drivers to use struct_size() instead of
        their open-coded equivalents. It also cleans up the omap dt-bindings
        example"
      
      * tag 'hwlock-v5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux:
        hwspinlock: sprd: Use struct_size() helper in devm_kzalloc()
        hwspinlock: stm32: Use struct_size() helper in devm_kzalloc()
        dt-bindings: hwlock: omap: Remove redundant binding example
      d177850d
    • Linus Torvalds's avatar
      Merge tag 'rpmsg-v5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux · 3312db01
      Linus Torvalds authored
      Pull rpmsg updates from Bjorn Andersson:
       "The major part of the rpmsg changes for v5.18 relates to improvements
        in the rpmsg char driver, which now allow automatically attaching to
        rpmsg channels as well as initiating new communication channels from
        the Linux side.
      
        The SMD driver is moved to arch_initcall with the purpose of
        registering root clocks earlier during boot.
      
        Also in the SMD driver, a workaround for the resource power management
        (RPM) channel is introduced to resolve an issue where both the RPM and
        Linux side waits for the other to close the communication established
        by the bootloader - this unblocks support for clocks and regulators on
        some older Qualcomm platforms"
      
      * tag 'rpmsg-v5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux:
        rpmsg: ctrl: Introduce new RPMSG_CREATE/RELEASE_DEV_IOCTL controls
        rpmsg: char: Introduce the "rpmsg-raw" channel
        rpmsg: char: Add possibility to use default endpoint of the rpmsg device
        rpmsg: char: Refactor rpmsg_chrdev_eptdev_create function
        rpmsg: Update rpmsg_chrdev_register_device function
        rpmsg: Move the rpmsg control device from rpmsg_char to rpmsg_ctrl
        rpmsg: Create the rpmsg class in core instead of in rpmsg char
        rpmsg: char: Export eptdev create and destroy functions
        rpmsg: char: treat rpmsg_trysend() ENOMEM as EAGAIN
        rpmsg: qcom_smd: Fix redundant channel->registered assignment
        rpmsg: use struct_size over open coded arithmetic
        rpmsg: smd: allow opening rpm_requests even if already opened
        rpmsg: qcom_smd: Promote to arch_initcall
      3312db01
    • Linus Torvalds's avatar
      Merge tag 'i3c/for-5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/i3c/linux · f18e345d
      Linus Torvalds authored
      Pull i3c updates from Alexandre Belloni:
      
       - support dynamic addition of i2c devices
      
      * tag 'i3c/for-5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/i3c/linux:
        i3c: fix uninitialized variable use in i2c setup
        i3c: support dynamically added i2c devices
        i3c: remove i2c board info from i2c_dev_desc
      f18e345d
    • Linus Torvalds's avatar
      Merge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux · 95124339
      Linus Torvalds authored
      Pull clk updates from Stephen Boyd:
       "There's one large change in the core clk framework here. We change how
        clk_set_rate_range() works so that the frequency is re-evaulated each
        time the rate is changed. Previously we wouldn't let clk providers see
        a rate that was different if it was still within the range, which
        could be bad for power if the clk could run slower when a range
        expands. Now the clk provider can decide to do something differently
        when the constraints change. This broke Nvidia's clk driver so we had
        to wait for the fix for that to bake a little more in -next.
      
        The rate range patch series also introduced a kunit suite for the clk
        framework that we're going to extend in the next release. It already
        made it easy to find corner cases in the rate range patches so I'm
        excited to see it cover more clk code and increase our confidence in
        core framework patches in the future. I also added a kunit test for
        the basic clk gate code and that work will continue to cover more
        basic clk types: muxes, dividers, etc.
      
        Beyond the core code we have the usual set of clk driver updates and
        additions. Qualcomm again dominates the diffstat here with lots more
        SoCs being supported and i.MX follows afer that with a similar number
        of SoCs gaining clk drivers. Beyond those large additions there's
        drivers being modernized to use clk_parent_data so we can move away
        from global string names for all the clks in an SoC. Finally there's
        lots of little fixes all over the clk drivers for typos, warnings, and
        missing clks that aren't critical and get batched up waiting for the
        next merge window to open. Nothing super big stands out in the driver
        pile. Full details are below.
      
        Core:
         - Make clk_set_rate_range() re-evaluate the limits each time
         - Introduce various clk_set_rate_range() tests
         - Add clk_drop_range() to drop a previously set range
      
        New Drivers:
         - i.MXRT1050 clock driver and bindings
         - i.MX8DXL clock driver and bindings
         - i.MX93 clock driver and bindings
         - NCO blocks on Apple SoCs
         - Audio clks on StarFive JH7100 RISC-V SoC
         - Add support for the new Renesas RZ/V2L SoC
         - Qualcomm SDX65 A7 PLL
         - Qualcomm SM6350 GPU clks
         - Qualcomm SM6125, SM6350, QCS2290 display clks
         - Qualcomm MSM8226 multimedia clks
      
        Updates:
         - Kunit tests for clk-gate implementation
         - Terminate arrays with sentinels and make that clearer
         - Cleanup SPDX tags
         - Fix typos in comments
         - Mark mux table as const in clk-mux
         - Make the all_lists array const
         - Convert Cirrus Logic CS2000P driver to regmap, yamlify DT binding
           and add support for dynamic mode
         - Clock configuration on Microchip PolarFire SoCs
         - Free allocations on probe error in Mediatek clk driver
         - Modernize Mediatek clk driver by consolidating code
         - Add watchdog (WDT), I2C, and pin function controller (PFC) clocks
           on Renesas R-Car S4-8
         - Improve the clocks for the Rockchip rk3568 display outputs
           (parenting, pll-rates)
         - Use of_device_get_match_data() instead of open-coding on Rockchip
           rk3568
         - Reintroduce the expected fractional-divider behaviour that
           disappeared with the addition of CLK_FRAC_DIVIDER_POWER_OF_TWO_PS
         - Remove SYS PLL 1/2 clock gates for i.MX8M*
         - Remove AUDIO MCLK ROOT from i.MX7D
         - Add fracn gppll clock type used by i.MX93
         - Add new composite clock for i.MX93
         - Add missing media mipi phy ref clock for i.MX8MP
         - Fix off by one in imx_lpcg_parse_clks_from_dt()
         - Rework for the imx pll14xx
         - sama7g5: One low priority fix for GCLK of PDMC
         - Add DMA engine (SYS-DMAC) clocks on Renesas R-Car S4-8
         - Add MOST (MediaLB I/F) clocks on Renesas R-Car E3 and D3
         - Add CAN-FD clocks on Renesas R-Car V3U
         - Qualcomm SC8280XP RPMCC
         - Add some missing clks on Qualcomm MSM8992/MSM8994/MSM8998 SoCs
         - Rework Qualcomm GCC bindings and convert SDM845 camera bindig to
           YAML
         - Convert various Qualcomm drivers to use clk_parent_data
         - Remove test clocks from various Qualcomm drivers
         - Crypto engine clks on Qualcomm IPQ806x + more freqs for SDCC/NSS
         - Qualcomm SM8150 EMAC, PCIe, UFS GDSCs
         - Better pixel clk frequency support on Qualcomm RCG2 clks"
      
      * tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux: (227 commits)
        clk: zynq: Update the parameters to zynq_clk_register_periph_clk
        clk: zynq: trivial warning fix
        clk: Drop the rate range on clk_put()
        clk: test: Test clk_set_rate_range on orphan mux
        clk: Initialize orphan req_rate
        dt-bindings: clock: drop useless consumer example
        dt-bindings: clock: renesas: Make example 'clocks' parsable
        clk: qcom: gcc-msm8994: Fix gpll4 width
        dt-bindings: clock: fix dt_binding_check error for qcom,gcc-other.yaml
        clk: rs9: Add Renesas 9-series PCIe clock generator driver
        clk: fixed-factor: Introduce devm_clk_hw_register_fixed_factor_index()
        clk: visconti: prevent array overflow in visconti_clk_register_gates()
        dt-bindings: clk: rs9: Add Renesas 9-series I2C PCIe clock generator
        clk: sifive: Move all stuff into SoCs header files from C files
        clk: sifive: Add SoCs prefix in each SoCs-dependent data
        riscv: dts: Change the macro name of prci in each device node
        dt-bindings: change the macro name of prci in header files and example
        clk: sifive: duplicate the macro definitions for the time being
        clk: qcom: sm6125-gcc: fix typos in comments
        clk: ti: clkctrl: fix typos in comments
        ...
      95124339
    • Linus Torvalds's avatar
      Merge tag 'libnvdimm-for-5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm · ee96dd96
      Linus Torvalds authored
      Pull libnvdimm updates from Dan Williams:
       "The update for this cycle includes the deprecation of block-aperture
        mode and a new perf events interface for the papr_scm nvdimm driver.
      
        The perf events approach was acked by PeterZ.
      
         - Add perf support for nvdimm events, initially only for 'papr_scm'
           devices.
      
         - Deprecate the 'block aperture' support in libnvdimm, it only ever
           existed in the specification, not in shipping product"
      
      * tag 'libnvdimm-for-5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm:
        nvdimm/blk: Fix title level
        MAINTAINERS: remove section LIBNVDIMM BLK: MMIO-APERTURE DRIVER
        powerpc/papr_scm: Fix build failure when
        drivers/nvdimm: Fix build failure when CONFIG_PERF_EVENTS is not set
        nvdimm/region: Delete nd_blk_region infrastructure
        ACPI: NFIT: Remove block aperture support
        nvdimm/namespace: Delete nd_namespace_blk
        nvdimm/namespace: Delete blk namespace consideration in shared paths
        nvdimm/blk: Delete the block-aperture window driver
        nvdimm/region: Fix default alignment for small regions
        docs: ABI: sysfs-bus-nvdimm: Document sysfs event format entries for nvdimm pmu
        powerpc/papr_scm: Add perf interface support
        drivers/nvdimm: Add perf interface to expose nvdimm performance stats
        drivers/nvdimm: Add nvdimm pmu structure
      ee96dd96
    • Linus Torvalds's avatar
      fs: fix fd table size alignment properly · d888c83f
      Linus Torvalds authored
      Jason Donenfeld reports that my commit 1c24a186 ("fs: fd tables have
      to be multiples of BITS_PER_LONG") doesn't work, and the reason is an
      embarrassing brown-paper-bag bug.
      
      Yes, we want to align the number of fds to BITS_PER_LONG, and yes, the
      reason they might not be aligned is because the incoming 'max_fd'
      argument might not be aligned.
      
      But aligining the argument - while simple - will cause a "infinitely
      big" maxfd (eg NR_OPEN_MAX) to just overflow to zero.  Which most
      definitely isn't what we want either.
      
      The obvious fix was always just to do the alignment last, but I had
      moved it earlier just to make the patch smaller and the code look
      simpler.  Duh.  It certainly made _me_ look simple.
      
      Fixes: 1c24a186 ("fs: fd tables have to be multiples of BITS_PER_LONG")
      Reported-and-tested-by: default avatarJason A. Donenfeld <Jason@zx2c4.com>
      Cc: Fedor Pchelkin <aissur0002@gmail.com>
      Cc: Alexey Khoroshilov <khoroshilov@ispras.ru>
      Cc: Christian Brauner <brauner@kernel.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      d888c83f
    • Linus Torvalds's avatar
      Merge tag 'nfs-for-5.18-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs · 965181d7
      Linus Torvalds authored
      Pull NFS client updates from Trond Myklebust:
       "Highlights include:
      
        Features:
      
         - Switch NFS to use readahead instead of the obsolete readpages.
      
         - Readdir fixes to improve cacheability of large directories when
           there are multiple readers and writers.
      
         - Readdir performance improvements when doing a seekdir() immediately
           after opening the directory (common when re-exporting NFS).
      
         - NFS swap improvements from Neil Brown.
      
         - Loosen up memory allocation to permit direct reclaim and write back
           in cases where there is no danger of deadlocking the writeback code
           or NFS swap.
      
         - Avoid sillyrename when the NFSv4 server claims to support the
           necessary features to recover the unlinked but open file after
           reboot.
      
        Bugfixes:
      
         - Patch from Olga to add a mount option to control NFSv4.1 session
           trunking discovery, and default it to being off.
      
         - Fix a lockup in nfs_do_recoalesce().
      
         - Two fixes for list iterator variables being used when pointing to
           the list head.
      
         - Fix a kernel memory scribble when reading from a non-socket
           transport in /sys/kernel/sunrpc.
      
         - Fix a race where reconnecting to a server could leave the TCP
           socket stuck forever in the connecting state.
      
         - Patch from Neil to fix a shutdown race which can leave the SUNRPC
           transport timer primed after we free the struct xprt itself.
      
         - Patch from Xin Xiong to fix reference count leaks in the NFSv4.2
           copy offload.
      
         - Sunrpc patch from Olga to avoid resending a task on an offlined
           transport.
      
        Cleanups:
      
         - Patches from Dave Wysochanski to clean up the fscache code"
      
      * tag 'nfs-for-5.18-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs: (91 commits)
        NFSv4/pNFS: Fix another issue with a list iterator pointing to the head
        NFS: Don't loop forever in nfs_do_recoalesce()
        SUNRPC: Don't return error values in sysfs read of closed files
        SUNRPC: Do not dereference non-socket transports in sysfs
        NFSv4.1: don't retry BIND_CONN_TO_SESSION on session error
        SUNRPC don't resend a task on an offlined transport
        NFS: replace usage of found with dedicated list iterator variable
        SUNRPC: avoid race between mod_timer() and del_timer_sync()
        pNFS/files: Ensure pNFS allocation modes are consistent with nfsiod
        pNFS/flexfiles: Ensure pNFS allocation modes are consistent with nfsiod
        NFSv4/pnfs: Ensure pNFS allocation modes are consistent with nfsiod
        NFS: Avoid writeback threads getting stuck in mempool_alloc()
        NFS: nfsiod should not block forever in mempool_alloc()
        SUNRPC: Make the rpciod and xprtiod slab allocation modes consistent
        SUNRPC: Fix unx_lookup_cred() allocation
        NFS: Fix memory allocation in rpc_alloc_task()
        NFS: Fix memory allocation in rpc_malloc()
        SUNRPC: Improve accuracy of socket ENOBUFS determination
        SUNRPC: Replace internal use of SOCKWQ_ASYNC_NOSPACE
        SUNRPC: Fix socket waits for write buffer space
        ...
      965181d7
    • Linus Torvalds's avatar
      Merge tag 'jfs-5.18' of https://github.com/kleikamp/linux-shaggy · 1ec48f95
      Linus Torvalds authored
      Pull jfs updates from Dave Kleikamp:
       "A couple bug fixes"
      
      * tag 'jfs-5.18' of https://github.com/kleikamp/linux-shaggy:
        jfs: prevent NULL deref in diFree
        jfs: fix divide error in dbNextAG
      1ec48f95
  2. 29 Mar, 2022 26 commits
    • Linus Torvalds's avatar
      fs: fd tables have to be multiples of BITS_PER_LONG · 1c24a186
      Linus Torvalds authored
      This has always been the rule: fdtables have several bitmaps in them,
      and as a result they have to be sized properly for bitmaps.  We walk
      those bitmaps in chunks of 'unsigned long' in serveral cases, but even
      when we don't, we use the regular kernel bitops that are defined to work
      on arrays of 'unsigned long', not on some byte array.
      
      Now, the distinction between arrays of bytes and 'unsigned long'
      normally only really ends up being noticeable on big-endian systems, but
      Fedor Pchelkin and Alexey Khoroshilov reported that copy_fd_bitmaps()
      could be called with an argument that wasn't even a multiple of
      BITS_PER_BYTE.  And then it fails to do the proper copy even on
      little-endian machines.
      
      The bug wasn't in copy_fd_bitmap(), but in sane_fdtable_size(), which
      didn't actually sanitize the fdtable size sufficiently, and never made
      sure it had the proper BITS_PER_LONG alignment.
      
      That's partly because the alignment historically came not from having to
      explicitly align things, but simply from previous fdtable sizes, and
      from count_open_files(), which counts the file descriptors by walking
      them one 'unsigned long' word at a time and thus naturally ends up doing
      sizing in the proper 'chunks of unsigned long'.
      
      But with the introduction of close_range(), we now have an external
      source of "this is how many files we want to have", and so
      sane_fdtable_size() needs to do a better job.
      
      This also adds that explicit alignment to alloc_fdtable(), although
      there it is mainly just for documentation at a source code level.  The
      arithmetic we do there to pick a reasonable fdtable size already aligns
      the result sufficiently.
      
      In fact,clang notices that the added ALIGN() in that function doesn't
      actually do anything, and does not generate any extra code for it.
      
      It turns out that gcc ends up confusing itself by combining a previous
      constant-sized shift operation with the variable-sized shift operations
      in roundup_pow_of_two().  And probably due to that doesn't notice that
      the ALIGN() is a no-op.  But that's a (tiny) gcc misfeature that doesn't
      matter.  Having the explicit alignment makes sense, and would actually
      matter on a 128-bit architecture if we ever go there.
      
      This also adds big comments above both functions about how fdtable sizes
      have to have that BITS_PER_LONG alignment.
      
      Fixes: 60997c3d ("close_range: add CLOSE_RANGE_UNSHARE")
      Reported-by: default avatarFedor Pchelkin <aissur0002@gmail.com>
      Reported-by: default avatarAlexey Khoroshilov <khoroshilov@ispras.ru>
      Link: https://lore.kernel.org/all/20220326114009.1690-1-aissur0002@gmail.com/Tested-and-acked-by: default avatarChristian Brauner <brauner@kernel.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      1c24a186
    • Linus Torvalds's avatar
      Merge tag 'devprop-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 13776ebb
      Linus Torvalds authored
      Pull device properties code update from Rafael Wysocki:
       "This is based on new i2c material for 5.18-rc1 and simply reorganizes
        the code on top of it so as to group similar functions together (Andy
        Shevchenko)"
      
      * tag 'devprop-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        device property: Don't split fwnode_get_irq*() APIs in the code
      13776ebb
    • Linus Torvalds's avatar
      Merge tag 'pm-5.18-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 1d59c3b6
      Linus Torvalds authored
      Pull more power management updates from Rafael Wysocki:
       "These update ARM cpufreq drivers, the OPP (Operating Performance
        Points) library and the power management documentation.
      
        Specifics:
      
         - Add per core DVFS support for QCom SoC (Bjorn Andersson), convert
           to yaml binding (Manivannan Sadhasivam) and various other fixes to
           the QCom drivers (Luca Weiss).
      
         - Add OPP table for imx7s SoC (Denys Drozdov) and minor fixes (Stefan
           Agner).
      
         - Fix CPPC driver's freq/performance conversions (Pierre Gondois).
      
         - Minor generic cleanups (Yury Norov).
      
         - Introduce opp-microwatt property to the OPP core, bindings, etc
           (Lukasz Luba).
      
         - Convert DT bindings to schema format and various related fixes
           (Yassine Oudjana).
      
         - Expose OPP's OF node in debugfs (Viresh Kumar).
      
         - Add Intel uncore frequency scaling documentation file to its
           MAINTAINERS entry (Srinivas Pandruvada).
      
         - Clean up the AMD P-state driver documentation (Jan Engelhardt)"
      
      * tag 'pm-5.18-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (24 commits)
        Documentation: amd-pstate: grammar and sentence structure updates
        dt-bindings: cpufreq: cpufreq-qcom-hw: Convert to YAML bindings
        dt-bindings: dvfs: Use MediaTek CPUFREQ HW as an example
        Documentation: EM: Describe new registration method using DT
        OPP: Add support of "opp-microwatt" for EM registration
        PM: EM: add macro to set .active_power() callback conditionally
        OPP: Add "opp-microwatt" supporting code
        dt-bindings: opp: Add "opp-microwatt" entry in the OPP
        MAINTAINERS: Add additional file to uncore frequency control
        cpufreq: blocklist Qualcomm sc8280xp and sa8540p in cpufreq-dt-platdev
        cpufreq: qcom-hw: Add support for per-core-dcvs
        dt-bindings: power: avs: qcom,cpr: Convert to DT schema
        arm64: dts: qcom: qcs404: Rename CPU and CPR OPP tables
        arm64: dts: qcom: msm8996: Rename cluster OPP tables
        dt-bindings: opp: Convert qcom-nvmem-cpufreq to DT schema
        dt-bindings: opp: qcom-opp: Convert to DT schema
        arm64: dts: qcom: msm8996-mtp: Add msm8996 compatible
        dt-bindings: arm: qcom: Add msm8996 and apq8096 compatibles
        opp: Expose of-node's name in debugfs
        cpufreq: CPPC: Fix performance/frequency conversion
        ...
      1d59c3b6
    • Stephen Boyd's avatar
      Merge branches 'clk-sifive' and 'clk-visconti' into clk-next · cf683abd
      Stephen Boyd authored
      * clk-sifive:
        clk: sifive: Move all stuff into SoCs header files from C files
        clk: sifive: Add SoCs prefix in each SoCs-dependent data
        riscv: dts: Change the macro name of prci in each device node
        dt-bindings: change the macro name of prci in header files and example
        clk: sifive: duplicate the macro definitions for the time being
      
      * clk-visconti:
        clk: visconti: prevent array overflow in visconti_clk_register_gates()
      cf683abd
    • Stephen Boyd's avatar
      Merge branches 'clk-range', 'clk-uniphier', 'clk-apple' and 'clk-qcom' into clk-next · c64dd8ea
      Stephen Boyd authored
       - Make clk_set_rate_range() re-evaluate the limits each time
       - Introduce various clk_set_rate_range() tests
       - Add clk_drop_range() to drop a previously set range
       - Support for NCO blocks on Apple SoCs
      
      * clk-range:
        clk: Drop the rate range on clk_put()
        clk: test: Test clk_set_rate_range on orphan mux
        clk: Initialize orphan req_rate
        clk: bcm: rpi: Run some clocks at the minimum rate allowed
        clk: bcm: rpi: Set a default minimum rate
        clk: bcm: rpi: Add variant structure
        clk: Add clk_drop_range
        clk: Always set the rate on clk_set_range_rate
        clk: Use clamp instead of open-coding our own
        clk: Always clamp the rounded rate
        clk: Enforce that disjoints limits are invalid
        clk: Introduce Kunit Tests for the framework
        clk: Fix clk_hw_get_clk() when dev is NULL
      
      * clk-uniphier:
        clk: uniphier: Fix fixed-rate initialization
      
      * clk-apple:
        clk: clk-apple-nco: Allow and fix module building
        MAINTAINERS: Add clk-apple-nco under ARM/APPLE MACHINE
        clk: clk-apple-nco: Add driver for Apple NCO
        dt-bindings: clock: Add Apple NCO
      
      * clk-qcom: (61 commits)
        clk: qcom: gcc-msm8994: Fix gpll4 width
        dt-bindings: clock: fix dt_binding_check error for qcom,gcc-other.yaml
        clk: qcom: Add display clock controller driver for SM6125
        dt-bindings: clock: add QCOM SM6125 display clock bindings
        clk: qcom: Fix sorting of SDX_GCC_65 in Makefile and Kconfig
        clk: qcom: gcc: Add emac GDSC support for SM8150
        clk: qcom: gcc: sm8150: Fix some identation issues
        clk: qcom: gcc: Add UFS_CARD and UFS_PHY GDSCs for SM8150
        clk: qcom: gcc: Add PCIe0 and PCIe1 GDSC for SM8150
        clk: qcom: clk-rcg2: Update the frac table for pixel clock
        clk: qcom: clk-rcg2: Update logic to calculate D value for RCG
        clk: qcom: smd: Add missing MSM8998 RPM clocks
        clk: qcom: smd: Add missing RPM clocks for msm8992/4
        dt-bindings: clock: qcom: rpmcc: Add RPM Modem SubSystem (MSS) clocks
        clk: qcom: gcc-ipq806x: add CryptoEngine resets
        dt-bindings: reset: add ipq8064 ce5 resets
        clk: qcom: gcc-ipq806x: add CryptoEngine clocks
        dt-bindings: clock: add ipq8064 ce5 clk define
        clk: qcom: gcc-ipq806x: add additional freq for sdc table
        clk: qcom: clk-rcg: add clk_rcg_floor_ops ops
        ...
      c64dd8ea
    • Stephen Boyd's avatar
      Merge branches 'clk-starfive', 'clk-ti', 'clk-terminate' and 'clk-cleanup' into clk-next · 4222744d
      Stephen Boyd authored
       - Audio clks on StarFive JH7100 RISC-V SoC
       - Terminate arrays with sentinels and make that clearer
       - Cleanup SPDX tags
       - Fix typos in comments
      
      * clk-starfive:
        clk: starfive: Add JH7100 audio clock driver
        clk: starfive: jh7100: Support more clock types
        clk: starfive: jh7100: Make hw clock implementation reusable
        dt-bindings: clock: Add starfive,jh7100-audclk bindings
        dt-bindings: clock: Add JH7100 audio clock definitions
        clk: starfive: jh7100: Handle audio_div clock properly
        clk: starfive: jh7100: Don't round divisor up twice
      
      * clk-ti:
        clk: ti: Drop legacy compatibility clocks for dra7
        clk: ti: Drop legacy compatibility clocks for am4
        clk: ti: Drop legacy compatibility clocks for am3
        clk: ti: Update component clocks to use ti_dt_clk_name()
        clk: ti: Update pll and clockdomain clocks to use ti_dt_clk_name()
        clk: ti: Add ti_dt_clk_name() helper to use clock-output-names
        clk: ti: Use clock-output-names for clkctrl
        clk: ti: Add ti_find_clock_provider() to use clock-output-names
        clk: ti: Optionally parse IO address from parent clock node
        clk: ti: Preserve node in ti_dt_clocks_register()
        clk: ti: Constify clkctrl_name
      
      * clk-terminate:
        clk: actions: Make sentinel elements more obvious
        clk: clps711x: Terminate clk_div_table with sentinel element
        clk: hisilicon: Terminate clk_div_table with sentinel element
        clk: loongson1: Terminate clk_div_table with sentinel element
        clk: actions: Terminate clk_div_table with sentinel element
      
      * clk-cleanup:
        clk: zynq: Update the parameters to zynq_clk_register_periph_clk
        clk: zynq: trivial warning fix
        clk: qcom: sm6125-gcc: fix typos in comments
        clk: ti: clkctrl: fix typos in comments
        clk: COMMON_CLK_LAN966X should depend on SOC_LAN966
        clk: Use of_device_get_match_data()
        clk: bcm2835: Remove unused variable
        clk: tegra: tegra124-emc: Fix missing put_device() call in emc_ensure_emc_driver
        clk: cleanup comments
        clk: socfpga: cleanup spdx tags
      4222744d
    • Stephen Boyd's avatar
      Merge branches 'clk-mvebu', 'clk-const', 'clk-imx' and 'clk-rockchip' into clk-next · 9babf952
      Stephen Boyd authored
       - Mark mux table as const in clk-mux
       - Make the all_lists array const
      
      * clk-mvebu:
        clk: mvebu: use time_is_before_eq_jiffies() instead of open coding it
      
      * clk-const:
        clk: Mark clk_core_evict_parent_cache_subtree() 'target' const
        clk: Mark 'all_lists' as const
        clk: pistachio: Declare mux table as const u32[]
        clk: qcom: Declare mux table as const u32[]
        clk: mmp: Declare mux tables as const u32[]
        clk: hisilicon: Remove unnecessary cast of mux table to u32 *
        clk: mux: Declare u32 *table parameter as const
        clk: nxp: Declare mux table parameter as const u32 *
        clk: nxp: Remove unused variable
      
      * clk-imx: (28 commits)
        dt-bindings: clock: drop useless consumer example
        clk: imx: Select MXC_CLK for i.MX93 clock driver
        clk: imx: remove redundant re-assignment of pll->base
        MAINTAINERS: clk: imx: add git tree and dt-bindings files
        clk: imx: pll14xx: Support dynamic rates
        clk: imx: pll14xx: Add pr_fmt
        clk: imx: pll14xx: explicitly return lowest rate
        clk: imx: pll14xx: name variables after usage
        clk: imx: pll14xx: consolidate rate calculation
        clk: imx: pll14xx: Use FIELD_GET/FIELD_PREP
        clk: imx: pll14xx: Drop wrong shifting
        clk: imx: pll14xx: Use register defines consistently
        clk: imx8mp: remove SYS PLL 1/2 clock gates
        clk: imx8mn: remove SYS PLL 1/2 clock gates
        clk: imx8mm: remove SYS PLL 1/2 clock gates
        clk: imx: add i.MX93 clk
        clk: imx: support fracn gppll
        clk: imx: add i.MX93 composite clk
        dt-bindings: clock: add i.MX93 clock definition
        dt-bindings: clock: Add imx93 clock support
        ...
      
      * clk-rockchip:
        clk: rockchip: re-add rational best approximation algorithm to the fractional divider
        clk/rockchip: Use of_device_get_match_data()
        clk: rockchip: Add CLK_SET_RATE_PARENT to the HDMI reference clock on rk3568
        clk: rockchip: drop CLK_SET_RATE_PARENT from dclk_vop* on rk3568
        clk: rockchip: Add more PLL rates for rk3568
      9babf952
    • Stephen Boyd's avatar
      Merge branches 'clk-xilinx', 'clk-kunit', 'clk-cs2000' and 'clk-renesas' into clk-next · f9fca892
      Stephen Boyd authored
       - Kunit tests for clk-gate implementation
       - Convert Cirrus Logic CS2000P driver to regmap, yamlify DT binding and add
         support for dynamic mode
      
      * clk-xilinx:
        clk: zynqmp: replace warn_once with pr_debug for failed clock ops
      
      * clk-kunit:
        clk: gate: Add some kunit test suites
      
      * clk-cs2000:
        clk: cs2000-cp: convert driver to regmap
        clk: cs2000-cp: freeze config during register fiddling
        clk: cs2000-cp: make clock skip setting configurable
        clk: cs2000-cp: add support for dynamic mode
        clk: cs2000-cp: Make aux output function controllable
        dt-bindings: clock: cs2000-cp: document cirrus,dynamic-mode
        dt-bindings: clock: cs2000-cp: document cirrus,clock-skip flag
        dt-bindings: clock: cs2000-cp: document aux-output-source
        dt-bindings: clock: convert cs2000-cp bindings to yaml
      
      * clk-renesas:
        dt-bindings: clock: renesas: Make example 'clocks' parsable
        clk: rs9: Add Renesas 9-series PCIe clock generator driver
        clk: fixed-factor: Introduce devm_clk_hw_register_fixed_factor_index()
        dt-bindings: clk: rs9: Add Renesas 9-series I2C PCIe clock generator
        clk: renesas: r8a779f0: Add PFC clock
        clk: renesas: r8a779f0: Add I2C clocks
        clk: renesas: r8a779f0: Add WDT clock
        clk: renesas: r8a779f0: Fix RSW2 clock divider
        clk: renesas: rzg2l-cpg: Add support for RZ/V2L SoC
        dt-bindings: clock: renesas: Document RZ/V2L SoC
        dt-bindings: clock: Add R9A07G054 CPG Clock and Reset Definitions
        clk: renesas: r8a779a0: Add CANFD module clock
        clk: renesas: r9a07g044: Update multiplier and divider values for PLL2/3
        clk: renesas: r8a7799[05]: Add MLP clocks
        clk: renesas: r8a779f0: Add SYS-DMAC clocks
      f9fca892
    • Stephen Boyd's avatar
      Merge branches 'clk-microchip', 'clk-si', 'clk-mtk', 'clk-at91' and 'clk-st' into clk-next · 407c04d6
      Stephen Boyd authored
       - Clock configuration on Microchip PolarFire SoCs
       - Free allocations on probe error in Mediatek clk driver
       - Modernize Mediatek clk driver by consolidating code
      
      * clk-microchip:
        clk: microchip: Add driver for Microchip PolarFire SoC
        dt-bindings: clk: microchip: Add Microchip PolarFire host binding
      
      * clk-si:
        clk-si5341: replace snprintf in show functions with sysfs_emit
        clk: si5341: fix reported clk_rate when output divider is 2
      
      * clk-mtk: (32 commits)
        clk: mediatek: Warn if clk IDs are duplicated
        clk: mediatek: mt8195: Implement remove functions
        clk: mediatek: mt8195: Implement error handling in probe functions
        clk: mediatek: mt8195: Hook up mtk_clk_simple_remove()
        clk: mediatek: Unregister clks in mtk_clk_simple_probe() error path
        clk: mediatek: mtk: Implement error handling in register APIs
        clk: mediatek: pll: Implement error handling in register API
        clk: mediatek: mux: Implement error handling in register API
        clk: mediatek: mux: Reverse check for existing clk to reduce nesting level
        clk: mediatek: gate: Implement error handling in register API
        clk: mediatek: cpumux: Implement error handling in register API
        clk: mediatek: mtk: Clean up included headers
        clk: mediatek: Add mtk_clk_simple_remove()
        clk: mediatek: Implement mtk_clk_unregister_composites() API
        clk: mediatek: Implement mtk_clk_unregister_divider_clks() API
        clk: mediatek: Implement mtk_clk_unregister_factors() API
        clk: mediatek: Implement mtk_clk_unregister_fixed_clks() API
        clk: mediatek: pll: Clean up included headers
        clk: mediatek: pll: Implement unregister API
        clk: mediatek: pll: Split definitions into separate header file
        ...
      
      * clk-at91:
        clk: at91: clk-master: remove dead code
        clk: at91: sama7g5: fix parents of PDMCs' GCLK
        clk: at91: sama7g5: Allow MCK1 to be exported and referenced in DT
        clk: at91: allow setting PMC_AUDIOPINCK clock parents via DT
      
      * clk-st:
        clk: stm32mp1: Add parent_data to ETHRX clock
        clk: stm32mp1: Split ETHCK_K into separate MUX and GATE clock
      407c04d6
    • Shubhrajyoti Datta's avatar
      clk: zynq: Update the parameters to zynq_clk_register_periph_clk · a6aa462c
      Shubhrajyoti Datta authored
      In case there are only one gate or the two_gate is 0 the clk1 clock
      passed is not used. We are passing 0 which is arm_pll.
      Pass a invalid clock instead.
      Signed-off-by: default avatarShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
      Link: https://lore.kernel.org/r/20220222130903.17235-3-shubhrajyoti.datta@xilinx.comSigned-off-by: default avatarStephen Boyd <sboyd@kernel.org>
      a6aa462c
    • Shubhrajyoti Datta's avatar
      clk: zynq: trivial warning fix · d583804c
      Shubhrajyoti Datta authored
      Fix the below warning
      
      WARNING: Missing a blank line after declarations
      +               int enable = !!(fclk_enable & BIT(i - fclk0));
      +               zynq_clk_register_fclk(i, clk_output_name[i],
      Signed-off-by: default avatarShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
      Link: https://lore.kernel.org/r/20220222130903.17235-2-shubhrajyoti.datta@xilinx.comSigned-off-by: default avatarStephen Boyd <sboyd@kernel.org>
      d583804c
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-docs' · 3b65dd5b
      Rafael J. Wysocki authored
      Merge additional power management documentation udates for 5.18-rc1:
      
       - Add Intel uncore frequency scaling documentation file to its
         MAINTAINERS entry (Srinivas Pandruvada).
      
       - Clean up the AMD P-state driver documentation (Jan Engelhardt).
      
      * pm-docs:
        Documentation: amd-pstate: grammar and sentence structure updates
        MAINTAINERS: Add additional file to uncore frequency control
      3b65dd5b
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-opp' · 79bc8bfa
      Rafael J. Wysocki authored
      Merge OPP (Operating Performance Points) changes for 5.18-rc1.
      
      * pm-opp:
        Documentation: EM: Describe new registration method using DT
        OPP: Add support of "opp-microwatt" for EM registration
        PM: EM: add macro to set .active_power() callback conditionally
        OPP: Add "opp-microwatt" supporting code
        dt-bindings: opp: Add "opp-microwatt" entry in the OPP
        dt-bindings: power: avs: qcom,cpr: Convert to DT schema
        arm64: dts: qcom: qcs404: Rename CPU and CPR OPP tables
        arm64: dts: qcom: msm8996: Rename cluster OPP tables
        dt-bindings: opp: Convert qcom-nvmem-cpufreq to DT schema
        dt-bindings: opp: qcom-opp: Convert to DT schema
        arm64: dts: qcom: msm8996-mtp: Add msm8996 compatible
        dt-bindings: arm: qcom: Add msm8996 and apq8096 compatibles
        opp: Expose of-node's name in debugfs
      79bc8bfa
    • Linus Torvalds's avatar
      Merge tag 'devicetree-fixes-for-5.18-1' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux · 5efabdad
      Linus Torvalds authored
      Pull devicetree fixes from Rob Herring:
      
       - Clean-up missing '/schemas' in $ref paths
      
       - Fix MediaTek Vcodec decoder example 'dma-ranges' errors
      
       - Expand available values of PBL for snps,dwmac to fix warnings in
         mediatek-dwmac.yaml example
      
       - Fix warnings in MediaTek display bindings
      
      * tag 'devicetree-fixes-for-5.18-1' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
        dt-bindings: Fix missing '/schemas' in $ref paths
        dt-bindings: media: mediatek,vcodec: Fix addressing cell sizes
        dt-bindings: net: snps,dwmac: modify available values of PBL
        dt-bindings: display: mediatek: Fix examples on new bindings
        dt-bindings: display: mediatek, ovl: Fix 'iommu' required property typo
        dt-bindings: display: mediatek, mutex: Fix mediatek, gce-events type
        Revert "dt-bindings: display: mediatek: add ethdr definition for mt8195"
      5efabdad
    • Linus Torvalds's avatar
      Merge tag 'dma-mapping-5.18' of git://git.infradead.org/users/hch/dma-mapping · 9ae2a143
      Linus Torvalds authored
      Pull dma-mapping updates from Christoph Hellwig:
      
       - do not zero buffer in set_memory_decrypted (Kirill A. Shutemov)
      
       - fix return value of dma-debug __setup handlers (Randy Dunlap)
      
       - swiotlb cleanups (Robin Murphy)
      
       - remove most remaining users of the pci-dma-compat.h API
         (Christophe JAILLET)
      
       - share the ABI header for the DMA map_benchmark with userspace
         (Tian Tao)
      
       - update the maintainer for DMA MAPPING BENCHMARK (Xiang Chen)
      
       - remove CONFIG_DMA_REMAP (me)
      
      * tag 'dma-mapping-5.18' of git://git.infradead.org/users/hch/dma-mapping:
        dma-mapping: benchmark: extract a common header file for map_benchmark definition
        dma-debug: fix return value of __setup handlers
        dma-mapping: remove CONFIG_DMA_REMAP
        media: v4l2-pci-skeleton: Remove usage of the deprecated "pci-dma-compat.h" API
        rapidio/tsi721: Remove usage of the deprecated "pci-dma-compat.h" API
        sparc: Remove usage of the deprecated "pci-dma-compat.h" API
        agp/intel: Remove usage of the deprecated "pci-dma-compat.h" API
        alpha: Remove usage of the deprecated "pci-dma-compat.h" API
        MAINTAINERS: update maintainer list of DMA MAPPING BENCHMARK
        swiotlb: simplify array allocation
        swiotlb: tidy up includes
        swiotlb: simplify debugfs setup
        swiotlb: do not zero buffer in set_memory_decrypted()
      9ae2a143
    • Geert Uytterhoeven's avatar
      phy: PHY_FSL_LYNX_28G should depend on ARCH_LAYERSCAPE · 37fcacb5
      Geert Uytterhoeven authored
      Freescale Layerscape Lynx 28G SerDes PHYs are only present on
      Freescale/NXP Layerscape SoCs.
      
      Move PHY_FSL_LYNX_28G outside the block for ARCH_MXC, as the latter
      is meant for i.MX8 SoCs, which is a different family than Layerscape.
      Add a dependency on ARCH_LAYERSCAPE, to prevent asking the user about
      this driver when configuring a kernel without Layerscape SoC support.
      
      Fixes: 02e2af20 ("Merge tag 'char-misc-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc")
      Fixes: 8f73b37c ("phy: add support for the Layerscape SerDes 28G")
      Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      37fcacb5
    • Rob Herring's avatar
      dt-bindings: Fix missing '/schemas' in $ref paths · 22a41e9a
      Rob Herring authored
      Absolute paths in $ref should always begin with '/schemas'. The tools
      mostly work with it omitted, but for correctness the path should be
      everything except the hostname as that is taken from the schema's $id
      value. This scheme is defined in the json-schema spec.
      
      Cc: Hector Martin <marcan@marcan.st>
      Cc: Sven Peter <sven@svenpeter.dev>
      Cc: Andrew Lunn <andrew@lunn.ch>
      Cc: Vivien Didelot <vivien.didelot@gmail.com>
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      Cc: Vladimir Oltean <olteanv@gmail.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jakub Kicinski <kuba@kernel.org>
      Cc: Paolo Abeni <pabeni@redhat.com>
      Cc: Mark Brown <broonie@kernel.org>
      Cc: Chunfeng Yun <chunfeng.yun@mediatek.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Mukesh Savaliya <msavaliy@codeaurora.org>
      Cc: Akash Asthana <akashast@codeaurora.org>
      Cc: Bayi Cheng <bayi.cheng@mediatek.com>
      Cc: Chuanhong Guo <gch981213@gmail.com>
      Cc: Min Guo <min.guo@mediatek.com>
      Cc: netdev@vger.kernel.org
      Cc: linux-spi@vger.kernel.org
      Cc: linux-usb@vger.kernel.org
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      Acked-by: default avatarJakub Kicinski <kuba@kernel.org>
      Acked-by: default avatarMark Brown <broonie@debian.org>
      Link: https://lore.kernel.org/r/20220325215652.525383-1-robh@kernel.org
      22a41e9a
    • Rob Herring's avatar
      dt-bindings: media: mediatek,vcodec: Fix addressing cell sizes · a50e431b
      Rob Herring authored
      'dma-ranges' in the example is written for cell sizes of 2 cells, but
      the schema and example specify sizes of 1 cell. As the h/w has a bus
      address of >32-bits, cell sizes of 2 is correct. Update the schema's
      '#address-cells' and '#size-cells' to be 2 and adjust the example
      throughout.
      
      There's no error currently because dtc only checks 'dma-ranges' is a
      correct multiple number of cells (3) and the schema checking is based on
      bracketing of entries.
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      Link: https://lore.kernel.org/r/20220301233501.2110047-1-robh@kernel.org
      a50e431b
    • Biao Huang's avatar
      dt-bindings: net: snps,dwmac: modify available values of PBL · 09a2fb41
      Biao Huang authored
      PBL can be any of the following values: 1, 2, 4, 8, 16 or 32
      according to the datasheet, so modify available values of PBL in
      snps,dwmac.yaml.
      Signed-off-by: default avatarBiao Huang <biao.huang@mediatek.com>
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      Link: https://lore.kernel.org/r/20220324012112.7016-2-biao.huang@mediatek.com
      09a2fb41
    • AngeloGioacchino Del Regno's avatar
      dt-bindings: display: mediatek: Fix examples on new bindings · bff4e302
      AngeloGioacchino Del Regno authored
      To avoid failure of dt_binding_check perform a slight refactoring
      of the examples: the main block is kept, but that required fixing
      the address and size cells, plus the inclusion of missing dt-bindings
      headers, required to parse some of the values assigned to various
      properties.
      
      Fixes: 4ed545e7 ("dt-bindings: display: mediatek: disp: split each block to individual yaml")
      Signed-off-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
      Signed-off-by: default avatarjason-jh.lin <jason-jh.lin@mediatek.com>
      Reviewed-by: default avatarRob Herring <robh@kernel.org>
      Acked-by: default avatarChun-Kuang Hu <chunkuang.hu@kernel.org>
      Tested-by: default avatarjason-jh.lin <jason-jh.lin@medaitek.com>
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      Link: https://lore.kernel.org/r/20220309134702.9942-5-jason-jh.lin@mediatek.com
      bff4e302
    • AngeloGioacchino Del Regno's avatar
      dt-bindings: display: mediatek, ovl: Fix 'iommu' required property typo · 10f17b20
      AngeloGioacchino Del Regno authored
      The property is called 'iommus' and not 'iommu'. Fix this typo.
      
      Fixes: 4ed545e7 ("dt-bindings: display: mediatek: disp: split each block to individual yaml")
      Signed-off-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
      Signed-off-by: default avatarjason-jh.lin <jason-jh.lin@mediatek.com>
      Acked-by: default avatarRob Herring <robh@kernel.org>
      Acked-by: default avatarChun-Kuang Hu <chunkuang.hu@kernel.org>
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      Link: https://lore.kernel.org/r/20220309134702.9942-4-jason-jh.lin@mediatek.com
      10f17b20
    • AngeloGioacchino Del Regno's avatar
      dt-bindings: display: mediatek, mutex: Fix mediatek, gce-events type · ab487888
      AngeloGioacchino Del Regno authored
      The mediatek,gce-events property needs as value an array of uint32
      corresponding to the CMDQ events to listen to, and not any phandle.
      
      Fixes: 4ed545e7 ("dt-bindings: display: mediatek: disp: split each block to individual yaml")
      Signed-off-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
      Signed-off-by: default avatarjason-jh.lin <jason-jh.lin@mediatek.com>
      Acked-by: default avatarRob Herring <robh@kernel.org>
      Acked-by: default avatarChun-Kuang Hu <chunkuang.hu@kernel.org>
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      Link: https://lore.kernel.org/r/20220309134702.9942-3-jason-jh.lin@mediatek.com
      ab487888
    • jason-jh.lin's avatar
      Revert "dt-bindings: display: mediatek: add ethdr definition for mt8195" · dcb09a08
      jason-jh.lin authored
      This reverts commit e7dcfe64.
      
      Because examples property of mediatek,ethdr.yaml should base on [1][2].
      Reverting it until [1][2] are applied.
      
      [1] dt-bindings: mediatek: mt8195: Add binding for MM IOMMU
      https://patchwork.kernel.org/project/linux-mediatek/patch/20220217113453.13658-2-yong.wu@mediatek.com/
      [2] dt-bindings: reset: mt8195: add vdosys1 reset control bit
      https://patchwork.kernel.org/project/linux-mediatek/patch/20220222100741.30138-5-nancy.lin@mediatek.com/Signed-off-by: default avatarjason-jh.lin <jason-jh.lin@mediatek.com>
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      Link: https://lore.kernel.org/r/20220309134702.9942-2-jason-jh.lin@mediatek.com
      dcb09a08
    • Linus Torvalds's avatar
      Merge tag 'ptrace-cleanups-for-v5.18' of... · 1930a6e7
      Linus Torvalds authored
      Merge tag 'ptrace-cleanups-for-v5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace
      
      Pull ptrace cleanups from Eric Biederman:
       "This set of changes removes tracehook.h, moves modification of all of
        the ptrace fields inside of siglock to remove races, adds a missing
        permission check to ptrace.c
      
        The removal of tracehook.h is quite significant as it has been a major
        source of confusion in recent years. Much of that confusion was around
        task_work and TIF_NOTIFY_SIGNAL (which I have now decoupled making the
        semantics clearer).
      
        For people who don't know tracehook.h is a vestiage of an attempt to
        implement uprobes like functionality that was never fully merged, and
        was later superseeded by uprobes when uprobes was merged. For many
        years now we have been removing what tracehook functionaly a little
        bit at a time. To the point where anything left in tracehook.h was
        some weird strange thing that was difficult to understand"
      
      * tag 'ptrace-cleanups-for-v5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace:
        ptrace: Remove duplicated include in ptrace.c
        ptrace: Check PTRACE_O_SUSPEND_SECCOMP permission on PTRACE_SEIZE
        ptrace: Return the signal to continue with from ptrace_stop
        ptrace: Move setting/clearing ptrace_message into ptrace_stop
        tracehook: Remove tracehook.h
        resume_user_mode: Move to resume_user_mode.h
        resume_user_mode: Remove #ifdef TIF_NOTIFY_RESUME in set_notify_resume
        signal: Move set_notify_signal and clear_notify_signal into sched/signal.h
        task_work: Decouple TIF_NOTIFY_SIGNAL and task_work
        task_work: Call tracehook_notify_signal from get_signal on all architectures
        task_work: Introduce task_work_pending
        task_work: Remove unnecessary include from posix_timers.h
        ptrace: Remove tracehook_signal_handler
        ptrace: Remove arch_syscall_{enter,exit}_tracehook
        ptrace: Create ptrace_report_syscall_{entry,exit} in ptrace.h
        ptrace/arm: Rename tracehook_report_syscall report_syscall
        ptrace: Move ptrace_report_syscall into ptrace.h
      1930a6e7
    • Linus Torvalds's avatar
      Merge tag 'ucount-rlimit-for-v5.18' of... · 0a815d01
      Linus Torvalds authored
      Merge tag 'ucount-rlimit-for-v5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace
      
      Pull shm ucounts fix from Eric Biederman:
       "The introduction of a new failure mode when the code was converted to
        ucounts resulted in user_shm_lock misbehaving.
      
        The change simplifies the code to make the code easier to follow and
        removes the known misbehaviors"
      
      * tag 'ucount-rlimit-for-v5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace:
        mm/mlock: fix two bugs in user_shm_lock()
      0a815d01
    • Linus Torvalds's avatar
      Merge tag 'net-5.18-rc0' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · d717e4ca
      Linus Torvalds authored
      Pull networking fixes from Jakub Kicinski:
       "Including fixes from netfilter.
      
        Current release - regressions:
      
         - llc: only change llc->dev when bind() succeeds, fix null-deref
      
        Current release - new code bugs:
      
         - smc: fix a memory leak in smc_sysctl_net_exit()
      
         - dsa: realtek: make interface drivers depend on OF
      
        Previous releases - regressions:
      
         - sched: act_ct: fix ref leak when switching zones
      
        Previous releases - always broken:
      
         - netfilter: egress: report interface as outgoing
      
         - vsock/virtio: enable VQs early on probe and finish the setup before
           using them
      
        Misc:
      
         - memcg: enable accounting for nft objects"
      
      * tag 'net-5.18-rc0' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (39 commits)
        Revert "selftests: net: Add tls config dependency for tls selftests"
        net/smc: Send out the remaining data in sndbuf before close
        net: move net_unlink_todo() out of the header
        net: dsa: bcm_sf2_cfp: fix an incorrect NULL check on list iterator
        net: bnxt_ptp: fix compilation error
        selftests: net: Add tls config dependency for tls selftests
        memcg: enable accounting for nft objects
        net/sched: act_ct: fix ref leak when switching zones
        net/smc: fix a memory leak in smc_sysctl_net_exit()
        selftests: tls: skip cmsg_to_pipe tests with TLS=n
        octeontx2-af: initialize action variable
        net: sparx5: switchdev: fix possible NULL pointer dereference
        net/x25: Fix null-ptr-deref caused by x25_disconnect
        qlcnic: dcb: default to returning -EOPNOTSUPP
        net: sparx5: depends on PTP_1588_CLOCK_OPTIONAL
        net: hns3: fix phy can not link up when autoneg off and reset
        net: hns3: add NULL pointer check for hns3_set/get_ringparam()
        net: hns3: add netdev reset check for hns3_set_tunable()
        net: hns3: clean residual vf config after disable sriov
        net: hns3: add max order judgement for tx spare buffer
        ...
      d717e4ca
  3. 28 Mar, 2022 3 commits