]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
usb: ohci: Do not reuse ed for interrupt endpoints of different devices
authorHans de Goede <hdegoede@redhat.com>
Wed, 13 May 2015 12:42:15 +0000 (14:42 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:39:40 +0000 (22:39 +0200)
commit37d83f2b00c25cdab60145fce74f72ffbc911a1b
tree0f8bc2129a2f4631b0a5874255202769589b5274
parentf82b985c6f7ab38f305f648e10d786285246984b
usb: ohci: Do not reuse ed for interrupt endpoints of different devices

When submitting interrupt packets to an endpoint we only link in the ed
once to avoid some races surrounding unlinking of periodic endpoints,
but we share one ohci_device struct / one set of ed-s for all devices,
which means that if we have an interrupt endpoint at endpoint 1 with one
device, and a non interrupt endpoint 1 with another device we end up
with the same ed linked into both the periodic and async lists, which is
not good (tm).

This commit switches over to using separate ohci_device structs, and thus
separate ed-s for devices with interrupt endpoints, fixing this.

This fixes e.g. matching a usb storage device and keyboard on the same
usb-1 hub not working.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Marek Vasut <marex@denx.de>
drivers/usb/host/ohci-hcd.c
drivers/usb/host/ohci.h