Re: [PATCH 1/1] HID: usbhid: add usb_clear_halt determination for next hid_start_in

2014-08-24 Thread vichy
hi Alan: > > I originally tried using usb_reset_device, and it caused a deadlock: > > Unplug the HID device. > > I/O error occurs. hid_io_error schedules reset_work. > > The reset_work callback routine is hid_reset. It calls > usb_reset_device. > > The rese

Re: [PATCH 1/1] HID: usbhid: add usb_clear_halt determination for next hid_start_in

2014-08-24 Thread Alan Stern
On Sun, 24 Aug 2014, vichy wrote: > hi Alan: > > > > I originally tried using usb_reset_device, and it caused a deadlock: > > > > Unplug the HID device. > > > > I/O error occurs. hid_io_error schedules reset_work. > > > > The reset_work callback routine is hid_reset. It c

Re: [PATCH v4 5/14] input: cyapa: add read firmware image and raw data interfaces in debugfs system

2014-08-24 Thread Dmitry Torokhov
Hi Dudley, On Thu, Jul 17, 2014 at 02:52:36PM +0800, Dudley Du wrote: > Add read_fw and raw_data debugfs interfaces for easier issues location > and collection when report by user. > TEST=test on Chromebooks. > > Signed-off-by: Dudley Du > --- > drivers/input/mouse/cyapa.c | 219 > +++

Re: [PATCH RESEND v4 2/2] elantech: Call psmouse_reset when elantech probe fails

2014-08-24 Thread Dmitry Torokhov
On Wed, Aug 20, 2014 at 08:18:12PM +0200, Ulrik De Bie wrote: > elantech_init() calls elantech_set_absolute_mode which sets the driver in > an absolute mode. When after this the elantech_init fails, it is best > to turn the ps/2 mouse emulation mode back on by calling psmouse_reset() > so that it c

Re: [PATCH v4 6/14] input: cyapa: add gen3 trackpad device basic functions support

2014-08-24 Thread Dmitry Torokhov
On Thu, Jul 17, 2014 at 02:53:48PM +0800, Dudley Du wrote: > Based on the cyapa core, add the gen3 trackpad device's basic functions > supported, so gen3 trackpad device can work with kernel input system. > The basic function is absolutely same as previous cyapa driver only > support gen3 trackpad

Re: [PATCH RESEND v4 1/2] elantech: Add support for trackpoint found on some v3 models

2014-08-24 Thread Dmitry Torokhov
Hi Ulrik, On Wed, Aug 20, 2014 at 08:18:11PM +0200, Ulrik De Bie wrote: > + > + t = (((u32)packet[0] & 0xF8) << 24) | ((u32)packet[1] << 16) > + | (u32)packet[2] << 8 | (u32)packet[3]; Majority of devices with Elantech will be little-endian devices, so if we use get_unaligned_le32

RE: [PATCH v4 5/14] input: cyapa: add read firmware image and raw data interfaces in debugfs system

2014-08-24 Thread Dudley Du
Hi Dmitry, > -Original Message- > From: Dmitry Torokhov [mailto:dmitry.torok...@gmail.com] > Sent: Saturday, August 23, 2014 7:52 AM > To: Dudley Du > Cc: Rafael J. Wysocki; Benson Leung; Patrik Fimml; > linux-input@vger.kernel.org; > linux-ker...@vger.kernel.org; Dudley Du > Subject: Re:

RE: [PATCH v4 6/14] input: cyapa: add gen3 trackpad device basic functions support

2014-08-24 Thread Dudley Du
Hi Dmitry, > -Original Message- > From: Dmitry Torokhov [mailto:dmitry.torok...@gmail.com] > Sent: Saturday, August 23, 2014 7:55 AM > To: Dudley Du > Cc: Rafael J. Wysocki; Benson Leung; Patrik Fimml; > linux-input@vger.kernel.org; > linux-ker...@vger.kernel.org; Dudley Du > Subject: Re: