1. 02 Aug, 2022 4 commits
  2. 23 Jul, 2022 2 commits
  3. 22 Jul, 2022 2 commits
  4. 21 Jul, 2022 17 commits
  5. 09 Jun, 2022 2 commits
    • Tao Jin's avatar
      HID: multitouch: new device class fix Lenovo X12 trackpad sticky · 54eed5c7
      Tao Jin authored
      The trackpad of the given device sends continuous report of pointers
      status as per wxn8 spec. However, the spec did not clarify when the
      fingers are lifted so fast that between the interval of two report
      frames fingers on pad reduced from >=2 to 0. The second last report
      contains >=2 fingers with tip state 1 and the last report contains only
      1 finger with tip state 0. Although this can happen unfrequently, a
        quick fix will be improve the consistency to 100%. A quick fix is to
      disable MT_QUIRK_ALWAYS_VALID and enable MT_QUIRK_NOT_SEEN_MEANS_UP.
      
      Test for hid-tools is added in [1]
      
      In addition to this, I2C device 04CA:00B1 may also need similar class
      but with MT_QUIRK_FORCE_MULTI_INPUT disabled (but it does not harm to
       enable it on non-multi-input device either). The respective owner has
      been notified and a patch may coming soon after test.
      
      [1]: https://gitlab.freedesktop.org/libevdev/hid-tools/-/merge_requests/130Signed-off-by: default avatarTao Jin <tao-j@outlook.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      54eed5c7
    • Harshit Mogalapalli's avatar
      HID: cp2112: prevent a buffer overflow in cp2112_xfer() · 38158384
      Harshit Mogalapalli authored
      Smatch warnings:
      drivers/hid/hid-cp2112.c:793 cp2112_xfer() error: __memcpy()
      'data->block[1]' too small (33 vs 255)
      drivers/hid/hid-cp2112.c:793 cp2112_xfer() error: __memcpy() 'buf' too
      small (64 vs 255)
      
      The 'read_length' variable is provided by 'data->block[0]' which comes
      from user and it(read_length) can take a value between 0-255. Add an
      upper bound to 'read_length' variable to prevent a buffer overflow in
      memcpy().
      
      Fixes: 542134c0 ("HID: cp2112: Fix I2C_BLOCK_DATA transactions")
      Signed-off-by: default avatarHarshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      38158384
  6. 08 Jun, 2022 8 commits
  7. 27 May, 2022 3 commits
  8. 24 May, 2022 2 commits
    • Linus Torvalds's avatar
      Merge tag 'for-linus-2022052401' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid · aa051d36
      Linus Torvalds authored
      Pull HID updates from Jiri Kosina:
      
       - support for pens with 3 buttons with Wacom driver (Joshua Dickens)
      
       - support for HID_DG_SCANTIME to report the timestamp for pen and touch
         events in Wacom driver (Joshua Dickens)
      
       - support for sensor discovery in amd-sfh driver (Basavaraj Natikar)
      
       - support for wider variety of Huion tablets ported from DIGImend
         project (José Expósito, Nikolai Kondrashov)
      
       - new device IDs and other assorted small code cleanups
      
      * tag 'for-linus-2022052401' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid: (44 commits)
        HID: apple: Properly handle function keys on Keychron keyboards
        HID: uclogic: Switch to Digitizer usage for styluses
        HID: uclogic: Add pen support for XP-PEN Star 06
        HID: uclogic: Differentiate touch ring and touch strip
        HID: uclogic: Always shift touch reports to zero
        HID: uclogic: Do not focus on touch ring only
        HID: uclogic: Return raw parameters from v2 pen init
        HID: uclogic: Move param printing to a function
        HID: core: Display "SENSOR HUB" for sensor hub bus string in hid_info
        HID: amd_sfh: Move bus declaration outside of amd-sfh
        HID: amd_sfh: Add physical location to HID device
        HID: amd_sfh: Modify the hid name
        HID: amd_sfh: Modify the bus name
        HID: amd_sfh: Add sensor name by index for debug info
        HID: amd_sfh: Add support for sensor discovery
        HID: bigben: fix slab-out-of-bounds Write in bigben_probe
        Hid: wacom: Fix kernel test robot warning
        HID: uclogic: Disable pen usage for Huion keyboard interfaces
        HID: uclogic: Support disabling pen usage
        HID: uclogic: Pass keyboard reports as is
        ...
      aa051d36
    • Linus Torvalds's avatar
      Merge tag 'spi-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi · d8e0f976
      Linus Torvalds authored
      Pull spi updates from Mark Brown:
       "This is quite a quiet release but some new drivers mean that the
        diffstat is fairly large. The new drivers include the aspeed driver
        which is migrated from MTD as part of the ongoing move of controllers
        with specialised support for SPI flashes into the SPI subsystem.
      
         - Support for devices which flip CPHA during recieve only transfers
           (eg, if MOSI and MISO have inverted polarity).
      
         - Overhaul of the i.MX driver, including the addition of PIO support
           for better performance on small transfers.
      
         - Migration of the Aspeed driver from MTD.
      
         - Support for Aspeed AST2400, Ingenic JZ4775 and X1/2000 and MediaTek
           IPM and SFI"
      
      * tag 'spi-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi: (84 commits)
        spi: spi-au1550: replace ternary operator with min()
        mtd: spi-nor: aspeed: set the decoding size to at least 2MB for AST2600
        spi: aspeed: Calibrate read timings
        spi: aspeed: Add support for the AST2400 SPI controller
        spi: aspeed: Workaround AST2500 limitations
        spi: aspeed: Adjust direct mapping to device size
        spi: aspeed: Add support for direct mapping
        spi: spi-mem: Convert Aspeed SMC driver to spi-mem
        spi: Convert the Aspeed SMC controllers device tree binding
        spi: spi-cadence: Update ISR status variable type to irqreturn_t
        spi: Doc fix - Describe add_lock and dma_map_dev in spi_controller
        spi: cadence-quadspi: Handle spi_unregister_master() in remove()
        spi: stm32-qspi: Remove SR_BUSY bit check before sending command
        spi: stm32-qspi: Always check SR_TCF flags in stm32_qspi_wait_cmd()
        spi: stm32-qspi: Fix wait_cmd timeout in APM mode
        spi: cadence-quadspi: remove unnecessary (void *) casts
        spi: cadence-quadspi: Add missing blank line in cqspi_request_mmap_dma()
        spi: spi-imx: mx51_ecspi_prepare_message(): skip writing MX51_ECSPI_CONFIG register if unchanged
        spi: spi-imx: add PIO polling support
        spi: spi-imx: replace struct spi_imx_data::bitbang by pointer to struct spi_controller
        ...
      d8e0f976