Re: [PATCH] USB: host: hub: increase delay after device removal

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 17, 2018 at 06:19:32PM +0200, Christoph Fritz wrote:
> Hi Sascha
> 
> On Mon, 2017-01-09 at 09:38 +0100, Sascha Hauer wrote:
> > Hi Christoph,
> > 
> barebox:/ usb
> usb: USB: scanning bus for devices...
> usb: Bus 001 Device 001: ID 0000:0000 EHCI Host Controller
> usb-hub usb1: hub_port_reset: resetting port 0...
> usb-hub usb1: portstatus 503, change 10, 480 Mb/s
> usb-hub usb1: STAT_C_CONNECTION = 0 STAT_CONNECTION = 1  USB_PORT_STAT_ENABLE 1
> usb-hub usb1: hub_port_reset: resetting port 0...
> usb-hub usb1: portstatus 503, change 10, 480 Mb/s
> usb-hub usb1: STAT_C_CONNECTION = 0 STAT_CONNECTION = 1  USB_PORT_STAT_ENABLE 1
> usb: Bus 001 Device 002: ID 04b4:6560
> usb-hub usb1-0: hub_port_reset: resetting port 2...
> usb-hub usb1-0: portstatus 103, change 10, 12 Mb/s
> usb-hub usb1-0: STAT_C_CONNECTION = 0 STAT_CONNECTION = 1  USB_PORT_STAT_ENABLE 1
> usb-hub usb1-0: hub_port_reset: resetting port 2...
> usb-hub usb1-0: portstatus 103, change 10, 12 Mb/s
> usb-hub usb1-0: STAT_C_CONNECTION = 0 STAT_CONNECTION = 1  USB_PORT_STAT_ENABLE 1
> usb: Bus 001 Device 003: ID 10c4:ea60 CP2104 USB to UART Bridge Contr
> usb: 3 USB Device(s) found
> 
> # now disconnect the USB device:
> 
> barebox:/ usb
> usb: USB: scanning bus for devices...
> usb1-0-0-2: removed
> usb: 4 USB Device(s) found
> 
> # 4 USB Devices seems wrong, now connect the USB device again:
> 
> barebox@:/ usb
> usb: USB: scanning bus for devices...
> usb-hub usb1-0-0: hub_port_reset: resetting port 2...
> usb-hub usb1-0-0: portstatus 103, change 10, 12 Mb/s
> usb-hub usb1-0-0: STAT_C_CONNECTION = 0 STAT_CONNECTION = 1  USB_PORT_STAT_ENABLE 1
> usb: 4 USB Device(s) found
> 
> # still 4 USB Devices found, ...?
> # starting 'usb' again hits a NULL pointer dereference:

Disconnecting USB devices during runtime of barebox is not really
supported. We should probably make that clear somewhere. The code is not
prepared for that case and trying to fix it is likely to be a bottomless
pit.

Can you reproduce a problem without removing a device?

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux