USB: serial: f81232: set F81534A serial port with RS232 mode
authorJi-Ze Hong (Peter Hong) <hpeter@gmail.com>
Thu, 30 Jan 2020 05:47:51 +0000 (13:47 +0800)
committerJohan Hovold <johan@kernel.org>
Tue, 25 Feb 2020 11:30:20 +0000 (12:30 +0100)
commit0a68ec3d8a2ce75666b813b90cbf1d2e85684714
tree5c874c581ff28e519ea35b4245869ca08a85a1d9
parent11301d41ab9a043c20e9b1b79f8754a15dc21ef0
USB: serial: f81232: set F81534A serial port with RS232 mode

The Fintek F81532A/534A/535/536 is USB-to-2/4/8/12 serial ports device
and the serial ports are default disabled. Each port contains max 3 pins
GPIO and the 3 pins are default pull high with input mode.

When the serial port had activated (running probe()), we'll transform the
3 pins from GPIO function publicly to control Tranceiver privately use.
We'll default set to 0/0/1 for control transceiver to RS232 mode.

Otherwise, If the serial port is not active, the 3 pins is in GPIO mode
and controlled by global GPIO device with VID/PID: 2c42/16f8.

Signed-off-by: Ji-Ze Hong (Peter Hong) <hpeter+linux_kernel@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/f81232.c