OSDN Git Service

tty: serial: samsung: Set missing PM ops for hibernation support
authorAnton Eliasson <anton.eliasson@axis.com>
Thu, 3 Aug 2023 11:26:42 +0000 (13:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Aug 2023 13:06:24 +0000 (15:06 +0200)
commitc58f2ae0ee94901da078a60961262df03eab7552
tree6b1bd4cc71c41c27c69dbceff4e5b56729dc0ffc
parent2c2d01a9f724a88be2895c5011689337da103c3b
tty: serial: samsung: Set missing PM ops for hibernation support

At least freeze, restore and thaw need to be set in order for the driver
to support system hibernation. The existing suspend/resume functions can
be reused since those functions don't touch the device's power state or
wakeup capability. Use the helper macros SET_SYSTEM_SLEEP_PM_OPS and
SET_NOIRQ_SYSTEM_SLEEP_PM_OPS for symmetry with similar drivers.

Signed-off-by: Anton Eliasson <anton.eliasson@axis.com>
Link: https://lore.kernel.org/r/20230803-samsung_tty_pm_ops-v1-1-1ea7be72194d@axis.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/samsung_tty.c