Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Aug 2020 17:02:29 +0000
From:      GARG Shivam <shivam.garg@thalesgroup.com>
To:        Hans Petter Selasky <hps@selasky.org>, "freebsd-usb@freebsd.org" <freebsd-usb@freebsd.org>
Subject:   RE: Gadget serial driver support addition
Message-ID:  <MRXP264MB0904869BAD916B3241968545F8570@MRXP264MB0904.FRAP264.PROD.OUTLOOK.COM>
In-Reply-To: <6ea2f654-bea8-993d-f815-fe75500b643c@selasky.org>
References:  <MRXP264MB090413682FAAEFD5292AFF7BF85B0@MRXP264MB0904.FRAP264.PROD.OUTLOOK.COM> <254501b3-79fa-edaa-1b49-08b0132e86a6@selasky.org> <MRXP264MB09045AF58CE881047B7D6190F8560@MRXP264MB0904.FRAP264.PROD.OUTLOOK.COM> <MRXP264MB0904DB02E744CC7422454EB9F8570@MRXP264MB0904.FRAP264.PROD.OUTLOOK.COM> <6ea2f654-bea8-993d-f815-fe75500b643c@selasky.org>

index | next in thread | previous in thread | raw e-mail

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@selasky.org> 
Sent: Tuesday, August 25, 2020 10:06 PM
To: GARG Shivam <shivam.garg@thalesgroup.com>; freebsd-usb@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

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?MRXP264MB0904869BAD916B3241968545F8570>