Gadget serial driver support addition

GARG Shivam shivam.garg at thalesgroup.com
Tue Aug 25 17:02:33 UTC 2020


Hi HPS, 

Both of the below option is not working.

My Device is a Linux machine that is having a Gadget Serial driver. Physically device side we have USB-C port while at host side we have USB port.

This device is used as COM port to access the serial port.

My Device side Linux is getting panic as soon as I attached the USB to FreeBSD. Any view on this?

If I stopped the enumeration at FreeBSD using command (sysctl hw.usb.disable_enumeration=1), so device side Linux is stopped crashing.

Can you suggest me some area at device side that might be causing the crash.

Thanks
Shivam



-----Original Message-----
From: Hans Petter Selasky <hps at selasky.org> 
Sent: Tuesday, August 25, 2020 10:06 PM
To: GARG Shivam <shivam.garg at thalesgroup.com>; freebsd-usb at freebsd.org
Subject: Re: Gadget serial driver support addition

On 2020-08-25 18:17, GARG Shivam wrote:
> ugen0.2: <Linux 4.1.8-rt8+gbd51baffc04e with fsl-usb2-udc Gadget Serial v2.4> at usbus0, cfg=255 md=HOST spd=HIGH (480Mbps) pwr=ON (2mA)

I see that something was enumerated.

cfg=255 means the USB host is unable to communicate with the device.

You can try:

usbconfig -d 0.2 set_config 0

--HPS


More information about the freebsd-usb mailing list