]> Pileus Git - ~andy/linux/commit
usb: renesas_usbhs: host: add endpoint user counter
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 6 Nov 2012 08:11:53 +0000 (00:11 -0800)
committerFelipe Balbi <balbi@ti.com>
Tue, 6 Nov 2012 13:04:28 +0000 (15:04 +0200)
commit7b332e5fef480ee14d133d9b83af22d03819368e
treed9720f428f53b4038de082815e0089f7e0c250a2
parent24e4c1c30da3926db547aab4ec873afdc60bd3ee
usb: renesas_usbhs: host: add endpoint user counter

renesas_usbhs attaches pipe to endpoint when urb was queued, and it will be
detached when transfer was done.  Multi device controlling was enabled by this
behavior.

Now renesas_usbhs driver tried to wait until detaching if urb was queued to
endpoint which already has been attached to pipe, and it created strange driver
behavior.

But it can re-use this attached pipe if multi urb was queued.  This patch
implements it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/renesas_usbhs/mod_host.c