All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] MIPS: Loongson64: enable CONFIG_USB_SERIAL_PL2303
@ 2021-03-29  7:15 Qing Zhang
  2021-03-29  9:27 ` Thomas Bogendoerfer
  2021-03-30  1:48 ` Jiaxun Yang
  0 siblings, 2 replies; 4+ messages in thread
From: Qing Zhang @ 2021-03-29  7:15 UTC (permalink / raw)
  To: Thomas Bogendoerfer; +Cc: Jiaxun Yang, Huacai Chen, linux-mips, linux-kernel

When using the Loongson-3A4000 machine for serial port debugging,
there is no /dev/ttyUSB* output, which makes the serial port unavailable,
For convenience, we open this configuration.

zhangqing@loongson-pc:~$ cat /sys/firmware/lefi/boardinfo
Board Info
Manufacturer		: THTF
Board Name		: THTF-LS3A4000-7A1000-ML4A
Family			: LOONGSON3

BIOS Info
Vendor			: ZD tech
Version			: ZD tech-V2.1.1
ROM Size		: 4 KB
Release Date		: 2020-06-29

zhangqing@loongson-pc:~$ lsusb
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 003: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
Bus 005 Device 002: ID 0c45:760b Microdia USB Keyboard
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 003: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Signed-off-by: Qing Zhang <zhangqing@loongson.cn>
---
 arch/mips/configs/loongson3_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/mips/configs/loongson3_defconfig b/arch/mips/configs/loongson3_defconfig
index 77f6a3551f46..a18609cf0e5e 100644
--- a/arch/mips/configs/loongson3_defconfig
+++ b/arch/mips/configs/loongson3_defconfig
@@ -320,6 +320,7 @@ CONFIG_USB_OHCI_HCD=y
 CONFIG_USB_UHCI_HCD=m
 CONFIG_USB_STORAGE=m
 CONFIG_USB_SERIAL=m
+CONFIG_USB_SERIAL_PL2303=m
 CONFIG_USB_SERIAL_OPTION=m
 CONFIG_RTC_CLASS=y
 CONFIG_RTC_DRV_CMOS=y
-- 
2.31.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] MIPS: Loongson64: enable CONFIG_USB_SERIAL_PL2303
  2021-03-29  7:15 [PATCH] MIPS: Loongson64: enable CONFIG_USB_SERIAL_PL2303 Qing Zhang
@ 2021-03-29  9:27 ` Thomas Bogendoerfer
  2021-03-30  1:48 ` Jiaxun Yang
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Bogendoerfer @ 2021-03-29  9:27 UTC (permalink / raw)
  To: Qing Zhang; +Cc: Jiaxun Yang, Huacai Chen, linux-mips, linux-kernel

On Mon, Mar 29, 2021 at 03:15:58PM +0800, Qing Zhang wrote:
> When using the Loongson-3A4000 machine for serial port debugging,
> there is no /dev/ttyUSB* output, which makes the serial port unavailable,
> For convenience, we open this configuration.
> 
> zhangqing@loongson-pc:~$ cat /sys/firmware/lefi/boardinfo
> Board Info
> Manufacturer		: THTF
> Board Name		: THTF-LS3A4000-7A1000-ML4A
> Family			: LOONGSON3
> 
> BIOS Info
> Vendor			: ZD tech
> Version			: ZD tech-V2.1.1
> ROM Size		: 4 KB
> Release Date		: 2020-06-29
> 
> zhangqing@loongson-pc:~$ lsusb
> Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> Bus 005 Device 003: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
> Bus 005 Device 002: ID 0c45:760b Microdia USB Keyboard
> Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 003 Device 003: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
> Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> 
> Signed-off-by: Qing Zhang <zhangqing@loongson.cn>
> ---
>  arch/mips/configs/loongson3_defconfig | 1 +
>  1 file changed, 1 insertion(+)

applied to mips-next.

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] MIPS: Loongson64: enable CONFIG_USB_SERIAL_PL2303
  2021-03-29  7:15 [PATCH] MIPS: Loongson64: enable CONFIG_USB_SERIAL_PL2303 Qing Zhang
  2021-03-29  9:27 ` Thomas Bogendoerfer
@ 2021-03-30  1:48 ` Jiaxun Yang
  2021-03-30  2:35   ` zhangqing
  1 sibling, 1 reply; 4+ messages in thread
From: Jiaxun Yang @ 2021-03-30  1:48 UTC (permalink / raw)
  To: Qing Zhang, Thomas Bogendoerfer; +Cc: Huacai Chen, linux-mips, linux-kernel



On Mon, Mar 29, 2021, at 3:15 PM, Qing Zhang wrote:
> When using the Loongson-3A4000 machine for serial port debugging,
> there is no /dev/ttyUSB* output, which makes the serial port unavailable,
> For convenience, we open this configuration.
> 
> zhangqing@loongson-pc:~$ cat /sys/firmware/lefi/boardinfo
> Board Info
> Manufacturer		: THTF
> Board Name		: THTF-LS3A4000-7A1000-ML4A
> Family			: LOONGSON3
> 
> BIOS Info
> Vendor			: ZD tech
> Version			: ZD tech-V2.1.1
> ROM Size		: 4 KB
> Release Date		: 2020-06-29
> 
> zhangqing@loongson-pc:~$ lsusb
> Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> Bus 005 Device 003: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
> Bus 005 Device 002: ID 0c45:760b Microdia USB Keyboard
> Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 003 Device 003: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
> Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> 
> Signed-off-by: Qing Zhang <zhangqing@loongson.cn>

Please, don't add random stuff to defconfig.
Carry it locally in your config as the device doesn't come with the borad, it's your accessory.

Thanks.

-- 
- Jiaxun

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] MIPS: Loongson64: enable CONFIG_USB_SERIAL_PL2303
  2021-03-30  1:48 ` Jiaxun Yang
@ 2021-03-30  2:35   ` zhangqing
  0 siblings, 0 replies; 4+ messages in thread
From: zhangqing @ 2021-03-30  2:35 UTC (permalink / raw)
  To: Jiaxun Yang, Thomas Bogendoerfer; +Cc: Huacai Chen, linux-mips, linux-kernel



On 03/30/2021 09:48 AM, Jiaxun Yang wrote:
>
> On Mon, Mar 29, 2021, at 3:15 PM, Qing Zhang wrote:
>> When using the Loongson-3A4000 machine for serial port debugging,
>> there is no /dev/ttyUSB* output, which makes the serial port unavailable,
>> For convenience, we open this configuration.
>>
>> zhangqing@loongson-pc:~$ cat /sys/firmware/lefi/boardinfo
>> Board Info
>> Manufacturer		: THTF
>> Board Name		: THTF-LS3A4000-7A1000-ML4A
>> Family			: LOONGSON3
>>
>> BIOS Info
>> Vendor			: ZD tech
>> Version			: ZD tech-V2.1.1
>> ROM Size		: 4 KB
>> Release Date		: 2020-06-29
>>
>> zhangqing@loongson-pc:~$ lsusb
>> Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
>> Bus 005 Device 003: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
>> Bus 005 Device 002: ID 0c45:760b Microdia USB Keyboard
>> Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>> Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>> Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
>> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>> Bus 003 Device 003: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
>> Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
>>
>> Signed-off-by: Qing Zhang <zhangqing@loongson.cn>
> Please, don't add random stuff to defconfig.
> Carry it locally in your config as the device doesn't come with the borad, it's your accessory.

Hi, jiaxun

Thank you for your reply:-),

PL2303 is a commonly used accessory,

I see that other platforms are turned on by default, so I also enabled it.

eg:

arch/powerpc/configs/g5_defconfig:191:CONFIG_USB_SERIAL_PL2303=m
arch/powerpc/configs/ppc6xx_defconfig:902:CONFIG_USB_SERIAL_PL2303=m
arch/mips/configs/rm200_defconfig:310:CONFIG_USB_SERIAL_PL2303=m
arch/mips/configs/loongson3_defconfig:323:CONFIG_USB_SERIAL_PL2303=m
arch/mips/configs/mtx1_defconfig:559:CONFIG_USB_SERIAL_PL2303=m
arch/mips/configs/pistachio_defconfig:240:CONFIG_USB_SERIAL_PL2303=m
arch/mips/configs/loongson1c_defconfig:88:CONFIG_USB_SERIAL_PL2303=m
arch/mips/configs/loongson1b_defconfig:87:CONFIG_USB_SERIAL_PL2303=m
arch/arm/configs/spitz_defconfig:183:CONFIG_USB_SERIAL_PL2303=m
arch/arm/configs/s3c2410_defconfig:323:CONFIG_USB_SERIAL_PL2303=y
arch/arm/configs/omap2plus_defconfig:430:CONFIG_USB_SERIAL_PL2303=m
arch/arm/configs/at91_dt_defconfig:166:CONFIG_USB_SERIAL_PL2303=y
arch/arm/configs/s3c6400_defconfig:57:CONFIG_USB_SERIAL_PL2303=m
arch/arm/configs/corgi_defconfig:189:CONFIG_USB_SERIAL_PL2303=m
arch/arm/configs/sama5_defconfig:183:CONFIG_USB_SERIAL_PL2303=y
arch/arm/configs/pxa_defconfig:572:CONFIG_USB_SERIAL_PL2303=m
arch/arm/configs/ep93xx_defconfig:101:CONFIG_USB_SERIAL_PL2303=y
arch/arm/configs/omap1_defconfig:185:CONFIG_USB_SERIAL_PL2303=y
arch/arm/configs/badge4_defconfig:90:CONFIG_USB_SERIAL_PL2303=m
arch/sh/configs/landisk_defconfig:91:CONFIG_USB_SERIAL_PL2303=m
arch/sh/configs/titan_defconfig:218:CONFIG_USB_SERIAL_PL2303=m

Thanks,

Qing

>
> Thanks.
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-03-30  2:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-29  7:15 [PATCH] MIPS: Loongson64: enable CONFIG_USB_SERIAL_PL2303 Qing Zhang
2021-03-29  9:27 ` Thomas Bogendoerfer
2021-03-30  1:48 ` Jiaxun Yang
2021-03-30  2:35   ` zhangqing

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.