[PATCH 1/2 v4] USB: serial: mos7840: Adjust port settings for read and write registers

2018-11-29 Thread Jackychou
From: JackyChou In the read/write function, set port 2 independently in the 2-port case. When setting the offset of port registers, the offset between port 1 and other ports is different, so port 1 is set independently. Then in the rest of ports, the port 2 between 2-ports case and 4-ports case

[PATCH 2/2 v4] USB: serial: mos7840: Add a product ID for the new product

2018-11-29 Thread Jackychou
From: JackyChou Add a new PID 0x7843 to the driver. Let the new products be able to set up 3 serial ports with the driver. Signed-off-by: JackyChou --- drivers/usb/serial/mos7840.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/usb/serial/mos7840.c b

FW: [PATCH 2/2] USB: serial: mos7840: Add a product ID for the new product

2018-11-28 Thread JackyChou
From: JackyChou Add a new PID 0x7843 to the driver. Let the new products be able to set up 3 serial ports with the driver. Signed-off-by: JackyChou --- drivers/usb/serial/mos7840.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/usb/serial/mos7840.c b

[PATCH 1/2] USB: serial: mos7840: Adjust port settings for read and write registers

2018-11-28 Thread JackyChou
From: JackyChou In the read/write function, set port 2 independently in the 2-port case. When setting the offset of port registers, the offset between port 1 and other ports is different, so port 1 is set independently. Then in the rest of ports, the port 2 between 2-ports case and 4-ports

[PATCHv3] USB: serial: mos7840: Add a product ID for the new product

2018-11-22 Thread JackyChou
From: JackyChou For now, pause to add PID 0x7843 in the driver. Simplify the processes of some functions. Such modifications will not affect the old devices and will make the addition of new product (0x7843) more flexible in the future. Signed-off-by: JackyChou --- drivers/usb/serial

[PATCH] USB: serial: mos7840: Add a product ID for the new product

2018-11-15 Thread JackyChou
From: JackyChou Add a new PID 0x7843 to the driver. Let the new products be able to set up 3 serial ports with the driver. Because the development of new product is based on 4 serial ports, but some users only need 3 serial ports. There is no way to set it from the hardware, so let the driver

[PATCH] USB: serial: mos7840: Add a product ID for the new product

2018-11-11 Thread Jackychou
From: JackyChou Add a new PID 0x7843 to the driver. Let the new products be able to set up 3 serial ports with the driver. Signed-off-by: JackyChou --- drivers/usb/serial/mos7840.c | 26 ++ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/drivers/usb