1. 20 11月, 2020 1 次提交
  2. 02 4月, 2020 1 次提交
  3. 25 3月, 2020 17 次提交
  4. 07 3月, 2020 1 次提交
  5. 05 12月, 2019 1 次提交
  6. 03 10月, 2019 1 次提交
  7. 05 6月, 2019 1 次提交
  8. 04 4月, 2019 2 次提交
  9. 17 2月, 2019 2 次提交
  10. 05 6月, 2018 1 次提交
  11. 01 2月, 2018 1 次提交
    • M
      Input: goodix - use generic touchscreen_properties · fafef982
      Marcin Niestroj 提交于
      Use touchscreen_properties structure instead of implementing all
      properties by our own. It allows us to reuse generic code for parsing
      device-tree properties (which was implemented manually in the driver for
      now). Additionally, it allows us to report events using generic
      touchscreen_report_pos(), which automatically handles inverted and
      swapped axes.
      
      This fixes the issue with the custom code incorrectly handling case where
      ts->inverted_x and ts->swapped_x_y were true, but ts->inverted_y was
      false. Assuming we have 720x1280 touch panel, ts->abs_x_max == 1279 and
      ts->abs_y_max == 719 (because we inverted that in goodix_read_config()).
      Now let's assume that we received event from (0:0) position (in touch
      panel original coordinates). In function goodix_ts_report_touch() we
      calculate input_x as 1279, but after swapping input_y takes that value
      (which is more that maximum 719 value reported during initialization).
      
      Note that since touchscreen coordinates are 0-indexed, we now report
      touchscreen range as (0:size-1).
      
      Developed and tested on custom DT-based device with gt1151 touch
      panel.
      Signed-off-by: NMarcin Niestroj <m.niestroj@grinn-global.com>
      [dtor: fix endianness annotation reported by sparse, handle errors when
       initializing MT slots]
      Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
      fafef982
  12. 12 1月, 2018 1 次提交
  13. 25 10月, 2017 1 次提交
  14. 20 10月, 2017 1 次提交
    • P
      Input: goodix - poll the 'buffer status' bit before reading data · 9b5db7aa
      Paul Cercueil 提交于
      The Goodix panel triggers an interrupt on touch events. However, its
      registers will contain the valid values a short time after the
      interrupt, and not when it's raised. At that moment, the 'buffer status'
      bit is set.
      
      Previously, if the 'buffer status' bit was not set when the registers
      were read, the data was discarded and no input event was emitted,
      causing "finger down" or "finger up" events to be missed sometimes.
      
      This went unnoticed until v4.9, as the DesignWare I2C driver commonly
      used with this driver had enough latency for that bug to never trigger
      until commit 2702ea7d ("i2c: designware: wait for disable/enable only
      if necessary").
      
      Now, in the IRQ handler we will poll (with a timeout) the 'buffer status'
      bit and process the data of the panel as soon as this bit gets set.
      
      Note that the Goodix panel will send a few spurious interrupts after the
      'finger up' event, in which the 'buffer status' bit will never be set.
      
      Cc: Bastien Nocera <hadess@hadess.net>
      Cc: russianneuromancer@ya.ru
      Signed-off-by: NPaul Cercueil <paul@crapouillou.net>
      [hdegoede@redhat.com: Change poll loop to use jiffies,
                            add comment about typical poll time]
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      [dtor: rearranged control flow a bit to avoid explicit goto and double
      check]
      Reviewed-by: NBastien Nocera <hadess@hadess.net>
      Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
      9b5db7aa
  15. 12 9月, 2017 1 次提交
  16. 18 12月, 2015 7 次提交