1. 05 Sep, 2017 9 commits
  2. 15 Aug, 2017 3 commits
  3. 10 Aug, 2017 2 commits
  4. 09 Aug, 2017 1 commit
    • Srinivas Pandruvada's avatar
      HID: hid-sensor-hub: Force logical minimum to 1 for power and report state · b0f847e1
      Srinivas Pandruvada authored
      In the reference HID sensor hub firmware all Named array enums were
      0-based. There is no description of the default base of enums in HID
      sensor hub specification as logical minimum should have set this base
      value.
      
      Every sensor hub implemented enum as 1-based, without explicitly setting
      logical minimum to 1, because of the implementation by one of the major
      OS vendor. In Linux we used logical minimum to decide the enum base.
      
      Some sensor hub FWs already changed logical minimum from 0 to 1. We hoped
      that every other vendor will follow. But that didn't happen and we had to
      fix the report header for every sensor hub to change logical minimum to 1
      by using .report_fixup() callback. So for every new sensor hub we had to
      modify source code by adding this quirk based on the vendor and device id.
      This is becoming a maintenance burden.
      
      This patch hardcodes the logical minimum of power and report state
      attributes to 1. In this way we can remove the existing quirks and also
      we don't have to add more quirks.
      Signed-off-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
      Acked-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      b0f847e1
  5. 08 Aug, 2017 2 commits
    • Jason Gerecke's avatar
      HID: wacom: Do not completely map WACOM_HID_WD_TOUCHRINGSTATUS usage · 8d411cbf
      Jason Gerecke authored
      The WACOM_HID_WD_TOUCHRINGSTATUS usage is a single bit which tells us
      whether the touchring is currently in use or not. Because we need to
      reset the axis value to 0 when the finger is removed, we call
      'wacom_map_usage' to ensure that the required type/code values are
      associated with the usage. The 'wacom_map_usage' also sets up the axis
      range and resolution, however, which is not desired in this particular
      case.
      
      Although xf86-input-wacom doesn't do really do anything with the ring's
      range or resolution, the libinput driver (for Wayland environments)
      uses these values to provide proper angle indications to userspace.
      
      Fixes: 60a22186 ("HID: wacom: generic: add support for touchring")
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarJason Gerecke <jason.gerecke@wacom.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      8d411cbf
    • Hans de Goede's avatar
      HID: asus: Add T100CHI bluetooth keyboard dock touchpad support · 73c75d39
      Hans de Goede authored
      Put the touchpad in native (absolute coordinate mode) and export it to
      userspace as a touchpad rather then as a mouse.
      
      Note this requires HID_QUIRK_MULTI_INPUT as the T100CHI keyboard dock
      has all functionality on a single HID interface and userspace expects
      touchpads to be on a separate input_dev. Without MULTI_INPUT userspace
      will ignore the keyboard part of the keyboard/touchpad combo.
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      73c75d39
  6. 03 Aug, 2017 7 commits
  7. 02 Aug, 2017 2 commits
  8. 01 Aug, 2017 2 commits
  9. 31 Jul, 2017 1 commit
  10. 27 Jul, 2017 2 commits
    • Jason Gerecke's avatar
      HID: wacom: Improve generic name generation · 09dc28ac
      Jason Gerecke authored
      The 'wacom_update_name' function is responsible for producing names for
      the input device nodes based on the hardware device name. Commit f2209d4a
      added the ability to strip off prefixes like "Wacom Co.,Ltd." where the
      prefix was immediately (and redundantly) followed by "Wacom". The
      2nd-generation Intuos Pro 2 has such a prefix, but with a small error
      (the period and comma are swapped) that prevents the existing code from
      matching it. We're loath to extend the number of cases out endlessly and
      so instead try to be smarter about name generation.
      
      We observe that the cause of the redundant prefixes is HID combining the
      manufacturer and product strings of USB devices together. By using the
      original product name (with "Wacom" prefixed, if it does not already
      exist in the string) we can bypass the gyrations to find and remove
      redundant prefixes. Other devices either don't have a manufacturer string
      that needs to be removed (Bluetooth, uhid) or should have their name
      generated from scratch (I2C).
      Signed-off-by: default avatarJason Gerecke <jason.gerecke@wacom.com>
      Acked-By: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      09dc28ac
    • Jason Gerecke's avatar
      HID: introduce hid_is_using_ll_driver · fc2237a7
      Jason Gerecke authored
      Although HID itself is transport-agnostic, occasionally a driver may
      want to interact with the low-level transport that a device is connected
      through. To do this, we need to know what kind of bus is in use. The
      first guess may be to look at the 'bus' field of the 'struct hid_device',
      but this field may be emulated in some cases (e.g. uhid).
      
      More ideally, we can check which ll_driver a device is using. This
      function introduces a 'hid_is_using_ll_driver' function and makes the
      'struct hid_ll_driver' of the four most common transports accessible
      through hid.h.
      Signed-off-by: default avatarJason Gerecke <jason.gerecke@wacom.com>
      Acked-By: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      fc2237a7
  11. 25 Jul, 2017 2 commits
  12. 24 Jul, 2017 1 commit
  13. 23 Jul, 2017 6 commits
    • Linus Torvalds's avatar
      Linux 4.13-rc2 · 520eccdf
      Linus Torvalds authored
      520eccdf
    • Linus Torvalds's avatar
      Properly alphabetize MAINTAINERS file · 7683e9e5
      Linus Torvalds authored
      This adds a perl script to actually parse the MAINTAINERS file, clean up
      some whitespace in it, warn about errors in it, and then properly sort
      the end result.
      
      My perl-fu is atrocious, so the script has basically been created by
      randomly putting various characters in a pile, mixing them around, and
      then looking it the end result does anything interesting when used as a
      perl script.
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      7683e9e5
    • Linus Torvalds's avatar
      Fix up MAINTAINERS file problems · f47e07bc
      Linus Torvalds authored
      Prepping for scripting the MAINTAINERS file cleanup (and possible split)
      showed a couple of cases where the headers for a couple of entries were
      bogus.
      
      There's a few different kinds of bogosities:
      
       - the X-GENE SOC EDAC case was confused and split over two lines
      
       - there were four entries for "GREYBUS PROTOCOLS DRIVERS" that were all
         different things.
      
       - the NOKIA N900 CAMERA SUPPORT" was duplicated
      
      all of which were more obvious when you started doing associative arrays
      in perl to track these things by the header (so that we can alphabetize
      this thing properly, and so that we might split it up by the data too).
      
      Cc: Joe Perches <joe@perches.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      f47e07bc
    • Linus Torvalds's avatar
      Merge tag 'for-linus-4.13b-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · a56e88ec
      Linus Torvalds authored
      Pull xen fixes from Juergen Gross:
       "Some fixes and cleanups for running under Xen"
      
      * tag 'for-linus-4.13b-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        xen/balloon: don't online new memory initially
        xen/x86: fix cpu hotplug
        xen/grant-table: log the lack of grants
        xen/x86: Don't BUG on CPU0 offlining
      a56e88ec
    • Juergen Gross's avatar
      xen/balloon: don't online new memory initially · 96edd61d
      Juergen Gross authored
      When setting up the Xenstore watch for the memory target size the new
      watch will fire at once. Don't try to reach the configured target size
      by onlining new memory in this case, as the current memory size will
      be smaller in almost all cases due to e.g. BIOS reserved pages.
      
      Onlining new memory will lead to more problems e.g. undesired conflicts
      with NVMe devices meant to be operated as block devices.
      
      Instead remember the difference between target size and current size
      when the watch fires for the first time and apply it to any further
      size changes, too.
      
      In order to avoid races between balloon.c and xen-balloon.c init calls
      do the xen-balloon.c initialization from balloon.c.
      Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
      Reviewed-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
      Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
      96edd61d
    • Juergen Gross's avatar
      xen/x86: fix cpu hotplug · c185ddec
      Juergen Gross authored
      Commit dc6416f1 ("xen/x86: Call
      cpu_startup_entry(CPUHP_AP_ONLINE_IDLE) from xen_play_dead()")
      introduced an error leading to a stack overflow of the idle task when
      a cpu was brought offline/online many times: by calling
      cpu_startup_entry() instead of returning at the end of xen_play_dead()
      do_idle() would be entered again and again.
      
      Don't use cpu_startup_entry(), but cpuhp_online_idle() instead allowing
      to return from xen_play_dead().
      
      Cc: <stable@vger.kernel.org> # 4.12
      Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
      Reviewed-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
      Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
      c185ddec