[PATCH v2] usb: roles: Add PM callbacks

2019-07-09 Thread Chen, Hu
switchable. - as device. Access the NUC via "adb shell" from a host PC. Adb works after S3 cycle. - as host. Mouse works on that usb port after S3 cycle. Without this fix, both of tests fails. Signed-off-by: Chen, Hu Signed-off-by: Balaji --- v2: The role maybe changed by ISR or f

[PATCH] usb: roles: Add PM callbacks

2019-07-07 Thread Chen, Hu
rom a host PC. After a suspend/resume cycle, the adb still works well. Signed-off-by: Chen, Hu Signed-off-by: Balaji diff --git a/drivers/usb/roles/intel-xhci-usb-role-switch.c b/drivers/usb/roles/intel-xhci-usb-role-switch.c index 277de96181f9..caa1cfab41cc 100644 --- a/drivers/usb/roles/intel-xh

[PATCH v2] ACPI / PM: Propagate KEY_POWER to user space when resume

2019-03-28 Thread Chen, Hu
KEY_POWER at resume. So add a knob "/sys/module/button/parameters/key_power_at_resume" for users to select. Signed-off-by: Chen, Hu --- drivers/acpi/button.c | 6 +- drivers/acpi/sleep.c | 8 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/

[PATCH v3] io: accel: kxcjk1013: restore the range after resume.

2019-03-05 Thread Chen, Hu
From: "he, bo" On some laptops, kxcjk1013 is powered off when system enters S3. We need restore the range regiter during resume. Otherwise, the sensor doesn't work properly after S3. Signed-off-by: he, bo Signed-off-by: Chen, Hu --- v3: Avoid unnecessary mutex_unlock (Hans).

[PATCH v2] io: accel: kxcjk1013: restore the range after resume.

2019-03-03 Thread Chen, Hu
From: "he, bo" On some laptops, kxcjk1013 is powered off when system enters S3. We need restore the range regiter during resume. Otherwise, the sensor doesn't work properly after S3. Signed-off-by: he, bo Signed-off-by: Chen, Hu --- Changes in v2: - Handle return value independently

[PATCH] ACPI / PM: Propagate KEY_POWER wakeup events to user space

2019-03-03 Thread Chen, Hu
, its opportunistic suspend will kick in shortly. Signed-off-by: Chen, Hu --- drivers/acpi/button.c | 4 +++- drivers/acpi/sleep.c | 8 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/button.c b/drivers/acpi/button.c index a19ff3977ac4..117718057938 100644

Re: [RFC/RFT,v7] cpuidle: New timer events oriented governor for tickless systems

2018-12-07 Thread Chen, Hu
From: Chen Hu Hi Rafael, I run several popular Android performance benchmarks on teov7, using kernel 4.19.0 as my baseline because I happen to work on it. To backport teov7 to kernel 4.19.0, I also backport patch 5f26bdc: "cpuidle: menu: Fix wakeup statistics updates for polling

Re: [RFC/RFT,v7] cpuidle: New timer events oriented governor for tickless systems

2018-12-07 Thread Chen, Hu
From: Chen Hu Hi Rafael, I run several popular Android performance benchmarks on teov7, using kernel 4.19.0 as my baseline because I happen to work on it. To backport teov7 to kernel 4.19.0, I also backport patch 5f26bdc: "cpuidle: menu: Fix wakeup statistics updates for polling

[PATCH] serial: 8250_dw: always set baud rate in dw8250_set_termios

2018-07-27 Thread Chen Hu
esume_port ... So the baud rate is not restored after S3 and breaks the apps who use UART, for example, console and bluetooth etc. We address this issue by setting the baud rate irrespective of arg "old", just like the drivers for other 8250 IPs. This is tested with Intel Broxton platform. Si

[PATCH] serial: 8250_dw: always set baud rate in dw8250_set_termios

2018-07-27 Thread Chen Hu
esume_port ... So the baud rate is not restored after S3 and breaks the apps who use UART, for example, console and bluetooth etc. We address this issue by setting the baud rate irrespective of arg "old", just like the drivers for other 8250 IPs. This is tested with Intel Broxton platform. Si

Re: [PATCH] serial: core: stop passing NULL in uart_resume_port

2018-07-26 Thread Chen Hu
Hi Andy, Thanks the feedback. Is it better to modify the DesignWare 8250 driver directly? Or do you think is this really an issue? Thanks Chen Hu

Re: [PATCH] serial: core: stop passing NULL in uart_resume_port

2018-07-26 Thread Chen Hu
Hi Andy, Thanks the feedback. Is it better to modify the DesignWare 8250 driver directly? Or do you think is this really an issue? Thanks Chen Hu

[PATCH] serial: core: stop passing NULL in uart_resume_port

2018-07-25 Thread Chen Hu
. Signed-off-by: Chen Hu --- drivers/tty/serial/serial_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c index f02965936f2e..8b815f1539e8 100644 --- a/drivers/tty/serial/serial_core.c +++ b/drivers/tty

[PATCH] serial: core: stop passing NULL in uart_resume_port

2018-07-25 Thread Chen Hu
. Signed-off-by: Chen Hu --- drivers/tty/serial/serial_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c index f02965936f2e..8b815f1539e8 100644 --- a/drivers/tty/serial/serial_core.c +++ b/drivers/tty