1. 31 1月, 2018 2 次提交
    • J
      Merge branches 'for-4.16/hid-quirks-cleanup/asus',... · 79084494
      Jiri Kosina 提交于
      Merge branches 'for-4.16/hid-quirks-cleanup/asus', 'for-4.16/hid-quirks-cleanup/elecom', 'for-4.16/hid-quirks-cleanup/ish', 'for-4.16/hid-quirks-cleanup/multitouch', 'for-4.16/hid-quirks-cleanup/pixart', 'for-4.16/hid-quirks-cleanup/rmi', 'for-4.16/hid-quirks-cleanup/sony' and 'for-4.16/hid-quirks-cleanup/toshiba' into for-linus
      
      Pull assorted device driver fixes (ASUS, Elecom, Intel-ISH, Multitouch, PixArt, RMI,
      Sony and Toshiba) based on top the hid-quirks revamp.
      79084494
    • J
      Merge branch 'for-4.16/hid-quirks-cleanup/_base' into for-linus · a7acb31d
      Jiri Kosina 提交于
      This series from Benjamin Tissoires finally removes one of the big PITAs
      in the hid-core, which is the absolute need of having added all the new
      device IDs into the horrid hid_have_special_driver[]
      a7acb31d
  2. 23 1月, 2018 7 次提交
  3. 07 12月, 2017 3 次提交
    • D
      HID: add quirk for another PIXART OEM mouse used by HP · 01cffe9d
      Dave Young 提交于
      This mouse keep disconnecting in runleve 3 like below, add it needs the
      quirk to mute the anoying messages.
      
      [  111.230555] usb 2-2: USB disconnect, device number 6
      [  112.718156] usb 2-2: new low-speed USB device number 7 using xhci_hcd
      [  112.941594] usb 2-2: New USB device found, idVendor=03f0, idProduct=094a
      [  112.984866] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
      [  113.027731] usb 2-2: Product: HP USB Optical Mouse
      [  113.069977] usb 2-2: Manufacturer: PixArt
      [  113.113500] input: PixArt HP USB Optical Mouse as /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/0003:03F0:094A.0002/input/input14
      [  113.156787] hid-generic 0003:03F0:094A.0002: input: USB HID v1.11 Mouse [PixArt HP USB Optical Mouse] on usb-0000:00:14.0-2/input0
      [  173.262642] usb 2-2: USB disconnect, device number 7
      [  174.750244] usb 2-2: new low-speed USB device number 8 using xhci_hcd
      [  174.935740] usb 2-2: New USB device found, idVendor=03f0, idProduct=094a
      [  174.990435] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
      [  175.014984] usb 2-2: Product: HP USB Optical Mouse
      [  175.037886] usb 2-2: Manufacturer: PixArt
      [  175.061794] input: PixArt HP USB Optical Mouse as /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/0003:03F0:094A.0003/input/input15
      [  175.084946] hid-generic 0003:03F0:094A.0003: input: USB HID v1.11 Mouse [PixArt HP USB Optical Mouse] on usb-0000:00:14.0-2/input0
      Signed-off-by: NDave Young <dyoung@redhat.com>
      Cc: stable@vger.kernel.org
      Reviewed-by: NBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      01cffe9d
    • H
      HID: core: lower log level for unknown main item tags to warnings · 7cb4774e
      Hans de Goede 提交于
      Given all the effort distros have done with splash-screens to give
      users a nice clean boot experience, we really want dmesg --level=err
      to not print anything unless there is a real problem with either the
      hardware or the kernel. Buggy HID descriptors unfortunately happen
      all too often, so lower the log level to warning keep the console
      clear of error messages such as:
      
      [  441.079664] apple 0005:05AC:0239.0003: unknown main item tag 0x0
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Acked-by: NBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      7cb4774e
    • C
      HID: quirks: make array hid_quirks static · 332347d4
      Colin Ian King 提交于
      Array hid_quirks is local to the source and does not need to be in
      global scope, so make it static.
      
      Cleans up sparse warning:
      drivers/hid/hid-quirks.c:29:28: warning: symbol 'hid_quirks' was not
      declared. Should it be static?
      Signed-off-by: NColin Ian King <colin.king@canonical.com>
      Reviewed-by: NBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      332347d4
  4. 01 12月, 2017 3 次提交
  5. 22 11月, 2017 5 次提交
    • H
      HID: multitouch: Combine all left-button events in a frame · 127e71bd
      Hans de Goede 提交于
      According to the Win8 Precision Touchpad spec, inside the HID_UP_BUTTON
      usage-page usage 1 is for a clickpad getting clicked, 2 for an external
      left button and 3 for an external right button. Since Linux uses
      BTN_LEFT for a clickpad being clicked we end up mapping both usage 1
      and 2 to BTN_LEFT and if a single report contains both then we ended
      up always reporting the value of both in a single SYN, e.g. :
      BTN_LEFT 1, BTN_LEFT 0, SYN. This happens for example with Hantick
      HTT5288 i2c mt touchpads.
      
      This commit fixes this by not immediately reporting left button when we
      parse the report, but instead storing or-ing together the values and
      reporting the result from mt_sync_frame() when we've a complete frame.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Reviewed-by: NBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      127e71bd
    • H
      HID: multitouch: Only look at non touch fields in first packet of a frame · 55746d28
      Hans de Goede 提交于
      Devices in "single finger hybrid mode" will send one report per finger,
      on some devices only the first report of such a multi-packet frame will
      contain a value for BTN_LEFT, in subsequent reports (if multiple fingers
      are down) the value is always 0, causing hid-mt to report BTN_LEFT going
      1 - 0 - 1 - 0 when pressing a clickpad and putting down a second finger.
      This happens for example on USB 0603:0002 mt touchpads.
      
      This commit fixes this by only reporting non touch fields for the first
      packet of a (possibly) multi-packet frame.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Reviewed-by: NBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      55746d28
    • H
      HID: multitouch: Properly deal with Win8 PTP reports with 0 touches · af8dc4d0
      Hans de Goede 提交于
      The Windows Precision Touchpad spec "Figure 4 Button Only Down and Up"
      and "Table 9 Report Sequence for Button Only Down and Up" indicate
      that the first packet of a (possibly hybrid mode multi-packet) frame
      may contain a contact-count of 0 if only a button is pressed and no
      fingers are detected.
      
      This means that a value of 0 for contact-count is a valid value and
      should be used as expected contact count when it is the first packet
      (num_received == 0), as extra check to make sure that this is the first
      packet of a buttons only frame, we also check that the timestamp is
      different.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Reviewed-by: NBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      af8dc4d0
    • H
      HID: multitouch: Fix alphabetic sorting of mt_devices table. · fb55b402
      Hans de Goede 提交于
      Fix alphabetic sorting of mt_devices hid_device_id table.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Reviewed-by: NBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      fb55b402
    • E
      HID: cp2112: Fix I2C_BLOCK_DATA transactions · 542134c0
      Eudean Sun 提交于
      The existing driver erroneously treats I2C_BLOCK_DATA and BLOCK_DATA
      commands the same.
      
      For I2C_BLOCK_DATA reads, the length of the read is provided in
      data->block[0], but the length itself should not be sent to the slave. In
      contrast, for BLOCK_DATA reads no length is specified since the length
      will be the first byte returned from the slave. When copying data back
      to the data buffer, for an I2C_BLOCK_DATA read we have to take care not to
      overwrite data->block[0] to avoid overwriting the length. A BLOCK_DATA
      read doesn't have this concern since the first byte returned by the device
      is the length and belongs in data->block[0].
      
      For I2C_BLOCK_DATA writes, the length is also provided in data->block[0],
      but the length itself is not sent to the slave (in contrast to BLOCK_DATA
      writes where the length prefixes the data sent to the slave).
      
      This was tested on physical hardware using i2cdump with the i and s flags
      to test the behavior of I2C_BLOCK_DATA reads and BLOCK_DATA reads,
      respectively. Writes were not tested but the I2C_BLOCK_DATA write change
      is pretty simple to verify by inspection.
      Signed-off-by: NEudean Sun <eudean@arista.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      542134c0
  6. 21 11月, 2017 6 次提交
  7. 16 11月, 2017 1 次提交
    • L
      Merge branch 'for-linus' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/jikos/hid · 20df1578
      Linus Torvalds 提交于
      Pull HID updates from Jiri Kosina:
      
       - high resolution mode for Dell canvas support, from Benjamin Tissoires
      
       - pen handling fixes for the Wacom driver, from Jason Gerecke
      
       - i2c-hid: Apollo-Lake based laptops improvements, from Hans de Goede
      
       - Input/Core: eraser tool support, from Ping Cheng
      
       - new ALPS touchpad (T4, found currently on HP EliteBook 1000, Zbook
         Stduio and HP Elite book x360) supportm from Masaki Ota
      
       - other smaller assorted fixes
      
      * 'for-linus' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/jikos/hid: (33 commits)
        HID: cp2112: fix broken gpio_direction_input callback
        HID: cp2112: fix interface specification URL
        HID: Wacom: switch Dell canvas into highres mode
        HID: wacom: generic: Send BTN_STYLUS3 when both barrel switches are set
        HID: sony: Fix SHANWAN pad rumbling on USB
        HID: i2c-hid: Add no-irq-after-reset quirk for 0911:5288 device
        HID: add backlight level quirk for Asus ROG laptops
        HID: cp2112: add HIDRAW dependency
        HID: Add ID 044f:b605 ThrustMaster, Inc. force feedback Racing Wheel
        HID: hid-logitech: remove redundant assignment to pointer value
        HID: wacom: generic: Recognize WACOM_HID_WD_PEN as a type of pen collection
        HID: rmi: Check that a device is a RMI device before calling RMI functions
        HID: add multi-input quirk for GamepadBlock
        HID: alps: add new U1 device ID
        HID: alps: add support for Alps T4 Touchpad device
        HID: alps: remove variables local to u1_init() from the device struct
        HID: alps: properly handle max_fingers and minimum on X and Y axis
        HID: alps: Separate U1 device code
        HID: alps: delete unnecessary struct u1_dev devInfo
        HID: usbhid: Convert timers to use timer_setup()
        ...
      20df1578
  8. 15 11月, 2017 13 次提交
    • J
      Merge branch 'for-4.15/wacom' into for-linus · 01125b2d
      Jiri Kosina 提交于
      - High resolution mode for DEll canvas support, from Benjamin Tissoires
      - A lot of improvements to pen handling in the Wacom driver, from Jason Gerecke
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      01125b2d
    • J
      Merge branch 'for-4.15/use-timer-setup' into for-linus · 4b545304
      Jiri Kosina 提交于
      - usbhid: conversion to timer_setup() and from_timer() from Kees Cook
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      4b545304
    • J
      Merge branch 'for-4.15/upstream' into for-linus · 6ed7a70b
      Jiri Kosina 提交于
      - cp2112: GPIO error handling and Kconfig fixes from Sébastien Szymanski
      - i2c-hid: fixup / quirk for Apollo-Lake based laptops, from Hans de Goede
      - Input/Core: add eraser tool support, from Ping Cheng
      - small assorted code fixes
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      6ed7a70b
    • J
      Merge branch 'for-4.15/sony' into for-linus · b50b9d3d
      Jiri Kosina 提交于
      - SHANWAN PS3 rumble fix from Bastien Nocera
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      b50b9d3d
    • J
      Merge branch 'for-4.15/multitouch' into for-linus · ea3bbd0a
      Jiri Kosina 提交于
      - make sure that we forward MSC_TIMESTAMP in accordance to the specification,
        from Nicolas Boichat
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      ea3bbd0a
    • J
      Merge branch 'for-4.15/logitech' into for-linus · 6101cb7e
      Jiri Kosina 提交于
      - small code fixes for Logitech driver from Colin Ian King
      6101cb7e
    • J
      Merge branch 'for-4.15/hyperv' into for-linus · e1548dcd
      Jiri Kosina 提交于
      - trivial printk() line termination fix for HyperV
      e1548dcd
    • J
      Merge branch 'for-4.15/asus' into for-linus · 47dd6b01
      Jiri Kosina 提交于
      - Asus laptop fixes (fn keys, backlight), from Mustafa Kuscu and
        Maxime Bellengé
      47dd6b01
    • J
      Merge branch 'for-4.15/alps' into for-linus · 5cc619db
      Jiri Kosina 提交于
      - New ALPS touchpad (T4, found currently on HP EliteBook 1000, Zbook Stduio
        and HP Elite book x360) support from Masaki Ota
      5cc619db
    • J
      Merge branch 'for-4.14/upstream-fixes' into for-linus · 83fd5ddc
      Jiri Kosina 提交于
      - Wacom: recognize PEN application collection properly, from Jason Gerecke
      - RMI: avoid cofusion caused by RMI functions being by mistake called on
        non-RMI devices, from Andrew Duggan
      - small device-ID-specific quirks/fixes
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      83fd5ddc
    • L
      Merge tag 'devicetree-for-4.15' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux · 37cb8e1f
      Linus Torvalds 提交于
      Pull DeviceTree updates from Rob Herring:
       "A bigger diffstat than usual with the kbuild changes and a tree wide
        fix in the binding documentation.
      
        Summary:
      
         - kbuild cleanups and improvements for dtbs
      
         - Code clean-up of overlay code and fixing for some long standing
           memory leak and race condition in applying overlays
      
         - Improvements to DT memory usage making sysfs/kobjects optional and
           skipping unflattening of disabled nodes. This is part of kernel
           tinification efforts.
      
         - Final piece of removing storing the full path for every DT node.
           The prerequisite conversion of printk's to use device_node format
           specifier happened in 4.14.
      
         - Sync with current upstream dtc. This brings additional checks to
           dtb compiling.
      
         - Binding doc tree wide removal of leading 0s from examples
      
         - RTC binding documentation adding missing devices and some
           consolidation of duplicated bindings
      
         - Vendor prefix documentation for nutsboard, Silicon Storage
           Technology, shimafuji, Tecon Microprocessor Technologies, DH
           electronics GmbH, Opal Kelly, and Next Thing"
      
      * tag 'devicetree-for-4.15' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (55 commits)
        dt-bindings: usb: add #phy-cells to usb-nop-xceiv
        dt-bindings: Remove leading zeros from bindings notation
        kbuild: handle dtb-y and CONFIG_OF_ALL_DTBS natively in Makefile.lib
        MIPS: dts: remove bogus bcm96358nb4ser.dtb from dtb-y entry
        kbuild: clean up *.dtb and *.dtb.S patterns from top-level Makefile
        .gitignore: move *.dtb and *.dtb.S patterns to the top-level .gitignore
        .gitignore: sort normal pattern rules alphabetically
        dt-bindings: add vendor prefix for Next Thing Co.
        scripts/dtc: Update to upstream version v1.4.5-6-gc1e55a5513e9
        of: dynamic: fix memory leak related to properties of __of_node_dup
        of: overlay: make pr_err() string unique
        of: overlay: pr_err from return NOTIFY_OK to overlay apply/remove
        of: overlay: remove unneeded check for NULL kbasename()
        of: overlay: remove a dependency on device node full_name
        of: overlay: simplify applying symbols from an overlay
        of: overlay: avoid race condition between applying multiple overlays
        of: overlay: loosen overly strict phandle clash check
        of: overlay: expand check of whether overlay changeset can be removed
        of: overlay: detect cases where device tree may become corrupt
        of: overlay: minor restructuring
        ...
      37cb8e1f
    • L
      Merge tag 'leds_for_4.15rc1' of... · 6a77d866
      Linus Torvalds 提交于
      Merge tag 'leds_for_4.15rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/j.anaszewski/linux-leds
      
      Pull LED updates from Jacek Anaszewski:
       "New LED class driver:
         - add a driver for PC Engines APU/APU2 LEDs
      
        New LED trigger:
         - add a system activity LED trigger
      
        LED core improvements:
         - replace flags bit shift with BIT() macros
      
        Convert timers to use timer_setup() in:
         - led-core
         - ledtrig-activity
         - ledtrig-heartbeat
         - ledtrig-transient
      
        LED class drivers fixes:
         - lp55xx: fix spelling mistake: 'cound' -> 'could'
         - tca6507: Remove unnecessary reg check
         - pca955x: Don't invert requested value in pca955x_gpio_set_value()
      
        LED documentation improvements:
         - update 00-INDEX file"
      
      * tag 'leds_for_4.15rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/j.anaszewski/linux-leds:
        leds: Add driver for PC Engines APU/APU2 LEDs
        leds: lp55xx: fix spelling mistake: 'cound' -> 'could'
        leds: Convert timers to use timer_setup()
        Documentation: leds: Update 00-INDEX file
        leds: tca6507: Remove unnecessary reg check
        leds: ledtrig-heartbeat: Convert timers to use timer_setup()
        leds: Replace flags bit shift with BIT() macros
        leds: pca955x: Don't invert requested value in pca955x_gpio_set_value()
        leds: ledtrig-activity: Add a system activity LED trigger
      6a77d866
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · 9f7a9b11
      Linus Torvalds 提交于
      Pull input updates from Dmitry Torokhov:
      
       - three new touchscreen drivers: EETI EXC3000, HiDeep, and Samsung
         S6SY761
      
       - the timer API conversion (setup_timer() -> timer_setup())
      
       - a few drivers swiytched to using managed API for creating custom
         device attributes
      
       - other assorted fixed and cleanups.
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (50 commits)
        Input: gamecon - mark expected switch fall-throughs
        Input: sidewinder - mark expected switch fall-throughs
        Input: spaceball - mark expected switch fall-throughs
        Input: uinput - unlock on allocation failure in ioctl
        Input: add support for the Samsung S6SY761 touchscreen
        Input: add support for HiDeep touchscreen
        Input: st1232 - remove obsolete platform device support
        Input: convert autorepeat timer to use timer_setup()
        media: ttpci: remove autorepeat handling and use timer_setup
        Input: cyttsp4 - avoid overflows when calculating memory sizes
        Input: mxs-lradc - remove redundant assignment to pointer input
        Input: add I2C attached EETI EXC3000 multi touch driver
        Input: goodix - support gt1151 touchpanel
        Input: ps2-gpio - actually abort probe when connected to sleeping GPIOs
        Input: hil_mlc - convert to using timer_setup()
        Input: hp_sdc - convert to using timer_setup()
        Input: touchsceen - convert timers to use timer_setup()
        Input: keyboard - convert timers to use timer_setup()
        Input: uinput - fold header into the driver proper
        Input: uinput - remove uinput_allocate_device()
        ...
      9f7a9b11
新手
引导
客服 返回
顶部