platform/x86: thinkpad_acpi: Fix WWAN device disabled issue after S3 deep
authorSlark Xiao <slark_xiao@163.com>
Mon, 8 Nov 2021 06:06:48 +0000 (14:06 +0800)
committerHans de Goede <hdegoede@redhat.com>
Tue, 16 Nov 2021 09:56:53 +0000 (10:56 +0100)
commit39f53292181081d35174a581a98441de5da22bc9
treec194bcd5c17cf8cbd9b09fe9ef2c875d91d2f422
parent1f338954a5fbe21eb22b4223141e31f2a26366d5
platform/x86: thinkpad_acpi: Fix WWAN device disabled issue after S3 deep

When WWAN device wake from S3 deep, under thinkpad platform,
WWAN would be disabled. This disable status could be checked
by command 'nmcli r wwan' or 'rfkill list'.

Issue analysis as below:
  When host resume from S3 deep, thinkpad_acpi driver would
call hotkey_resume() function. Finnaly, it will use
wan_get_status to check the current status of WWAN device.
During this resume progress, wan_get_status would always
return off even WWAN boot up completely.
  In patch V2, Hans said 'sw_state should be unchanged
after a suspend/resume. It's better to drop the
tpacpi_rfk_update_swstate call all together from the
resume path'.
  And it's confimed by Lenovo that GWAN is no longer
 available from WHL generation because the design does not
 match with current pin control.

Signed-off-by: Slark Xiao <slark_xiao@163.com>
Link: https://lore.kernel.org/r/20211108060648.8212-1-slark_xiao@163.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/thinkpad_acpi.c