]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
fotg210-udc: Fix EP0 IN requests bigger than two packets
authorFabian Vogt <fabian@ritter-vogt.de>
Wed, 24 Mar 2021 14:11:10 +0000 (15:11 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 26 May 2021 13:39:10 +0000 (15:39 +0200)
commit6a43e5a5311d220cd880628e82eec2e6a454be64
treece8a573d3126dd3416339b93265d60790ec75524
parent18a9ae29d92491fa1411cb44f1c7cc330099ac92
fotg210-udc: Fix EP0 IN requests bigger than two packets

BugLink: https://bugs.launchpad.net/bugs/1929615
[ Upstream commit 078ba935651e149c92c41161e0322e3372cc2705 ]

For a 134 Byte packet, it sends the first two 64 Byte packets just fine,
but then notice that less than a packet is remaining and call fotg210_done
without actually sending the rest.

Fixes: b84a8dee23fd ("usb: gadget: add Faraday fotg210_udc driver")
Signed-off-by: Fabian Vogt <fabian@ritter-vogt.de>
Link: https://lore.kernel.org/r/20210324141115.9384-3-fabian@ritter-vogt.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/usb/gadget/udc/fotg210-udc.c