OSDN Git Service

USB: serial: xr: move pin configuration to probe
authorJohan Hovold <johan@kernel.org>
Mon, 12 Apr 2021 09:55:49 +0000 (11:55 +0200)
committerJohan Hovold <johan@kernel.org>
Tue, 13 Apr 2021 16:36:28 +0000 (18:36 +0200)
commit49036fd021ce77764bc8059166f646c9768a1b26
treef45aa1b195e323b4529d09a73fb484bd4532e919
parent5f70fe320e47de0611150dd4628c86eb9212eb00
USB: serial: xr: move pin configuration to probe

There's no need to configure the pins on every open and judging from the
vendor driver and datasheet it can be done before enabling the UART.

Move pin configuration from open() to port probe and make sure to
deassert DTR and RTS after configuring all pins as GPIO.

Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/xr_serial.c