1. 17 Nov, 2020 1 commit
    • Greg Kroah-Hartman's avatar
      Merge tag 'iio-fixes-for-5.10a' of... · 2dde2821
      Greg Kroah-Hartman authored
      Merge tag 'iio-fixes-for-5.10a' of https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-linus
      
      Jonathan writes:
      
      First set of IIO and counter fixes for the 5.10 cycle.
      
      IIO
      
      cros_ec
       - Provide defauts for max and min frequency when older machines fail
         to return them correctly.
      ingenic-adc
       - Fix wrong vref value for JZ4770 SoC
       - Fix AUX / VBAT readings when touchscreen in use by pausing touchscreen
         readings during a read of these channels.
      kxcjk1013
       - Fix an issue with KIOX010A ACPI id using devices which need to run
         a ACPI device specific method to avoid leaving the keyboard disabled.
         Includes a minor precursor patch to make this fix easier to do.
      mt6577-auxadc
       - Fix an issue with dev_comp not being set resulting in a null ptr deref.
      st_lsm6dsx
       - Set a 10ms min shub slave timeout to handle fast snesors where more time
         is needed to set up the config than the cycles allowed.
      stm32-adc
       - Fix an issue due to a clash between an ADC configured to use IRQs and
         a second configured to use DMA cause by some incorrect register masking.
      vcnl4035
       - Kconfig missing dependency
      
      Counter
      
      ti-eqep
       - wrong value for max_register as one beyond the end instead of the end.
      
      * tag 'iio-fixes-for-5.10a' of https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio:
        iio: accel: kxcjk1013: Add support for KIOX010A ACPI DSM for setting tablet-mode
        iio: accel: kxcjk1013: Replace is_smo8500_device with an acpi_type enum
        iio: light: fix kconfig dependency bug for VCNL4035
        iio/adc: ingenic: Fix AUX/VBAT readings when touchscreen is used
        iio/adc: ingenic: Fix battery VREF for JZ4770 SoC
        iio: imu: st_lsm6dsx: set 10ms as min shub slave timeout
        counter/ti-eqep: Fix regmap max_register
        iio: adc: stm32-adc: fix a regression when using dma and irq
        iio: adc: mediatek: fix unset field
        iio: cros_ec: Use default frequencies when EC returns invalid information
      2dde2821
  2. 14 Nov, 2020 2 commits
  3. 13 Nov, 2020 1 commit
  4. 08 Nov, 2020 3 commits
  5. 06 Nov, 2020 3 commits
    • Brian O'Keefe's avatar
      staging: rtl8723bs: Add 024c:0627 to the list of SDIO device-ids · aee9dccc
      Brian O'Keefe authored
      Add 024c:0627 to the list of SDIO device-ids, based on hardware found in
      the wild. This hardware exists on at least some Acer SW1-011 tablets.
      Signed-off-by: default avatarBrian O'Keefe <bokeefe@alum.wpi.edu>
      Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
      Link: https://lore.kernel.org/r/b9e1523f-2ba7-fb82-646a-37f095b4440e@alum.wpi.edu
      Cc: stable <stable@vger.kernel.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      aee9dccc
    • Necip Fazil Yildiran's avatar
      staging: ralink-gdma: fix kconfig dependency bug for DMA_RALINK · 06ea5940
      Necip Fazil Yildiran authored
      When DMA_RALINK is enabled and DMADEVICES is disabled, it results in the
      following Kbuild warnings:
      
      WARNING: unmet direct dependencies detected for DMA_ENGINE
        Depends on [n]: DMADEVICES [=n]
        Selected by [y]:
        - DMA_RALINK [=y] && STAGING [=y] && RALINK [=y] && !SOC_RT288X [=n]
      
      WARNING: unmet direct dependencies detected for DMA_VIRTUAL_CHANNELS
        Depends on [n]: DMADEVICES [=n]
        Selected by [y]:
        - DMA_RALINK [=y] && STAGING [=y] && RALINK [=y] && !SOC_RT288X [=n]
      
      The reason is that DMA_RALINK selects DMA_ENGINE and DMA_VIRTUAL_CHANNELS
      without depending on or selecting DMADEVICES while DMA_ENGINE and
      DMA_VIRTUAL_CHANNELS are subordinate to DMADEVICES. This can also fail
      building the kernel as demonstrated in a bug report.
      
      Honor the kconfig dependency to remove unmet direct dependency warnings
      and avoid any potential build failures.
      
      Link: https://bugzilla.kernel.org/show_bug.cgi?id=210055Signed-off-by: default avatarNecip Fazil Yildiran <fazilyildiran@gmail.com>
      Link: https://lore.kernel.org/r/20201104181522.43567-1-fazilyildiran@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      06ea5940
    • Sergio Paracuellos's avatar
      staging: mt7621-pci: avoid to request pci bus resources · e2b2e438
      Sergio Paracuellos authored
      After upgrading kernel to version 5.9.x the driver was not
      working anymore showing the following kernel trace:
      
      ...
      mt7621-pci 1e140000.pcie: resource collision:
      [mem 0x60000000-0x6fffffff] conflicts with pcie@1e140000 [mem 0x60000000-0x6fffffff]
      ------------[ cut here ]------------
      WARNING: CPU: 2 PID: 73 at kernel/resource.c:1400
      devm_request_resource+0xfc/0x10c
      Modules linked in:
      CPU: 2 PID: 73 Comm: kworker/2:1 Not tainted 5.9.2 #0
      Workqueue: events deferred_probe_work_func
      Stack : 00000000 81590000 807d0a1c 808a0000 8fd49080
              807d0000 00000009 808ac820
              00000001 808338d0 7fff0001 800839dc 00000049
              00000001 8fe51b00 367204ab
              00000000 00000000 807d0a1c 807c0000 00000001
              80082358 8fe50000 00559000
              00000000 8fe519f1 ffffffff 00000005 00000000
              00000001 00000000 807d0000
              00000009 808ac820 00000001 808338d0 00000001
              803bf1b0 00000008 81390008
      
      Call Trace:
      [<8000d018>] show_stack+0x30/0x100
      [<8032e66c>] dump_stack+0xa4/0xd4
      [<8002db1c>] __warn+0xc0/0x134
      [<8002dbec>] warn_slowpath_fmt+0x5c/0xac
      [<80033b34>] devm_request_resource+0xfc/0x10c
      [<80365ff8>] devm_request_pci_bus_resources+0x58/0xdc
      [<8048e13c>] mt7621_pci_probe+0x8dc/0xe48
      [<803d2140>] platform_drv_probe+0x40/0x94
      [<803cfd94>] really_probe+0x108/0x4ec
      [<803cd958>] bus_for_each_drv+0x70/0xb0
      [<803d0388>] __device_attach+0xec/0x164
      [<803cec8c>] bus_probe_device+0xa4/0xc0
      [<803cf1c4>] deferred_probe_work_func+0x80/0xc4
      [<80048444>] process_one_work+0x260/0x510
      [<80048a4c>] worker_thread+0x358/0x5cc
      [<8004f7d0>] kthread+0x134/0x13c
      [<80007478>] ret_from_kernel_thread+0x14/0x1c
      ---[ end trace a9dd2e37537510d3 ]---
      mt7621-pci 1e140000.pcie: Error requesting resources
      mt7621-pci: probe of 1e140000.pcie failed with error -16
      ...
      
      With commit 669cbc70 ("PCI: Move DT resource setup into
      devm_pci_alloc_host_bridge()"), the DT 'ranges' is parsed and populated
      into resources when the host bridge is allocated. The resources are
      requested as well, but that happens a 2nd time for this driver in
      mt7621_pcie_request_resources(). Hence we should avoid this second
      request.
      
      Also, the bus ranges was also populated by default, so we can remove
      it from mt7621_pcie_request_resources() to avoid the following trace
      if we don't avoid it:
      
      pci_bus 0000:00: busn_res: can not insert [bus 00-ff]
      under domain [bus 00-ff] (conflicts with (null) [bus 00-ff])
      
      Function 'mt7621_pcie_request_resources' has been renamed into
      'mt7621_pcie_add_resources' which now is a more accurate name
      for this function.
      
      Cc: stable@vger.kernel.org #5.9.x-
      Signed-off-by: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
      Link: https://lore.kernel.org/r/20201102202515.19073-1-sergio.paracuellos@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      e2b2e438
  6. 01 Nov, 2020 16 commits
    • Linus Torvalds's avatar
      Linux 5.10-rc2 · 3cea11cd
      Linus Torvalds authored
      3cea11cd
    • Lorenzo Bianconi's avatar
      iio: imu: st_lsm6dsx: set 10ms as min shub slave timeout · fe0b980f
      Lorenzo Bianconi authored
      Set 10ms as minimum i2c slave configuration timeout since st_lsm6dsx
      relies on accel ODR for i2c master clock and at high sample rates
      (e.g. 833Hz or 416Hz) the slave sensor occasionally may need more cycles
      than i2c master timeout (2s/833Hz + 1 ~ 3ms) to apply the configuration
      resulting in an uncomplete slave configuration and a constant reading
      from the i2c slave connected to st_lsm6dsx i2c master.
      
      Fixes: 8f9a5249 ("iio: imu: st_lsm6dsx: enable 833Hz sample frequency for tagged sensors")
      Fixes: c91c1c84 ("iio: imu: st_lsm6dsx: add i2c embedded controller support")
      Signed-off-by: default avatarLorenzo Bianconi <lorenzo@kernel.org>
      Cc: <Stable@vger.kernel.org>
      Link: https://lore.kernel.org/r/a69c8236bf16a1569966815ed71710af2722ed7d.1604247274.git.lorenzo@kernel.orgSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      fe0b980f
    • Linus Torvalds's avatar
      Merge tag 'x86-urgent-2020-11-01' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 7b56fbd8
      Linus Torvalds authored
      Pull x86 fixes from Thomas Gleixner:
       "Three fixes all related to #DB:
      
         - Handle the BTF bit correctly so it doesn't get lost due to a kernel
           #DB
      
         - Only clear and set the virtual DR6 value used by ptrace on user
           space triggered #DB. A kernel #DB must leave it alone to ensure
           data consistency for ptrace.
      
         - Make the bitmasking of the virtual DR6 storage correct so it does
           not lose DR_STEP"
      
      * tag 'x86-urgent-2020-11-01' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/debug: Fix DR_STEP vs ptrace_get_debugreg(6)
        x86/debug: Only clear/set ->virtual_dr6 for userspace #DB
        x86/debug: Fix BTF handling
      7b56fbd8
    • Linus Torvalds's avatar
      Merge tag 'timers-urgent-2020-11-01' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 4312e0e8
      Linus Torvalds authored
      Pull timer fixes from Thomas Gleixner:
       "A few fixes for timers/timekeeping:
      
         - Prevent undefined behaviour in the timespec64_to_ns() conversion
           which is used for converting user supplied time input to
           nanoseconds. It lacked overflow protection.
      
         - Mark sched_clock_read_begin/retry() to prevent recursion in the
           tracer
      
         - Remove unused debug functions in the hrtimer and timerlist code"
      
      * tag 'timers-urgent-2020-11-01' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        time: Prevent undefined behaviour in timespec64_to_ns()
        timers: Remove unused inline funtion debug_timer_free()
        hrtimer: Remove unused inline function debug_hrtimer_free()
        time/sched_clock: Mark sched_clock_read_begin/retry() as notrace
      4312e0e8
    • Linus Torvalds's avatar
      Merge tag 'smp-urgent-2020-11-01' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 82423b46
      Linus Torvalds authored
      Pull smp fix from Thomas Gleixner:
       "A single fix for stop machine.
      
        Mark functions no trace to prevent a crash caused by recursion when
        enabling or disabling a tracer on RISC-V (probably all architectures
        which patch through stop machine)"
      
      * tag 'smp-urgent-2020-11-01' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        stop_machine, rcu: Mark functions as notrace
      82423b46
    • Linus Torvalds's avatar
      Merge tag 'locking-urgent-2020-11-01' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 8d99084e
      Linus Torvalds authored
      Pull locking fixes from Thomas Gleixner:
       "A couple of locking fixes:
      
         - Fix incorrect failure injection handling in the fuxtex code
      
         - Prevent a preemption warning in lockdep when tracking
           local_irq_enable() and interrupts are already enabled
      
         - Remove more raw_cpu_read() usage from lockdep which causes state
           corruption on !X86 architectures.
      
         - Make the nr_unused_locks accounting in lockdep correct again"
      
      * tag 'locking-urgent-2020-11-01' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        lockdep: Fix nr_unused_locks accounting
        locking/lockdep: Remove more raw_cpu_read() usage
        futex: Fix incorrect should_fail_futex() handling
        lockdep: Fix preemption WARN for spurious IRQ-enable
      8d99084e
    • Linus Torvalds's avatar
      Merge tag 'char-misc-5.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · 31f02006
      Linus Torvalds authored
      Pull char/misc fixes/removals from Greg KH:
       "Here's some small fixes for 5.10-rc2 and a big driver removal.
      
        The fixes are for some reported issues in the interconnect and
        coresight drivers, nothing major.
      
        The "big" driver removal is the MIC drivers have been asked to be
        removed as the hardware never shipped and Intel no longer wants to
        maintain something that no one can use. This is welcomed by many as
        the DMA usage of these drivers was "interesting" and the security
        people were starting to question some issues that were starting to be
        found in the codebase.
      
        Note, one of the subsystems for this driver, the "VOP" code, will
        probably come back in future kernel versions as it was looking to
        potentially solve some PCIe virtualization issues that a number of
        other vendors were wanting to solve. But as-is, this codebase didn't
        work for anyone else so no actual functionality is being removed.
      
        All of these have been in linux-next with no reported issues"
      
      * tag 'char-misc-5.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
        coresight: cti: Initialize dynamic sysfs attributes
        coresight: Fix uninitialised pointer bug in etm_setup_aux()
        coresight: add module license
        misc: mic: remove the MIC drivers
        interconnect: qcom: use icc_sync state for sm8[12]50
        interconnect: qcom: Ensure that the floor bandwidth value is enforced
        interconnect: qcom: sc7180: Init BCMs before creating the nodes
        interconnect: qcom: sdm845: Init BCMs before creating the nodes
        interconnect: Aggregate before setting initial bandwidth
        interconnect: qcom: sdm845: Enable keepalive for the MM1 BCM
      31f02006
    • Linus Torvalds's avatar
      Merge tag 'driver-core-5.10-rc2' of... · 9c75b68b
      Linus Torvalds authored
      Merge tag 'driver-core-5.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
      
      Pull driver core and documentation fixes from Greg KH:
       "Here is one tiny debugfs change to fix up an API where the last user
        was successfully fixed up in 5.10-rc1 (so it couldn't be merged
        earlier), and a much larger Documentation/ABI/ update to the files so
        they can be automatically parsed by our tools.
      
        The Documentation/ABI/ updates are just formatting issues, small ones
        to bring the files into parsable format, and have been acked by
        numerous subsystem maintainers and the documentation maintainer. I
        figured it was good to get this into 5.10-rc2 to help wih the merge
        issues that would arise if these were to stick in linux-next until
        5.11-rc1.
      
        The debugfs change has been in linux-next for a long time, and the
        Documentation updates only for the last linux-next release"
      
      * tag 'driver-core-5.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (40 commits)
        scripts: get_abi.pl: assume ReST format by default
        docs: ABI: sysfs-class-led-trigger-pattern: remove hw_pattern duplication
        docs: ABI: sysfs-class-backlight: unify ABI documentation
        docs: ABI: sysfs-c2port: remove a duplicated entry
        docs: ABI: sysfs-class-power: unify duplicated properties
        docs: ABI: unify /sys/class/leds/<led>/brightness documentation
        docs: ABI: stable: remove a duplicated documentation
        docs: ABI: change read/write attributes
        docs: ABI: cleanup several ABI documents
        docs: ABI: sysfs-bus-nvdimm: use the right format for ABI
        docs: ABI: vdso: use the right format for ABI
        docs: ABI: fix syntax to be parsed using ReST notation
        docs: ABI: convert testing/configfs-acpi to ReST
        docs: Kconfig/Makefile: add a check for broken ABI files
        docs: abi-testing.rst: enable --rst-sources when building docs
        docs: ABI: don't escape ReST-incompatible chars from obsolete and removed
        docs: ABI: create a 2-depth index for ABI
        docs: ABI: make it parse ABI/stable as ReST-compatible files
        docs: ABI: sysfs-uevent: make it compatible with ReST output
        docs: ABI: testing: make the files compatible with ReST output
        ...
      9c75b68b
    • Linus Torvalds's avatar
      Merge tag 'staging-5.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging · 2376cca0
      Linus Torvalds authored
      Pull staging driver fixes from Greg KH:
       "Here are some small staging driver fixes for issues that have been
        reported in 5.10-rc1:
      
         - octeon driver fixes
      
         - wfx driver fixes
      
         - memory leak fix in vchiq driver
      
         - fieldbus driver bugfix
      
         - comedi driver bugfix
      
        All of these have been in linux-next with no reported issues"
      
      * tag 'staging-5.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
        staging: fieldbus: anybuss: jump to correct label in an error path
        staging: wfx: fix test on return value of gpiod_get_value()
        staging: wfx: fix use of uninitialized pointer
        staging: mmal-vchiq: Fix memory leak for vchiq_instance
        staging: comedi: cb_pcidas: Allow 2-channel commands for AO subdevice
        staging: octeon: Drop on uncorrectable alignment or FCS error
        staging: octeon: repair "fixed-link" support
      2376cca0
    • Linus Torvalds's avatar
      Merge tag 'tty-5.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · 2754a42e
      Linus Torvalds authored
      Pull tty/serial fixes from Greg KH:
       "Here are some small TTY and Serial driver fixes for reported issues
        for 5.10-rc2. They include:
      
         - vt ioctl bugfix for reported problems
      
         - fsl_lpuart serial driver fix
      
         - 21285 serial driver bugfix
      
        All have been in linux-next with no reported issues"
      
      * tag 'tty-5.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
        vt_ioctl: fix GIO_UNIMAP regression
        vt: keyboard, extend func_buf_lock to readers
        vt: keyboard, simplify vt_kdgkbsent
        tty: serial: fsl_lpuart: LS1021A has a FIFO size of 16 words, like LS1028A
        tty: serial: 21285: fix lockup on open
      2754a42e
    • Linus Torvalds's avatar
      Merge tag 'usb-5.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · 9b5ff3c9
      Linus Torvalds authored
      Pull USB driver fixes from Greg KH:
       "Here are a number of small bugfixes for reported issues in some USB
        drivers. They include:
      
         - typec bugfixes
      
         - xhci bugfixes and lockdep warning fixes
      
         - cdc-acm driver regression fix
      
         - kernel doc fixes
      
         - cdns3 driver bugfixes for a bunch of reported issues
      
         - other tiny USB driver fixes
      
        All have been in linux-next with no reported issues"
      
      * tag 'usb-5.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
        usb: cdns3: gadget: own the lock wrongly at the suspend routine
        usb: cdns3: Fix on-chip memory overflow issue
        usb: cdns3: gadget: suspicious implicit sign extension
        xhci: Don't create stream debugfs files with spinlock held.
        usb: xhci: Workaround for S3 issue on AMD SNPS 3.0 xHC
        xhci: Fix sizeof() mismatch
        usb: typec: stusb160x: fix signedness comparison issue with enum variables
        usb: typec: add missing MODULE_DEVICE_TABLE() to stusb160x
        USB: apple-mfi-fastcharge: don't probe unhandled devices
        usbcore: Check both id_table and match() when both available
        usb: host: ehci-tegra: Fix error handling in tegra_ehci_probe()
        usb: typec: stusb160x: fix an IS_ERR() vs NULL check in probe
        usb: typec: tcpm: reset hard_reset_count for any disconnect
        usb: cdc-acm: fix cooldown mechanism
        usb: host: fsl-mph-dr-of: check return of dma_set_mask()
        usb: fix kernel-doc markups
        usb: typec: stusb160x: fix some signedness bugs
        usb: cdns3: Variable 'length' set but not used
      9b5ff3c9
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 2d38c80d
      Linus Torvalds authored
      Pull kvm fixes from Paolo Bonzini:
       "ARM:
         - selftest fix
         - force PTE mapping on device pages provided via VFIO
         - fix detection of cacheable mapping at S2
         - fallback to PMD/PTE mappings for composite huge pages
         - fix accounting of Stage-2 PGD allocation
         - fix AArch32 handling of some of the debug registers
         - simplify host HYP entry
         - fix stray pointer conversion on nVHE TLB invalidation
         - fix initialization of the nVHE code
         - simplify handling of capabilities exposed to HYP
         - nuke VCPUs caught using a forbidden AArch32 EL0
      
        x86:
         - new nested virtualization selftest
         - miscellaneous fixes
         - make W=1 fixes
         - reserve new CPUID bit in the KVM leaves"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
        KVM: vmx: remove unused variable
        KVM: selftests: Don't require THP to run tests
        KVM: VMX: eVMCS: make evmcs_sanitize_exec_ctrls() work again
        KVM: selftests: test behavior of unmapped L2 APIC-access address
        KVM: x86: Fix NULL dereference at kvm_msr_ignored_check()
        KVM: x86: replace static const variables with macros
        KVM: arm64: Handle Asymmetric AArch32 systems
        arm64: cpufeature: upgrade hyp caps to final
        arm64: cpufeature: reorder cpus_have_{const, final}_cap()
        KVM: arm64: Factor out is_{vhe,nvhe}_hyp_code()
        KVM: arm64: Force PTE mapping on fault resulting in a device mapping
        KVM: arm64: Use fallback mapping sizes for contiguous huge page sizes
        KVM: arm64: Fix masks in stage2_pte_cacheable()
        KVM: arm64: Fix AArch32 handling of DBGD{CCINT,SCRext} and DBGVCR
        KVM: arm64: Allocate stage-2 pgd pages with GFP_KERNEL_ACCOUNT
        KVM: arm64: Drop useless PAN setting on host EL1 to EL2 transition
        KVM: arm64: Remove leftover kern_hyp_va() in nVHE TLB invalidation
        KVM: arm64: Don't corrupt tpidr_el2 on failed HVC call
        x86/kvm: Reserve KVM_FEATURE_MSI_EXT_DEST_ID
      2d38c80d
    • David Lechner's avatar
      counter/ti-eqep: Fix regmap max_register · 271b3392
      David Lechner authored
      The values given were the offset of the register after the last
      register instead of the actual last register in each range. Fix
      by using the correct last register of each range.
      
      Fixes: f213729f ("counter: new TI eQEP driver")
      Signed-off-by: default avatarDavid Lechner <david@lechnology.com>
      Acked-by: default avatarWilliam Breathitt Gray <vilhelm.gray@gmail.com>
      Link: https://lore.kernel.org/r/20201025165122.607866-1-david@lechnology.comSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      271b3392
    • Olivier Moysan's avatar
      iio: adc: stm32-adc: fix a regression when using dma and irq · 695e2f5c
      Olivier Moysan authored
      Since overrun interrupt support has been added, there's a regression when
      two ADCs are used at the same time, with:
      - an ADC configured to use IRQs. EOCIE bit is set. The handler is normally
        called in this case.
      - an ADC configured to use DMA. EOCIE bit isn't set. EOC triggers the DMA
        request. It's then automatically cleared by DMA read. But the handler
        gets called due to status bit is temporarily set (IRQ triggered by the
        other ADC).
      
      This is a regression as similar issue had been fixed earlier by
      commit dcb10920 ("iio: adc: stm32-adc:
      fix a race when using several adcs with dma and irq").
      Issue is that stm32_adc_eoc_enabled() returns non-zero value (always)
      since OVR bit has been added and enabled for both DMA and IRQ case.
      
      Remove OVR mask in IER register, and rely only on CSR status for overrun.
      To avoid subsequent calls to interrupt routine on overrun, CSR OVR bit has
      to be cleared. CSR OVR bit cannot be cleared directly by software.
      To do this ADC must be stopped first, and OVR bit in ADC ISR has
      to be cleared.
      Also add a check in ADC IRQ handler to report spurious IRQs.
      
      Fixes: cc06e67d ("iio: adc: stm32-adc: Add check on overrun interrupt")
      Signed-off-by: default avatarOlivier Moysan <olivier.moysan@st.com>
      Signed-off-by: default avatarFabrice Gasnier <fabrice.gasnier@st.com>
      Cc: <Stable@vger.kernel.org>
      Link: https://lore.kernel.org/r/20201021085313.5335-1-olivier.moysan@st.comSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      695e2f5c
    • Fabien Parent's avatar
      iio: adc: mediatek: fix unset field · 15207a92
      Fabien Parent authored
      dev_comp field is used in a couple of places but it is never set. This
      results in kernel oops when dereferencing a NULL pointer. Set the
      `dev_comp` field correctly in the probe function.
      
      Fixes: 6d97024d ("iio: adc: mediatek: mt6577-auxadc, add mt6765 support")
      Signed-off-by: default avatarFabien Parent <fparent@baylibre.com>
      Reviewed-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
      Cc: <Stable@vger.kernel.org>
      Link: https://lore.kernel.org/r/20201018194644.3366846-1-fparent@baylibre.comSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      15207a92
    • Gwendal Grignou's avatar
      iio: cros_ec: Use default frequencies when EC returns invalid information · 56e4f2dd
      Gwendal Grignou authored
      Minimal and maximal frequencies supported by a sensor is queried.
      On some older machines, these frequencies are not returned properly and
      the EC returns 0 instead.
      When returned maximal frequency is 0, ignore the information and use
      default frequencies instead.
      
      Fixes: ae7b02ad ("iio: common: cros_ec_sensors: Expose cros_ec_sensors frequency range via iio sysfs")
      Signed-off-by: default avatarGwendal Grignou <gwendal@chromium.org>
      Reviewed-by: default avatarEnric Balletbo i Serra <enric.balletbo@collabora.com>
      Link: https://lore.kernel.org/r/20200630153730.3302889-1-gwendal@chromium.org
      CC: <Stable@vger.kernel.org>
      Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      56e4f2dd
  7. 31 Oct, 2020 8 commits
  8. 30 Oct, 2020 6 commits