the touchpad won't work after closing and opening the lid on some laptops

2013-12-10 Thread Hui Wang
The problem: On some lenovo laptops (this problem has been reproduced on 3 lenovo laptop models), we let the machine boot into the desktop and login to the desktop, the touchpad workes very well. But After we close the lid then after a while open the lid, the touchpad won't work anymore. https://

[PATCH 1/2] Input: egalax_ts: get gpio from devicetree node

2012-08-07 Thread Hui Wang
o get gpio. Signed-off-by: Hui Wang --- drivers/input/touchscreen/egalax_ts.c | 12 ++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/egalax_ts.c b/drivers/input/touchscreen/egalax_ts.c index 70524dd..b94eb50 100644 --- a/drivers/input/touchs

[PATCH 0/2] Input: egalax_ts: parse devicetree to get gpio

2012-08-07 Thread Hui Wang
to wake up the controller, the old way to get gpio is irq_to_gpio(), this API is dying and most platforms don't support it, we change it to a more generic way to use devcietree. Hui Wang (2): Input: egalax_ts: get gpio from devicetree node Input: add devicetree binding note for egal

[PATCH 2/2] Input: add devicetree binding note for egalax_ts

2012-08-07 Thread Hui Wang
The egalax_ts driver needs to get the gpio number of the irq pin, and use this gpio to wake up the controller. So add a note for this change. Signed-off-by: Hui Wang --- .../bindings/input/touchscreen/egalax-ts.txt | 17 + 1 files changed, 17 insertions(+), 0 deletions

Re: [PATCH 1/2] Input: egalax_ts: get gpio from devicetree node

2012-08-07 Thread Hui Wang
rather than the suspend failure > every time. > > BR, > Jiejing > 在 2012-8-7,下午5:39,Hui Wang 写道: > > >> The irq_to_gpio() is old, most platforms use GENERIC_GPIO framework and >> don't support this API anymore. >> >> The i.MX6q sabrelite platf

[PATCH v2 2/2] Input: add devicetree binding note for egalax_ts

2012-08-08 Thread Hui Wang
The egalax_ts driver needs to get the gpio number of the irq pin, and use this gpio to wake up the controller. So add a note for this change. Signed-off-by: Hui Wang --- .../bindings/input/touchscreen/egalax-ts.txt | 17 + 1 files changed, 17 insertions(+), 0 deletions

[PATCH v2 0/2] Input: egalax_ts: parse devicetree to get gpio

2012-08-08 Thread Hui Wang
wake up signal for touch screen controller, we need to get this gpio number and operate it to wake up the controller, the old way to get gpio is irq_to_gpio(), this API is dying and most platforms don't support it, we change it to a more generic way to use devcietree. Hui Wang (2):

[PATCH v2 1/2] Input: egalax_ts: get gpio from devicetree node

2012-08-08 Thread Hui Wang
o get gpio. Add a return value checking for waking up the controller in the probe function, this guarantee only a workable device can pass init. Signed-off-by: Hui Wang --- drivers/input/touchscreen/egalax_ts.c | 19 --- 1 files changed, 16 insertions(+), 3 deletions(-) diff --

[PATCH v3 0/3] Input: egalax_ts: parse devicetree to get gpio

2012-08-15 Thread Hui Wang
lso act as a wake up signal for touch screen controller, we need to get this gpio number and operate it to wake up the controller, the old way to get gpio is irq_to_gpio(), this API is dying and most platforms don't support it, we change it to a more generic way to use devcietree. Hui Wang (3)

[PATCH v3 1/3] Input: egalax_ts: get gpio from devicetree node

2012-08-15 Thread Hui Wang
o get gpio. Add a return value checking for waking up the controller in the probe function, this guarantee only a workable device can pass init. Signed-off-by: Hui Wang --- drivers/input/touchscreen/egalax_ts.c | 19 --- 1 files changed, 16 insertions(+), 3 deletions(-) diff --

[PATCH v3 2/3] Input: add devicetree binding note for egalax_ts

2012-08-15 Thread Hui Wang
The egalax_ts driver needs to get the gpio number of the irq pin, and use this gpio to wake up the controller. So add a note for this change. Signed-off-by: Hui Wang --- .../bindings/input/touchscreen/egalax-ts.txt | 19 +++ 1 files changed, 19 insertions(+), 0 deletions

[PATCH v3 3/3] ARM: dts: imx6q-sabrelite: add eeti egalax

2012-08-15 Thread Hui Wang
i.MX6Q sabrelite board uses i2c3 to connect an eeti egalax touchscreen controller, add it as an i2c slave device in the dts. Signed-off-by: Hui Wang --- arch/arm/boot/dts/imx6q-sabrelite.dts | 16 arch/arm/boot/dts/imx6q.dtsi |7 +++ 2 files changed, 23

Re: [PATCH v3 2/3] Input: add devicetree binding note for egalax_ts

2012-08-15 Thread Hui Wang
Shawn Guo wrote: On Wed, Aug 15, 2012 at 06:31:47PM +0800, Hui Wang wrote: The egalax_ts driver needs to get the gpio number of the irq pin, and use this gpio to wake up the controller. So add a note for this change. Signed-off-by: Hui Wang --- .../bindings/input/touchscreen/egalax-ts.txt

Re: [PATCH v3 3/3] ARM: dts: imx6q-sabrelite: add eeti egalax

2012-08-15 Thread Hui Wang
Shawn Guo wrote: On Wed, Aug 15, 2012 at 06:31:48PM +0800, Hui Wang wrote: i.MX6Q sabrelite board uses i2c3 to connect an eeti egalax touchscreen controller, add it as an i2c slave device in the dts. Signed-off-by: Hui Wang --- arch/arm/boot/dts/imx6q-sabrelite.dts | 16

[PATCH v4 1/3] Input: egalax_ts: get gpio from devicetree node

2012-08-16 Thread Hui Wang
o get gpio. Add a return value checking for waking up the controller in the probe function, this guarantee only a workable device can pass init. Signed-off-by: Hui Wang --- drivers/input/touchscreen/egalax_ts.c | 25 ++--- 1 files changed, 22 insertions(+), 3 deletions(-)

[PATCH v4 0/3] Input: egalax_ts: parse devicetree to get gpio

2012-08-16 Thread Hui Wang
), this API is dying and most platforms don't support it, we change it to a more generic way to use devcietree. Hui Wang (3): Input: egalax_ts: get gpio from devicetree node Input: add devicetree binding note for egalax_ts ARM: dts: imx6q-sabrelite: add eeti egalax touchscreen .../b

[PATCH v4 3/3] ARM: dts: imx6q-sabrelite: add eeti egalax

2012-08-16 Thread Hui Wang
i.MX6Q sabrelite board uses i2c3 to connect an eeti egalax touchscreen controller, add it as an i2c slave device in the dts. Signed-off-by: Hui Wang --- arch/arm/boot/dts/imx6q-sabrelite.dts | 16 arch/arm/boot/dts/imx6q.dtsi |7 +++ 2 files changed, 23

[PATCH v4 2/3] Input: add devicetree binding note for egalax_ts

2012-08-16 Thread Hui Wang
The egalax_ts driver needs to get the gpio number of the irq pin, and use this gpio to wake up the controller. So add a note for this change. Signed-off-by: Hui Wang --- .../bindings/input/touchscreen/egalax-ts.txt | 19 +++ 1 files changed, 19 insertions(+), 0 deletions

Re: [PATCH v4 3/3] ARM: dts: imx6q-sabrelite: add eeti egalax

2012-08-16 Thread Hui Wang
Shawn Guo wrote: On Thu, Aug 16, 2012 at 06:47:31PM +0800, Hui Wang wrote: i.MX6Q sabrelite board uses i2c3 to connect an eeti egalax touchscreen controller, add it as an i2c slave device in the dts. Signed-off-by: Hui Wang Looks good. Will apply it after the driver part gets

Re: [PATCH v4 1/3] Input: egalax_ts: get gpio from devicetree node

2012-10-09 Thread Hui Wang
Arnd Bergmann wrote: On Friday 17 August 2012, Shawn Guo wrote: On Thu, Aug 16, 2012 at 06:47:29PM +0800, Hui Wang wrote: The irq_to_gpio() is old, most platforms use GENERIC_GPIO framework and don't support this API anymore. The i.MX6q sabrelite platform equips an egalax touchs

[PATCH v4 RESEND 0/3] Input: egalax_ts: parse devicetree to get gpio

2012-10-10 Thread Hui Wang
, please apply 0001-xxx.patch and 0002-xxx.patch to your tree. Shawn will merge 0003-xxx.patch from his tree. Thanks, Hui. Hui Wang (3): Input: egalax_ts: get gpio from devicetree node Input: add devicetree binding note for egalax_ts ARM: dts: imx6q-sabrelite: add eeti egalax touchscreen

[PATCH v4 RESEND 1/3] Input: egalax_ts: get gpio from devicetree

2012-10-10 Thread Hui Wang
o get gpio. Add a return value checking for waking up the controller in the probe function, this guarantee only a workable device can pass init. Ackyed-by Zhang Jiejing Reviewed-by: Shawn Guo Signed-off-by: Hui Wang --- drivers/input/touchscreen/egalax_ts.c | 25 ++--- 1

[PATCH v4 RESEND 2/3] Input: add devicetree binding note for

2012-10-10 Thread Hui Wang
The egalax_ts driver needs to get the gpio number of the irq pin, and use this gpio to wake up the controller. So add a note for this change. Ackyed-by Zhang Jiejing Reviewed-by: Shawn Guo Signed-off-by: Hui Wang --- .../bindings/input/touchscreen/egalax-ts.txt | 19

[PATCH v4 RESEND 3/3] ARM: dts: imx6q-sabrelite: add eeti egalax

2012-10-10 Thread Hui Wang
i.MX6Q sabrelite board uses i2c3 to connect an eeti egalax touchscreen controller, add it as an i2c slave device in the dts. Reviewed-by: Shawn Guo Signed-off-by: Hui Wang --- arch/arm/boot/dts/imx6q-sabrelite.dts | 16 arch/arm/boot/dts/imx6q.dtsi |9

Re: [PATCH v4 RESEND 1/3] Input: egalax_ts: get gpio from devicetree

2012-10-11 Thread Hui Wang
Shawn Guo wrote: Add LAKML ... On Wed, Oct 10, 2012 at 09:30:36AM -0700, Dmitry Torokhov wrote: Hi Hui, On Wed, Oct 10, 2012 at 05:12:01PM +0800, Hui Wang wrote: The irq_to_gpio() is old, most platforms use GENERIC_GPIO framework and don't support this API anymore. The i