]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: renesas_usbhs: each pipe hold maxpacket size
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 11 Oct 2011 05:00:42 +0000 (22:00 -0700)
committerFelipe Balbi <balbi@ti.com>
Thu, 13 Oct 2011 17:41:32 +0000 (20:41 +0300)
commit807e5ae122b61399fc25e7ae359af6f2596de3f1
treeb47921653186127abf2ea24e538f2cb9fb95370f
parent073f554a1520c5770a3e88381ae74c4aa551bd8a
usb: gadget: renesas_usbhs: each pipe hold maxpacket size

Current renesas_usbhs pipe accessed DCPMAXP/PIPEMAXP register
to get own maxpacket size every time.
But maxpacket size isn't changed after pipe start,
and register access is too slow.

This patch adds new maxp variable to keep own maxpacket.
And un-used function are removed.

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