USB: serial: cp210x: fix GPIO in autosuspend
authorKaroly Pados <pados@pados.hu>
Sun, 17 Feb 2019 17:59:01 +0000 (18:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 Mar 2019 06:17:21 +0000 (07:17 +0100)
commit9765ec7f7a02299d8508f85085519d32ac330b82
treebebde61c35d1675e67b916abff3dfe2c83bdb2c3
parent09675c2f84bc6fff4d4bb0d4587876d5daa0b107
USB: serial: cp210x: fix GPIO in autosuspend

commit 7b0b644b9aa2de5032db0f468fddca091d0b7b90 upstream.

Current GPIO code in cp210x fails to take USB autosuspend into account,
making it practically impossible to use GPIOs with autosuspend enabled
without user configuration. Fix this like for ftdi_sio in a previous patch.
Tested on a CP2102N.

Signed-off-by: Karoly Pados <pados@pados.hu>
Fixes: cf5276ce7867 ("USB: serial: cp210x: Adding GPIO support for CP2105")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/cp210x.c