1. 07 2月, 2023 8 次提交
  2. 06 2月, 2023 12 次提交
  3. 05 2月, 2023 6 次提交
    • L
      Merge tag 'powerpc-6.2-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · 837c07cf
      Linus Torvalds 提交于
      Pull powerpc fixes from Michael Ellerman:
       "It's a bit of a big batch for rc6, but just because I didn't send any
        fixes the last week or two while I was on vacation, next week should
        be quieter:
      
         - Fix a few objtool warnings since we recently enabled objtool.
      
         - Fix a deadlock with the hash MMU vs perf record.
      
         - Fix perf profiling of asynchronous interrupt handlers.
      
         - Revert the IMC PMU nest_init_lock to being a mutex.
      
         - Two commits fixing problems with the kexec_file FDT size
           estimation.
      
         - Two commits fixing problems with strict RWX vs kernels running at
           non-zero.
      
         - Reconnect tlb_flush() to hash__tlb_flush()
      
        Thanks to Kajol Jain, Nicholas Piggin, Sachin Sant Sathvika Vasireddy,
        and Sourabh Jain"
      
      * tag 'powerpc-6.2-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/64s: Reconnect tlb_flush() to hash__tlb_flush()
        powerpc/kexec_file: Count hot-pluggable memory in FDT estimate
        powerpc/64s/radix: Fix RWX mapping with relocated kernel
        powerpc/64s/radix: Fix crash with unaligned relocated kernel
        powerpc/kexec_file: Fix division by zero in extra size estimation
        powerpc/imc-pmu: Revert nest_init_lock to being a mutex
        powerpc/64: Fix perf profiling asynchronous interrupt handlers
        powerpc/64s: Fix local irq disable when PMIs are disabled
        powerpc/kvm: Fix unannotated intra-function call warning
        powerpc/85xx: Fix unannotated intra-function call warning
      837c07cf
    • L
      Merge tag 'rtc-6.2-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux · 95078069
      Linus Torvalds 提交于
      Pull RTC fixes from Alexandre Belloni:
       "Here are a few fixes for 6.2. The EFI one is the most important as it
        allows some RTCs to actually work. The other two are warnings that are
        worth fixing.
      
         - efi: make WAKEUP services optional
      
         - sunplus: fix format string warning"
      
      * tag 'rtc-6.2-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux:
        rtc: sunplus: fix format string for printing resource
        dt-bindings: rtc: qcom-pm8xxx: allow 'wakeup-source' property
        rtc: efi: Enable SET/GET WAKEUP services as optional
      95078069
    • L
      Merge tag 'kbuild-fixes-v6.2-4' of... · db27c222
      Linus Torvalds 提交于
      Merge tag 'kbuild-fixes-v6.2-4' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
      
      Pull Kbuild fixes from Masahiro Yamada:
      
       - Fix two bugs (for building and for signing) when MODULE_SIG_KEY
         contains a PKCS#11 URI
      
      * tag 'kbuild-fixes-v6.2-4' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
        kbuild: modinst: Fix build error when CONFIG_MODULE_SIG_KEY is a PKCS#11 URI
        certs: Fix build error when PKCS#11 URI contains semicolon
      db27c222
    • L
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · c00f4ddd
      Linus Torvalds 提交于
      Pull kvm fixes from Paolo Bonzini:
       "ARM64:
      
         - Yet another fix for non-CPU accesses to the memory backing the
           VGICv3 subsystem
      
         - A set of fixes for the setlftest checking for the S1PTW behaviour
           after the fix that went in ealier in the cycle"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
        KVM: selftests: aarch64: Test read-only PT memory regions
        KVM: selftests: aarch64: Fix check of dirty log PT write
        KVM: selftests: aarch64: Do not default to dirty PTE pages on all S1PTWs
        KVM: selftests: aarch64: Relax userfaultfd read vs. write checks
        KVM: arm64: Allow no running vcpu on saving vgic3 pending table
        KVM: arm64: Allow no running vcpu on restoring vgic3 LPI pending status
        KVM: arm64: Add helper vgic_write_guest_lock()
      c00f4ddd
    • L
      Merge tag 'parisc-for-6.2-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux · 2ab2ba49
      Linus Torvalds 提交于
      Pull parisc architecture fixes from Helge Deller:
      
       - Fix PTRACE_GETREGS/PTRACE_SETREGS for 32-bit userspace on a 64-bit
         kernel
      
       - pdc_iodc_print() dropped chars for newline in strings
      
       - Drop constants in favour of PRIV_USER
      
       - use safer strscpy() function in pdc_stable driver
      
      * tag 'parisc-for-6.2-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
        parisc: Wire up PTRACE_GETREGS/PTRACE_SETREGS for compat case
        parisc: Replace hardcoded value with PRIV_USER constant in ptrace.c
        parisc: Fix return code of pdc_iodc_print()
        parisc: pdc_stable: use strscpy() to instead of strncpy()
      2ab2ba49
    • L
      Merge tag 'for-linus' of https://github.com/openrisc/linux · 583472ef
      Linus Torvalds 提交于
      Pull OpenRISC mailing list update from Stafford Horne:
       "The old mailing list for OpenRISC died due to some infrastructure
        issues and the people in charge decided not to keep it running. We
        have migrated this and the users over to kernel.org infrastructure.
      
        Sending this out now to avoid kernel developers getting lots of
        bounced mails for using the old list"
      
      * tag 'for-linus' of https://github.com/openrisc/linux:
        MAINTAINERS: Update OpenRISC mailing list
      583472ef
  4. 04 2月, 2023 8 次提交
    • P
      Merge tag 'kvmarm-fixes-6.2-3' of... · 25b72cf7
      Paolo Bonzini 提交于
      Merge tag 'kvmarm-fixes-6.2-3' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD
      
      KVM/arm64 fixes for 6.2, take #3
      
      - Yet another fix for non-CPU accesses to the memory backing
        the VGICv3 subsystem
      
      - A set of fixes for the setlftest checking for the S1PTW
        behaviour after the fix that went in ealier in the cycle
      25b72cf7
    • S
      fbcon: Check font dimension limits · 2b09d5d3
      Samuel Thibault 提交于
      blit_x and blit_y are u32, so fbcon currently cannot support fonts
      larger than 32x32.
      
      The 32x32 case also needs shifting an unsigned int, to properly set bit
      31, otherwise we get "UBSAN: shift-out-of-bounds in fbcon_set_font",
      as reported on:
      
      http://lore.kernel.org/all/IA1PR07MB98308653E259A6F2CE94A4AFABCE9@IA1PR07MB9830.namprd07.prod.outlook.com
      Kernel Branch: 6.2.0-rc5-next-20230124
      Kernel config: https://drive.google.com/file/d/1F-LszDAizEEH0ZX0HcSR06v5q8FPl2Uv/view?usp=sharing
      Reproducer: https://drive.google.com/file/d/1mP1jcLBY7vWCNM60OMf-ogw-urQRjNrm/view?usp=sharingReported-by: NSanan Hasanov <sanan.hasanov@Knights.ucf.edu>
      Signed-off-by: NSamuel Thibault <samuel.thibault@ens-lyon.org>
      Fixes: 2d2699d9 ("fbcon: font setting should check limitation of driver")
      Cc: stable@vger.kernel.org
      Tested-by: NMiko Larsson <mikoxyzzz@gmail.com>
      Reviewed-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Signed-off-by: NHelge Deller <deller@gmx.de>
      2b09d5d3
    • L
      Merge tag 'block-6.2-2023-02-03' of git://git.kernel.dk/linux · 0136d86b
      Linus Torvalds 提交于
      Pull block fixes from Jens Axboe:
       "A bit bigger than I'd like at this point, but mostly a bunch of little
        fixes. In detail:
      
         - NVMe pull request via Christoph:
             - Fix a missing queue put in nvmet_fc_ls_create_association
               (Amit Engel)
             - Clear queue pointers on tag_set initialization failure
               (Maurizio Lombardi)
             - Use workqueue dedicated to authentication (Shin'ichiro
               Kawasaki)
      
         - Fix for an overflow in ublk (Liu)
      
         - Fix for leaking a queue reference in block cgroups (Ming)
      
         - Fix for a use-after-free in BFQ (Yu)"
      
      * tag 'block-6.2-2023-02-03' of git://git.kernel.dk/linux:
        blk-cgroup: don't update io stat for root cgroup
        nvme-auth: use workqueue dedicated to authentication
        nvme: clear the request_queue pointers on failure in nvme_alloc_io_tag_set
        nvme: clear the request_queue pointers on failure in nvme_alloc_admin_tag_set
        nvme-fc: fix a missing queue put in nvmet_fc_ls_create_association
        block: Fix the blk_mq_destroy_queue() documentation
        block: ublk: extending queue_size to fix overflow
        block, bfq: fix uaf for bfqq in bic_set_bfqq()
      0136d86b
    • L
      Merge tag 'ceph-for-6.2-rc7' of https://github.com/ceph/ceph-client · 7b753a90
      Linus Torvalds 提交于
      Pull ceph fix from Ilya Dryomov:
       "A safeguard to prevent the kernel client from further damaging the
        filesystem after running into a case of an invalid snap trace.
      
        The root cause of this metadata corruption is still being investigated
        but it appears to be stemming from the MDS. As such, this is the best
        we can do for now"
      
      * tag 'ceph-for-6.2-rc7' of https://github.com/ceph/ceph-client:
        ceph: blocklist the kclient when receiving corrupted snap trace
        ceph: move mount state enum to super.h
      7b753a90
    • L
      Merge tag 'efi-fixes-for-v6.2-3' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi · a0880c33
      Linus Torvalds 提交于
      Pull EFI fixes from Ard Biesheuvel:
      
       - handle potential mremap() failure gracefully
      
       - don't reject EFI memory attributes table version 2
      
      * tag 'efi-fixes-for-v6.2-3' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi:
        efi: fix potential NULL deref in efi_mem_reserve_persistent
        efi: Accept version 2 of memory attributes table
      a0880c33
    • L
      Merge tag 'riscv-for-linus-6.2-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · a30df1ea
      Linus Torvalds 提交于
      Pull RISC-V fixes from Palmer Dabbelt:
      
       - A build fix to avoid static branches in cpu_relax(), which greatly
         inflates the jump tables and breaks at least
         CONFIG_CC_OPTIMIZE_FOR_SIZE=y.
      
       - A fix for a kernel panic when probing impossible instruction
         positions.
      
       - A fix to disable unwind tables, which are enabled by default for
         GCC-13 and result in unhandled relocations in modules.
      
      * tag 'riscv-for-linus-6.2-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
        riscv: disable generation of unwind tables
        riscv: kprobe: Fixup kernel panic when probing an illegal position
        riscv: Fix build with CONFIG_CC_OPTIMIZE_FOR_SIZE=y
      a30df1ea
    • L
      Merge tag 'drm-fixes-2023-02-03' of git://anongit.freedesktop.org/drm/drm · bffede38
      Linus Torvalds 提交于
      Pull drm fixes from Dave Airlie:
       "A few more fixes this week, a bit more spread out though.
      
        We have a bunch of nouveau regression and stabilisation fixes, along
        with usual amdgpu, and i915. Otherwise just some minor misc ones:
      
        dma-fence:
         - fix signaling bit for private fences
      
        panel:
         - boe-tv101wum-nl6 disable fix
      
        nouveau:
         - gm20b acr regression fix
         - tu102 scrub status fix
         - tu102 wait for firmware fix
      
        i915:
         - Fixes for potential use-after-free and double-free
         - GuC locking and refcount fixes
         - Display's reference clock value fix
      
        amdgpu:
         - GC11 fixes
         - DCN 3.1.4 fixes
         - NBIO 4.3 fix
         - DCN 3.2 fixes
         - Properly handle additional cases where DCN is not supported
         - SMU13 fixes
      
        vc4:
         - fix CEC adapter names
      
        ssd130x:
         - fix display init regression"
      
      * tag 'drm-fixes-2023-02-03' of git://anongit.freedesktop.org/drm/drm: (23 commits)
        drm/amd/display: Properly handle additional cases where DCN is not supported
        drm/amdgpu: Enable vclk dclk node for gc11.0.3
        drm/amd: Fix initialization for nbio 4.3.0
        drm/amdgpu: enable HDP SD for gfx 11.0.3
        drm/amd/pm: drop unneeded dpm features disablement for SMU 13.0.4/11
        drm/amd/display: Reset DMUB mailbox SW state after HW reset
        drm/amd/display: Unassign does_plane_fit_in_mall function from dcn3.2
        drm/amd/display: Adjust downscaling limits for dcn314
        drm/amd/display: Add missing brackets in calculation
        drm/amdgpu: update wave data type to 3 for gfx11
        drm/panel: boe-tv101wum-nl6: Ensure DSI writes succeed during disable
        drm/nouveau/acr/gm20b: regression fixes
        drm/nouveau/fb/tu102-: fix register used to determine scrub status
        drm/nouveau/devinit/tu102-: wait for GFW_BOOT_PROGRESS == COMPLETED
        drm/i915/adlp: Fix typo for reference clock
        drm/i915: Fix potential bit_17 double-free
        drm/i915: Fix up locking around dumping requests lists
        drm/i915: Fix request ref counting during error capture & debugfs dump
        drm/i915/guc: Fix locking when searching for a hung request
        drm/i915: Avoid potential vm use-after-free
        ...
      bffede38
    • L
      Merge tag 'mm-hotfixes-stable-2023-02-02-19-24-2' of... · 0c272a1d
      Linus Torvalds 提交于
      Merge tag 'mm-hotfixes-stable-2023-02-02-19-24-2' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
      
      Pull misc fixes from Andrew Morton:
       "25 hotfixes, mainly for MM.  13 are cc:stable"
      
      * tag 'mm-hotfixes-stable-2023-02-02-19-24-2' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm: (26 commits)
        mm: memcg: fix NULL pointer in mem_cgroup_track_foreign_dirty_slowpath()
        Kconfig.debug: fix the help description in SCHED_DEBUG
        mm/swapfile: add cond_resched() in get_swap_pages()
        mm: use stack_depot_early_init for kmemleak
        Squashfs: fix handling and sanity checking of xattr_ids count
        sh: define RUNTIME_DISCARD_EXIT
        highmem: round down the address passed to kunmap_flush_on_unmap()
        migrate: hugetlb: check for hugetlb shared PMD in node migration
        mm: hugetlb: proc: check for hugetlb shared PMD in /proc/PID/smaps
        mm/MADV_COLLAPSE: catch !none !huge !bad pmd lookups
        Revert "mm: kmemleak: alloc gray object for reserved region with direct map"
        freevxfs: Kconfig: fix spelling
        maple_tree: should get pivots boundary by type
        .mailmap: update e-mail address for Eugen Hristev
        mm, mremap: fix mremap() expanding for vma's with vm_ops->close()
        squashfs: harden sanity check in squashfs_read_xattr_id_table
        ia64: fix build error due to switch case label appearing next to declaration
        mm: multi-gen LRU: fix crash during cgroup migration
        Revert "mm: add nodes= arg to memory.reclaim"
        zsmalloc: fix a race with deferred_handles storing
        ...
      0c272a1d
  5. 03 2月, 2023 6 次提交
    • A
      efi: fix potential NULL deref in efi_mem_reserve_persistent · 966d47e1
      Anton Gusev 提交于
      When iterating on a linked list, a result of memremap is dereferenced
      without checking it for NULL.
      
      This patch adds a check that falls back on allocating a new page in
      case memremap doesn't succeed.
      
      Found by Linux Verification Center (linuxtesting.org) with SVACE.
      
      Fixes: 18df7577 ("efi/memreserve: deal with memreserve entries in unmapped memory")
      Signed-off-by: NAnton Gusev <aagusev@ispras.ru>
      [ardb: return -ENOMEM instead of breaking out of the loop]
      Signed-off-by: NArd Biesheuvel <ardb@kernel.org>
      966d47e1
    • G
      kernel/irq/irqdomain.c: fix memory leak with using debugfs_lookup() · d83d7ed2
      Greg Kroah-Hartman 提交于
      When calling debugfs_lookup() the result must have dput() called on it,
      otherwise the memory will leak over time.  To make things simpler, just
      call debugfs_lookup_and_remove() instead which handles all of the logic
      at once.
      
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: stable <stable@kernel.org>
      Reviewed-by: NMarc Zyngier <maz@kernel.org>
      Link: https://lore.kernel.org/r/20230202151554.2310273-1-gregkh@linuxfoundation.orgSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      d83d7ed2
    • G
      HV: hv_balloon: fix memory leak with using debugfs_lookup() · 6dfb0771
      Greg Kroah-Hartman 提交于
      When calling debugfs_lookup() the result must have dput() called on it,
      otherwise the memory will leak over time.  To make things simpler, just
      call debugfs_lookup_and_remove() instead which handles all of the logic
      at once.
      
      Cc: "K. Y. Srinivasan" <kys@microsoft.com>
      Cc: Haiyang Zhang <haiyangz@microsoft.com>
      Cc: Wei Liu <wei.liu@kernel.org>
      Cc: Dexuan Cui <decui@microsoft.com>
      Fixes: d180e0a1 ("Drivers: hv: Create debugfs file with hyper-v balloon usage information")
      Cc: stable <stable@kernel.org>
      Reviewed-by: NMichael Kelley <mikelley@microsoft.com>
      Link: https://lore.kernel.org/r/20230202140918.2289522-1-gregkh@linuxfoundation.orgSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      6dfb0771
    • A
      mei: Move uuid_le_cmp() to its only user · f5b3c341
      Andy Shevchenko 提交于
      There is only a single user of uuid_le_cmp() API, let's make it private
      to that user.
      Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Link: https://lore.kernel.org/r/20230202145412.87569-1-andriy.shevchenko@linux.intel.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      f5b3c341
    • G
      Merge tag 'iio-for-6.3a' of... · 196db6bb
      Greg Kroah-Hartman 提交于
      Merge tag 'iio-for-6.3a' of https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into char-misc-next
      
      Jonathan writes:
      
      1st set of IIO new device support, features and cleanups for the 6.3 cycle
      
      The usual mixed bag. So far this has been a quiet cycle for IIO.
      
      New device support
      * adi,ad8686
        - Add support for the AD5337 DAC - ID and 8 bit channel support.
      * maxim,max5522
        - New driver for this 2 channel DAC.
      * nxp,imx93-adc
        - New driver for this SoC ADC which is a fresh IP that will probably
          turn up in additional SoCs going forwards.
      * st,magn
        - Add support for magnetometer part of LSM303C which is very similar
          to standalone LIS3MDL already supported.
      * ti,ads7924
        - New driver for this 4 channel, 12-bit I2C ADC.
      * ti,lmp92064
        - New driver for this 12 bit SPI ADC.
      * ti,tmag5273
        - New driver for this 3D Hall-Effect Sensor.
      
      Features
      * core
        - Add a standard structure for the value pairs in IIO_VAL_INT_PLUS_MICRO
          available attributes and similar.
      * cirrus,ep93xx
        - Add DT binding docs and convert driver to DT based probing.
        - Enable testing building with CONFIG_COMPILE_TEST.
      * st,stm32-dfsdm
        - Enable ID register support for discovery of hardware capabilities on
          some devices.
      
      Cleanups and minor fixes
      * core
        - Drop the custom iio_sysfs_match_string_with_gaps().
          The special ability of this function to skip gaps in an array
          was never used by any upstream driver.
        - Sort headers whilst touching this file.
      * tools
        - Fix memory leak in iio_utils.c
      * various
        - leftover i2c probe_new() conversions.
        - scnprintf() -> sysfs_emit() cleanups.
        - hand rolled devm enables -> devm_regulator[_bulk]_get_enable()
        - typo fixes
        - dt-binding cleanup (whitespace, excess quotes and similar)
      * adi,ad7746
        - Set variable without pointless conditional.
      * fsl,mma9551
        - Squash false positives about use of uninitialized variable where
          garbage undergoes an endian conversion before being ignored.
      * measspec,ms5611
        - Switch to fully devm_ managed probe() and so drop explicit remove()
      * qcom,spmi-adc
        - Use dev_err_probe() to suppress deferred print.
      * qcom,spmi-adc5
        - Define a missing channel used for battery identification.
      * qcom,spmi-iadc
        - Document a compatible seen in wild.
      * semtech,sx9360
        - Fix units on semtech,resolution dt-binding.
      * sensiron,scd30
        - dev_err_probe() usage to simplify error paths a little.
      * st,lsm6dsx
        - Add missing mount matrix for the gyro IIO device.
      * taos,tsl2563
        - Respect firmware configured interrupt polarity if present.
        - Use i2c_smbus_write_word_data() in a few cases not previously covered.
        - Factor out duplicated interrupt configuration.
        - Switch to GENMASK() / BIT() from hand coded equivalents.
        - Tidy up unused definitions.
        - Use dev_err_probe() as appropriate.
        - Drop platform_data as no in kernel users and there are better ways to
          do equivalent if any are added.
        - Add local struct device variable to tidy up code.
        - Avoid dance via i2c_client to get the drvdata.
        - Tidy up headers ordering and Makefile ordering.
      * ti,adc128s052
        - Use new spi_get_device_match_data().
        - Drop ACPI_PTR() protection.
        - Sort headers whilst here.
        - Use asm instead of incorrect include of asm-generic/unaligned.h
      * vishay,vcn4000
        - Interrupt support for vcnl4040 (lots of refactoring needed)
      * xilinx,ams
        - Use fwnode_device_is_compatible() instead of open coding it.
      
      * tag 'iio-for-6.3a' of https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio: (71 commits)
        iio: adc: ad7291: Fix indentation error by adding extra spaces
        iio: accel: mma9551_core: Prevent uninitialized variable in mma9551_read_config_word()
        iio: accel: mma9551_core: Prevent uninitialized variable in mma9551_read_status_word()
        dt-bindings: iio/proximity: semtech,sx9360: Fix 'semtech,resolution' type
        iio: imu: fix spdx format
        iio: adc: imx93: Fix spelling mistake "geting" -> "getting"
        dt-bindings: iio: cleanup examples - indentation
        dt-bindings: iio: use lowercase hex in examples
        dt-bindings: iio: correct node names in examples
        dt-bindings: iio: minor whitespace cleanups
        dt-bindings: iio: drop unneeded quotes
        dt-bindings: iio: adc: Add NXP IMX93 ADC
        iio: adc: add imx93 adc support
        dt-bindings: iio: adc: add Texas Instruments ADS7924
        iio: adc: ti-ads7924: add Texas Instruments ADS7924 driver
        iio: imu: st_lsm6dsx: add 'mount_matrix' sysfs entry to gyro channel.
        iio: imu: st_lsm6dsx: fix naming of 'struct iio_info' in st_lsm6dsx_shub.c.
        iio: light: vcnl4000: Add interrupt support for vcnl4040
        iio: light: vcnl4000: Make irq handling more generic
        iio: light: vcnl4000: Prepare for more generic setup
        ...
      196db6bb
    • G
      Merge tag 'mhi-for-v6.3' of... · cbce3de2
      Greg Kroah-Hartman 提交于
      Merge tag 'mhi-for-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/mani/mhi into char-misc-next
      
      Manivannan writes:
      
      MHI Host
      ========
      
      - Fixed the module description
      
      MHI Endpoint
      ============
      
      - Powered down the MHI EP stack completely during MHI RESET instead of just
        doing transfer abort as the MMIO register access will be prohibited
        afterwards. EP stack will also be powered on again in case the RESET
        happened due to SYS_ERR.
      
      - Added a sanity check before processing the command ring to make sure that
        the channel is supported by the controller.
      
      - Added a check to make sure the xfer_cb is available for the channel
        before trying to send the error status to the client drivers. This
        helps in avoiding a potential null pointer dereference.
      
      - Fixed the debug log of RESET command
      
      - Modified the channel ring handler lock to protect the whole handler
        instead of locking it partially. This helps in avoiding a race that may
        happen if a channel STOP/RESET command is issued by the host parallely.
      
      - Saved the MHI state locally during suspend and resume. Otherwise, the MHI
        EP stack will not be aware of a channel that got disabled and may try to
        access it later.
      
      - Changed the MHI state_lock to mutex instead of spinlock. This helps in
        avoiding the sleeping in atomic bug reported by Dan Carpenter and also
        allows the lock to be held throughout the state change.
      
      - Fixed the off by one error while doing the MHI channel check during
        command ring processing.
      
      MHI Generic
      ===========
      
      - Updated the MHI toplevel Makefile to use Kconfig flags for building the
        host and endpoint sub-directories conditionally.
      
      * tag 'mhi-for-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/mani/mhi:
        bus: mhi: ep: Fix off by one in mhi_ep_process_cmd_ring()
        bus: mhi: ep: Change state_lock to mutex
        bus: mhi: ep: Save channel state locally during suspend and resume
        bus: mhi: ep: Move chan->lock to the start of processing queued ch ring
        bus: mhi: ep: Fix the debug message for MHI_PKT_TYPE_RESET_CHAN_CMD cmd
        bus: mhi: ep: Only send -ENOTCONN status if client driver is available
        bus: mhi: ep: Check if the channel is supported by the controller
        bus: mhi: ep: Power up/down MHI stack during MHI RESET
        bus: mhi: host: Update mhi driver description
        bus: mhi: Update Makefile to used Kconfig flags
      cbce3de2