]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: gadget: Ignore Packet Pending bit
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Tue, 13 Apr 2021 03:00:45 +0000 (20:00 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Apr 2021 13:57:44 +0000 (15:57 +0200)
commita71bd6c5706fb337eaf9b761341fcd2053219300
treebde26f81cf9c874aee323e87fe87aa5a64cb3866
parent193475102fccadf44b4d6e31b430025e711e7183
usb: dwc3: gadget: Ignore Packet Pending bit

Currently the controller handles single stream only. So, Ignore Packet
Pending bit for stream selection and don't search for another stream if
the host sends Data Packet with PP=0 (for OUT direction) or ACK with
NumP=0 and PP=0 (for IN direction). This slightly improves the stream
performance.

Acked-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/097ba9e104c143f7ba0195ebff29390ec3043692.1618282705.git.Thinh.Nguyen@synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.c