usb: usb251xb: add pm_ops
authorMarco Felsch <m.felsch@pengutronix.de>
Tue, 17 Sep 2019 14:44:49 +0000 (16:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2019 12:26:14 +0000 (14:26 +0200)
commit905eccc6a509d2818e3dd1304c55dc5291b7ea88
treecb66e39355b269e6d711bd75c6f2c07dcff84085
parenta9bab25556f142c696c660f4be54dba9808403d2
usb: usb251xb: add pm_ops

Currently the driver don't support pm_ops. These ops are not necessary
if the supply isn't switchable (always on). This assumptions seems to be
wrong because no one needs a powered hub during suspend-to-ram/disk.

So adding simple_dev_pm_ops to be able to switch off the hub during
suspend and to restore the config after a resume operation.

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Acked-by: Richard Leitner <richard.leitner@skidata.com>
Link: https://lore.kernel.org/r/20190917144449.32739-5-m.felsch@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/usb251xb.c