[PATCH v9] USB: serial: cp210x: Add support for GPIOs on CP2108

2021-04-08 Thread Pho Tran
From: Pho Tran Similar to other CP210x devices, GPIO interfaces (gpiochip) should be supported for CP2108. CP2108 has 4 serial interfaces but only 1 set of GPIO pins are shared to all of those interfaces. So, just need to initialize GPIOs of CP2108 with only one interface (I use interface 0

[PATCH v8] USB: serial: cp210x: Add support for GPIOs on CP2108

2021-04-06 Thread Pho Tran
From: Pho Tran Similar to other CP210x devices, GPIO interfaces (gpiochip) should be supported for CP2108. CP2108 has 4 serial interfaces but only 1 set of GPIO pins are shared to all of those interfaces. So, just need to initialize GPIOs of CP2108 with only one interface (I use interface 0

RE: [PATCH v7] USB: serial: cp210x: Add support for GPIOs on CP2108

2021-04-06 Thread Pho Tran
Hi Greg! Should I send the Patch with new version (PATCH v8) or keep version of the Patch is v7? -Original Message- From: 'Greg KH' Sent: Tuesday, April 6, 2021 4:11 PM To: Pho Tran Cc: 'Pho Tran' ; 'jo...@kernel.org' ; 'linux-...@vger.kernel.org' ; 'linux-kernel@vger.kernel.org

RE: [PATCH v7] USB: serial: cp210x: Add support for GPIOs on CP2108

2021-04-06 Thread Pho Tran
ot " to my new Patch. Could you tell me what I need to do in the next step to submit this patch to the kernel mainline? Once again, Thank you a lot! -Original Message- From: Greg KH Sent: Tuesday, April 6, 2021 12:15 PM To: Pho Tran Cc: jo...@kernel.org; linux-...@vger.kern

[PATCH v7] USB: serial: cp210x: Add support for GPIOs on CP2108

2021-04-05 Thread Pho Tran
From: Pho Tran Similar to other CP210x devices, GPIO interfaces (gpiochip) should be supported for CP2108. CP2108 has 4 serial interfaces but only 1 set of GPIO pins are shared to all of those interfaces. So, just need to initialize GPIOs of CP2108 with only one interface (I use interface 0

[PATCH v6] USB: serial: cp210x: Add support for GPIOs on CP2108

2021-04-05 Thread Pho Tran
From: Pho Tran Similar to other CP210x devices, GPIO interfaces (gpiochip) should be supported for CP2108. CP2108 has 4 serial interfaces but only 1 set of GPIO pins are shared to all of those interfaces. So, just need to initialize GPIOs of CP2108 with only one interface (I use interface 0

[PATCH v5] USB: serial: cp210x: Make the CP210x driver work with GPIOs of CP2108

2021-03-15 Thread Pho Tran
From: Pho Tran Similar to other CP210x devices, GPIO interfaces (gpiochip) should be supported for CP2108. CP2108 has 4 serial interfaces but only 1 set of GPIO pins are shared to all of those interfaces. So, just need to initialize GPIOs of CP2108 with only one interface (I use interface 0

[PATCH] USB: serial: cp210x: Make the CP210x driver work with GPIOs of CP2108

2021-03-04 Thread Pho Tran
. Signed-off-by: Pho Tran --- drivers/usb/serial/cp210x.c | 199 +++- 1 file changed, 172 insertions(+), 27 deletions(-) diff --git a/drivers/usb/serial/cp210x.c b/drivers/usb/serial/cp210x.c index 7bec1e730b20..0e92e41bacc5 100644 --- a/drivers/usb/serial/cp210x.c

[PATCH] USB: serial: cp210x: Make the CP210x driver work with GPIOs of CP2108

2021-03-01 Thread Pho Tran
are not in GPIO mode. Signed-off-by: Pho Tran --- drivers/usb/serial/cp210x.c | 199 +++- 1 file changed, 172 insertions(+), 27 deletions(-) diff --git a/drivers/usb/serial/cp210x.c b/drivers/usb/serial/cp210x.c index 7bec1e730b20..6bad65b3a971 100644 --- a/drivers

[PATCH] USB: serial: cp210x: Add pid/vid for WSDA-200-USB

2021-01-26 Thread Pho Tran
Information pid/vid of WSDA-200-USB, Lord corporation company: vid: 199b pid: ba30 Signed-off-by: Pho Tran --- drivers/usb/serial/cp210x.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/serial/cp210x.c b/drivers/usb/serial/cp210x.c index fbb10dfc56e3..669f52107f94 100644

[PATCH v4] USB: serial: cp210x: Fix error 32 when hardware flow control is enabled.

2021-01-21 Thread Pho Tran
will be controlled by hardware only, any attempt to control those pins will cause error 32 from the device. This fix will block MHS command(command to control RTS/DTR pins) to the device if hardware flow control is being used. Signed-off-by: Pho Tran --- 01/21/2021: Patch v3 modified based on comment from

[PATCH v3] USB: serial: cp210x: Fix error 32 when hardware flow control is enabled.

2021-01-20 Thread Pho Tran
will be controlled by hardware only, any attempt to control those pins will cause error 32 from the device. This fix will block MHS command(command to control RTS/DTR pins) to the device if hardware flow control is being used. Signed-off-by: Pho Tran --- 01/19/2021: Patch v2 Modified based on comment from

[PATCH] USB: serial: cp210x: Fix error 32 when hardware flow control is enabled.

2021-01-19 Thread Pho Tran
will be controlled by hardware only, any attempt to control those pins will cause error 32 from the device. This fix will block MHS command(command to control RTS/DTR pins) to the device if hardware flow control is being used. Signed-off-by: Pho Tran --- drivers/usb/serial/cp210x.c | 27

[PATCH] USB: serial: cp210x: Fix error 32 when hardware flow control is enabled.

2021-01-19 Thread Pho Tran
will be controlled by hardware only, any attempt to control those pin will cause error 32 from the device. This fix will block MHS command(command to control RTS/DTR pins) to the device if hardware flow control is being used. Signed-off-by: Pho Tran --- drivers/usb/serial/cp210x.c | 24

[PATCH] USB: otg: Fix error 32 when enable hardware flow control.

2021-01-10 Thread Pho Tran
When hardware flow control is enabled, don't allow host send MHS command to cp210x. Signed-off-by: Pho Tran --- drivers/usb/serial/cp210x.c | 32 +++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/drivers/usb/serial/cp210x.c b/drivers/usb/serial