1. 16 Mar, 2015 2 commits
    • Dmitry Torokhov's avatar
      Revert "Input: synaptics - use dmax in input_mt_assign_slots" · 09d042a2
      Dmitry Torokhov authored
      This reverts commit 6ab17a84 since it,
      according to Benjamin, causes issues with slot assignment:
      
      E: 15.669119 0000 0000 0000     # ------------ SYN_REPORT (0) ----------
      E: 15.954242 0003 002f 0000     # EV_ABS / ABS_MT_SLOT          0
      E: 15.954242 0003 0039 0505     # EV_ABS / ABS_MT_TRACKING_ID   505
      E: 15.954242 0003 0035 3851     # EV_ABS / ABS_MT_POSITION_X    3851
      E: 15.954242 0003 0036 4076     # EV_ABS / ABS_MT_POSITION_Y    4076
      E: 15.954242 0003 003a 0034     # EV_ABS / ABS_MT_PRESSURE      34
      E: 15.954242 0001 014a 0001     # EV_KEY / BTN_TOUCH            1
      E: 15.954242 0003 0000 3851     # EV_ABS / ABS_X                3851
      E: 15.954242 0003 0001 4076     # EV_ABS / ABS_Y                4076
      E: 15.954242 0003 0018 0034     # EV_ABS / ABS_PRESSURE         34
      E: 15.954242 0001 0145 0001     # EV_KEY / BTN_TOOL_FINGER      1
      E: 15.954242 0000 0000 0000     # ------------ SYN_REPORT (0) ----------
      ... (bunch of regular events)...
      E: 16.020614 0000 0000 0000     # ------------ SYN_REPORT (0) ----------
      E: 16.043601 0003 0035 3873     # EV_ABS / ABS_MT_POSITION_X    3873
      E: 16.043601 0003 0036 3903     # EV_ABS / ABS_MT_POSITION_Y    3903
      E: 16.043601 0003 003a 0050     # EV_ABS / ABS_MT_PRESSURE      50
      E: 16.043601 0003 0035 3032     # EV_ABS / ABS_MT_POSITION_X    3032
      E: 16.043601 0003 0036 3832     # EV_ABS / ABS_MT_POSITION_Y    3832
      E: 16.043601 0003 003a 0044     # EV_ABS / ABS_MT_PRESSURE      44
      E: 16.043601 0003 0000 3032     # EV_ABS / ABS_X                3032
      E: 16.043601 0003 0001 3832     # EV_ABS / ABS_Y                3832
      E: 16.043601 0003 0018 0044     # EV_ABS / ABS_PRESSURE         44
      E: 16.043601 0001 0145 0000     # EV_KEY / BTN_TOOL_FINGER      0
      E: 16.043601 0001 014d 0001     # EV_KEY / BTN_TOOL_DOUBLETAP   1
      E: 16.043601 0000 0000 0000     # ------------ SYN_REPORT (0) ----------
      E: 16.068837 0003 002f 0001     # EV_ABS / ABS_MT_SLOT          1
      E: 16.068837 0003 0039 0506     # EV_ABS / ABS_MT_TRACKING_ID   506
      E: 16.068837 0003 0035 3912     # EV_ABS / ABS_MT_POSITION_X    3912
      E: 16.068837 0003 0036 3743     # EV_ABS / ABS_MT_POSITION_Y    3743
      E: 16.068837 0003 003a 0056     # EV_ABS / ABS_MT_PRESSURE      56
      E: 16.068837 0003 002f 0000     # EV_ABS / ABS_MT_SLOT          0
      E: 16.068837 0003 0035 3026     # EV_ABS / ABS_MT_POSITION_X    3026
      E: 16.068837 0003 0036 3708     # EV_ABS / ABS_MT_POSITION_Y    3708
      E: 16.068837 0003 003a 0052     # EV_ABS / ABS_MT_PRESSURE      52
      E: 16.068837 0003 0000 3026     # EV_ABS / ABS_X                3026
      E: 16.068837 0003 0001 3708     # EV_ABS / ABS_Y                3708
      E: 16.068837 0003 0018 0052     # EV_ABS / ABS_PRESSURE         52
      E: 16.068837 0000 0000 0000     # ------------ SYN_REPORT (0) ----------
      
      Slot 0 and 1 gets inverted in the second report above, which
      introduces a cursor jump. The problem is that this cursor jump is
      often enough to leave the current widget, and X sends the
      scrolling events to whoever is now under the cursor.
      Reported-by: default avatarBenjamin Tissoires <btissoir@redhat.com>
      Reported-by: default avatarHans de Goede <hdegoede@redhat.com>
      09d042a2
    • Dmitry Torokhov's avatar
      Merge branch 'synaptics' into for-linus · 6067fe5e
      Dmitry Torokhov authored
      Bring in changes needed to properly handle Lenovo 2015 lineup.
      6067fe5e
  2. 09 Mar, 2015 14 commits
  3. 07 Mar, 2015 4 commits
  4. 04 Mar, 2015 2 commits
  5. 02 Mar, 2015 3 commits
    • Arnd Bergmann's avatar
      Input: sun4i-ts - add thermal driver dependency · 4a6155a4
      Arnd Bergmann authored
      The sun4i-ts driver has had a dependency on the thermal code
      with the addition of the thermal zone sensor support, but this
      is not currently enforced in Kconfig, so with TOUCHSCREEN_SUN4I=y,
      THERMAL=m and THERMAL_OF=y we get
      
      drivers/built-in.o: In function `sun4i_ts_remove':
      :(.text+0x2376f4): undefined reference to `thermal_zone_of_sensor_unregister'
      drivers/built-in.o: In function `sun4i_ts_probe':
      :(.text+0x237a94): undefined reference to `thermal_zone_of_sensor_register'
      :(.text+0x237c00): undefined reference to `thermal_zone_of_sensor_unregister'
      
      We need the dependency on THERMAL in order to ensure that this
      driver becomes a loadable module if the thermal support itself
      is modular, while the dependency on THERMAL_OF is a runtime
      dependency and the driver will still build if it is missing.
      It is entirely possible to build sun4i-ts without THERMAL_OF
      just to use the hwmon sensors and/or touchscreen.
      
      Fixes: 22369710 ("Input: sun4i-ts - add thermal zone sensor support")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      [wens@csie.org: Fix description and Kconfig dependencies]
      Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
      Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      4a6155a4
    • Geert Uytterhoeven's avatar
      Input: cyapa - remove superfluous type check in cyapa_gen5_read_idac_data() · 2523caab
      Geert Uytterhoeven authored
      drivers/input/mouse/cyapa_gen5.c: In function ‘cyapa_gen5_read_idac_data’:
      drivers/input/mouse/cyapa_gen5.c:1876: warning: ‘max_element_cnt’ may be used uninitialized in this function
      drivers/input/mouse/cyapa_gen5.c:1873: warning: ‘offset’ may be used uninitialized in this function
      
      If *data_size is non-zero, and idac_data_type contains an unknown type,
      max_element_cnt and offset will be uninitialized, and the loop will
      process non-existing data.
      
      However, this cannot happen (for now), as there's a test for unknown
      types at the top of cyapa_gen5_read_idac_data().
      
      As no "if ... else if ..." is used in other places, remove the
      superfluous "if" to silence the compiler warning.
      Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Acked-by: default avatarDudley Du <dudl@cypress.com>
      Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      2523caab
    • Dudley Du's avatar
      Input: cyapa - fix unaligned functions redefinition error · 17a28055
      Dudley Du authored
      Use asm/unaligned.h instead of linux/unaligned/access_ok.h header file to
      fix compiling issues such as following while doing cross platform
      compiling:
      
      "include/linux/unaligned/access_ok.h:7:19: error: redefinition of
       'get_unaligned_le16'
      ...
      include/linux/unaligned/le_struct.h:6:19: note: previous definition of
       'get_unaligned_le16' was here".
      Reported-by: default avatarkbuild test robot <kbuild-all@01.org>
      Signed-off-by: default avatarDudley Du <dudl@cypress.com>
      Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      17a28055
  6. 26 Feb, 2015 1 commit
  7. 20 Feb, 2015 1 commit
  8. 16 Feb, 2015 11 commits
  9. 15 Feb, 2015 2 commits
    • Pali Rohár's avatar
      Input: ALPS - do not mix trackstick and external PS/2 mouse data · 04aae283
      Pali Rohár authored
      Previously dev2 device was used for both external PS/2 mouse and internal
      trackstick device (if available). This change introduces dev3 device which
      is used for external PS/2 mouse data and dev2 is now used only for
      trackstick.
      
      In case that trackstick is not present dev2 is not created, so userspace
      does not see non existent device in system.
      
      Because laptops with ALPS devices often do not use i8042 active
      multiplexing all data (from touchpad, trackstick and external PS/2 mouse)
      come to one port.  So it is not possible to know if external PS/2 mouse is
      connected or not. In most cases external PS/2 mouse is not connected so
      driver will create dev3 input device after first bare PS/2 packet will be
      received. So there will not be "ghost" input device.
      
      This change also helps in identifying possible problems in future if driver
      decides to report 6-bytes trackstick packets as 3-bytes bare PS/2 (data
      will be reported to dev3 instead dev2).
      Signed-off-by: default avatarPali Rohár <pali.rohar@gmail.com>
      Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      04aae283
    • Dmitry Torokhov's avatar
      Input: ALPS - fix trackstick detection on some Dell Latitudes · a09221e8
      Dmitry Torokhov authored
      On some Dell Latitudes we fail to identify presence of trackstick unless we
      reset the device. The issue is quite benign as we do perform reset in
      alps_init(), so the trackstick ends up working, but mouse name reported to
      userspace is not accurate.
      
      In order to fix the issue while avoiding the additional lengthy reset we
      move the resrt to alps_detect() and keep the discovered state to be used
      later in alps_init().
      Reported-by: default avatarPali Rohár <pali.rohar@gmail.com>
      Tested-by: default avatarPali Rohár <pali.rohar@gmail.com>
      Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      a09221e8