1. 20 6月, 2018 3 次提交
    • J
      HID: wacom: Correct logical maximum Y for 2nd-gen Intuos Pro large · d471b6b2
      Jason Gerecke 提交于
      The HID descriptor for the 2nd-gen Intuos Pro large (PTH-860) contains
      a typo which defines an incorrect logical maximum Y value. This causes
      a small portion of the bottom of the tablet to become unusable (both
      because the area is below the "bottom" of the tablet and because
      'wacom_wac_event' ignores out-of-range values). It also results in a
      skewed aspect ratio.
      
      To fix this, we add a quirk to 'wacom_usage_mapping' which overwrites
      the data with the correct value.
      Signed-off-by: NJason Gerecke <jason.gerecke@wacom.com>
      CC: stable@vger.kernel.org # v4.10+
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      d471b6b2
    • E
      HID: intel_ish-hid: ipc: register more pm callbacks to support hibernation · ebeaa367
      Even Xu 提交于
      Current ISH driver only registers suspend/resume PM callbacks which don't
      support hibernation (suspend to disk). Basically after hiberation, the ISH
      can't resume properly and user may not see sensor events (for example: screen
      		rotation may not work).
      
      User will not see a crash or panic or anything except the following message
      in log:
      
      	hid-sensor-hub 001F:8086:22D8.0001: timeout waiting for response from ISHTP device
      
      So this patch adds support for S4/hiberbation to ISH by using the
      SIMPLE_DEV_PM_OPS() MACRO instead of struct dev_pm_ops directly. The suspend
      and resume functions will now be used for both suspend to RAM and hibernation.
      
      If power management is disabled, SIMPLE_DEV_PM_OPS will do nothing, the suspend
      and resume related functions won't be used, so mark them as __maybe_unused to
      clarify that this is the intended behavior, and remove #ifdefs for power
      management.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: NEven Xu <even.xu@intel.com>
      Acked-by: NSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      ebeaa367
    • R
      HID: steam: use hid_device.driver_data instead of hid_set_drvdata() · 4bff980f
      Rodrigo Rivas Costa 提交于
      When creating the low-level hidraw device, the reference to steam_device
      was stored using hid_set_drvdata(). But this value is not guaranteed to
      be kept when set before calling probe. If this pointer is reset, it
      crashes when opening the emulated hidraw device.
      
      It looks like hid_set_drvdata() is for users "avobe" this hid_device,
      while hid_device.driver_data it for users "below" this one.
      
      In this case, we are creating a virtual hidraw device, so we must use
      hid_device.driver_data.
      Signed-off-by: NRodrigo Rivas Costa <rodrigorivascosta@gmail.com>
      Tested-by: NMariusz Ceier <mceier+kernel@gmail.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      4bff980f
  2. 11 6月, 2018 1 次提交
  3. 09 6月, 2018 5 次提交
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid · fdea70d2
      Linus Torvalds 提交于
      Pull HID updates from Jiri Kosina:
      
       - Valve Steam Controller support from Rodrigo Rivas Costa
      
       - Redragon Asura support from Robert Munteanu
      
       - improvement of duplicate usage handling in generic hid-input from
         Benjamin Tissoires
      
       - Win 8.1 precisioun touchpad spec implementation from Benjamin
         Tissoires
      
       - Support for "In Range" flag for Wacom Intuos/Bamboo devices from
         Jason Gerecke
      
       - other various assorted smaller fixes and improvements
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid: (27 commits)
        HID: rmi: use HID_QUIRK_NO_INPUT_SYNC
        HID: multitouch: fix calculation of last slot field in multi-touch reports
        HID: quirks: remove Delcom Visual Signal Indicator from hid_have_special_driver[]
        HID: steam: select CONFIG_POWER_SUPPLY
        HID: i2c-hid: remove i2c_hid_open_mut
        HID: wacom: Support "in range" for Intuos/Bamboo tablets where possible
        HID: core: fix hid_hw_open() comment
        HID: hid-plantronics: Re-resend Update to map button for PTT products
        HID: multitouch: fix types returned from mt_need_to_apply_feature()
        HID: i2c-hid: check if device is there before really probing
        HID: steam: add missing fields in client initialization
        HID: steam: add battery device.
        HID: add driver for Valve Steam Controller
        HID: alps: Fix some style in 't4_read_write_register()'
        HID: alps: Check errors returned by 't4_read_write_register()'
        HID: alps: Save a memory allocation in 't4_read_write_register()' when writing data
        HID: alps: Report an error if we receive invalid data in 't4_read_write_register()'
        HID: multitouch: implement precision touchpad latency and switches
        HID: multitouch: simplify the settings of the various features
        HID: multitouch: make use of HID_QUIRK_INPUT_PER_APP
        ...
      fdea70d2
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/livepatching · 9eb86c75
      Linus Torvalds 提交于
      Pull livepatching fixlet from Jiri Kosina:
       "livepatching documentation fix from Petr Mladek"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/livepatching:
        livepatch: Remove not longer valid limitations from the documentation
      9eb86c75
    • L
      Merge branch 'work.aio' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 4a189982
      Linus Torvalds 提交于
      Pull aio iopriority support from Al Viro:
       "The rest of aio stuff for this cycle - Adam's aio ioprio series"
      
      * 'work.aio' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        fs: aio ioprio use ioprio_check_cap ret val
        fs: aio ioprio add explicit block layer dependence
        fs: iomap dio set bio prio from kiocb prio
        fs: blkdev set bio prio from kiocb prio
        fs: Add aio iopriority support
        fs: Convert kiocb rw_hint from enum to u16
        block: add ioprio_check_cap function
      4a189982
    • L
      Merge branch 'work.lookup' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 4189b863
      Linus Torvalds 提交于
      Pull proc_fill_cache regression fix from Al Viro:
       "Regression fix for proc_fill_cache() braino introduced when switching
        instantiate() callback to d_splice_alias()"
      
      * 'work.lookup' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        fix proc_fill_cache() in case of d_alloc_parallel() failure
      4189b863
    • L
      Merge tag 'for-linus-4.18-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · a94fc25b
      Linus Torvalds 提交于
      Pull xen updates from Juergen Gross:
       "This contains some minor code cleanups (fixing return types of
        functions), some fixes for Linux running as Xen PVH guest, and adding
        of a new guest resource mapping feature for Xen tools"
      
      * tag 'for-linus-4.18-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        xen/PVH: Make GDT selectors PVH-specific
        xen/PVH: Set up GS segment for stack canary
        xen/store: do not store local values in xen_start_info
        xen-netfront: fix xennet_start_xmit()'s return type
        xen/privcmd: add IOCTL_PRIVCMD_MMAP_RESOURCE
        xen: Change return type to vm_fault_t
      a94fc25b
  4. 08 6月, 2018 31 次提交