1. 11 11月, 2013 1 次提交
  2. 05 9月, 2012 1 次提交
    • F
      Input: usbtouchscreen - initialize eGalax devices · 037a833e
      Forest Bond 提交于
      Certain eGalax devices expose an interface with class HID and protocol
      None.  Some work with usbhid and some work with usbtouchscreen, but
      there is no easy way to differentiate.  Sending an eGalax diagnostic
      packet seems to kick them all into using the right protocol for
      usbtouchscreen, so we can continue to bind them all there (as opposed to
      handing some off to usbhid).
      
      This fixes a regression for devices that were claimed by (and worked
      with) usbhid prior to commit 139ebe8d
      ("Input: usbtouchscreen - fix eGalax HID ignoring"), which made
      usbtouchscreen claim them instead.  With this patch they will still be
      claimed by usbtouchscreen, but they will actually report events
      usbtouchscreen can understand.  Note that these devices will be limited
      to the usbtouchscreen feature set so e.g. dual touch features are not
      supported.
      
      I have the distinct pleasure of needing to support devices of both types
      and have tested accordingly.
      Signed-off-by: NForest Bond <forest.bond@rapidrollout.com>
      Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
      037a833e
  3. 05 5月, 2012 1 次提交
    • G
      USB: input: usbtouchscreen.c: fix up dev_* messages · 0a5ebc88
      Greg Kroah-Hartman 提交于
      Previously I had made the struct device point to the input device, but
      after talking with Dmitry, he said that the USB device would make more
      sense for this driver to point to.  So converted it to use that instead.
      
      CC: Dmitry Torokhov <dmitry.torokhov@gmail.com>
      CC: Henrik Rydberg <rydberg@euromail.se>
      CC: Rusty Russell <rusty@rustcorp.com.au>
      CC: Viresh Kumar <viresh.kumar@st.com>
      CC: Armando Visconti <armando.visconti@st.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      0a5ebc88
  4. 02 5月, 2012 2 次提交
  5. 26 4月, 2012 1 次提交
    • G
      USB: usbtouchscreen.c: remove err() usage · e27ad0fe
      Greg Kroah-Hartman 提交于
      err() was a very old USB-specific macro that I thought had
      gone away.  This patch removes it from being used in the
      driver and uses dev_err() instead.
      
      CC: Dmitry Torokhov <dmitry.torokhov@gmail.com>
      CC: Henrik Rydberg <rydberg@euromail.se>
      CC: Rusty Russell <rusty@rustcorp.com.au>
      CC: Viresh Kumar <viresh.kumar@st.com>
      CC: Armando Visconti <armando.visconti@st.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      e27ad0fe
  6. 05 3月, 2012 1 次提交
  7. 13 1月, 2012 1 次提交
  8. 19 11月, 2011 1 次提交
    • G
      USB: convert drivers/input/* to use module_usb_driver() · 08642e7c
      Greg Kroah-Hartman 提交于
      This converts the drivers in drivers/input/* to use the
      module_usb_driver() macro which makes the code smaller and a bit
      simpler.
      
      Added bonus is that it removes some unneeded kernel log messages about
      drivers loading and/or unloading.
      
      Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
      Cc: Ville Syrjala <syrjala@sci.fi>
      Cc: Henk Vergonet <Henk.Vergonet@gmail.com>
      Cc: Alessandro Rubini <rubini@ipvvis.unipv.it>
      Cc: Henrik Rydberg <rydberg@euromail.se>
      Cc: "Magnus Hörlin" <magnus@alefors.se>
      Cc: Chris Moeller <kode54@gmail.c>
      Cc: Christoph Fritz <chf.fritz@googlemail.com>
      Cc: Lucas De Marchi <lucas.demarchi@profusion.mobi>
      Cc: Jesper Juhl <jj@chaosbits.net>
      Cc: Edwin van Vliet <edwin@cheatah.nl>
      Cc: Ping Cheng <pingc@wacom.com>
      Cc: Eduard Hasenleithner <eduard@hasenleithner.at>
      Cc: Alexander Strakh <strakh@ispras.ru>
      Cc: Glenn Sommer <gsommer@datanordisk.dk>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      08642e7c
  9. 05 11月, 2011 1 次提交
  10. 23 11月, 2010 1 次提交
  11. 16 7月, 2010 3 次提交
  12. 29 6月, 2010 1 次提交
  13. 08 6月, 2010 1 次提交
  14. 27 5月, 2010 1 次提交
  15. 21 5月, 2010 1 次提交
  16. 20 5月, 2010 1 次提交
  17. 22 2月, 2010 1 次提交
  18. 04 2月, 2010 4 次提交
  19. 11 1月, 2010 1 次提交
  20. 30 11月, 2009 1 次提交
  21. 24 11月, 2009 2 次提交
  22. 28 7月, 2009 1 次提交
  23. 08 7月, 2009 1 次提交
  24. 01 3月, 2009 1 次提交
  25. 11 1月, 2009 1 次提交
  26. 20 11月, 2008 1 次提交
    • N
      Input: usbtouchscreen - fix TSC-10 DM USB controllers without EEPROM · 2ec6f246
      Nuno Lucas 提交于
      The usbtouchscreen module implements a driver for the TSC-10 DM USB
      touchscreen controllers, but assumes a 2-byte response for the
      CMD_RESET and CMD_RATE commands, when they can be only a single byte
      when no EEPROM is connected.
      
      The driver worked with an earlier controller revision, but new
      revisions of the controller fail.
      
      It seems the problem is that the early controller had the
      SEL4/EEPROM-CS pin high, but the new controller has it down, making
      the response different.
      
      Without the fix, the controller would answer the single byte 0x06
      (ACK), making the init fail with -ENODEV because buf[1] is 0xFF (as
      initialized before).
      
      As the single byte is the only thing we need to check it was ok, there
      is no need to verify the second byte.
      
      The [0x15 0x01] case is the NAK [0x15] response for when there is no
      data in the EEPROM [bit-0 of second byte set], so I let that be, as I
      don't have any controller with an EEPROM.
      
      With this patch, both the earlier and latest controller work the same.
      
      Note: This was previously submited as BUG #11961 [1] on the bugzilla
      tracker, but rebased to version 2.6.27.4 and with unnecessary comments
      and printk's removed.
      
      [1] http://bugzilla.kernel.org/show_bug.cgi?id=11961Signed-off-by: NNuno Lucas <ntlucas@gmail.com>
      Acked-by: NDaniel Ritz <daniel.ritz@gmx.ch>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      2ec6f246
  27. 03 7月, 2008 1 次提交
  28. 17 5月, 2008 1 次提交
  29. 05 4月, 2008 1 次提交
  30. 18 1月, 2008 1 次提交
    • D
      Input: usbtouchscreen - fix buffer overflow, make more egalax work · 62aa366d
      Daniel Ritz 提交于
      Fix a buffer overflow in mutli-packet handling code.  The overflow can
      only happen with eGalax devices and is even there very unlikely (only
      non-report packet are affected any only when truncated after the first
      byte).
      
      Also changes the mutli-packet handling code not to drop unknown packets,
      but rather just drop one byte.  This allows synchronizing on report packets
      in the data stream.  It's required for some egalax devices to work at all.
      
      Also remove the pointless 'flags' member of the device struct and set the
      version number to 0.6, plus some minor cleanups.
      
      [akpm@linux-foundation.org: coding-style fixes]
      Signed-off-by: NDaniel Ritz <daniel.ritz@gmx.ch>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      62aa366d
  31. 22 10月, 2007 1 次提交
  32. 20 10月, 2007 1 次提交
  33. 13 10月, 2007 1 次提交