usb: host: fotg210: fix the actual_length of an iso packet
authorKelly Devilliv <kelly.devilliv@gmail.com>
Sun, 27 Jun 2021 12:57:47 +0000 (20:57 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Sep 2021 11:40:19 +0000 (13:40 +0200)
commit566ddd2d94b099792a02ca44fffb657ea3fd59c6
tree086e5f568a7cdfab91ac4dc6b5f1bbf5d6a48f75
parent224cf5e8c853691f92e984f3e6e399479793e2bf
usb: host: fotg210: fix the actual_length of an iso packet

[ Upstream commit 091cb2f782f32ab68c6f5f326d7868683d3d4875 ]

We should acquire the actual_length of an iso packet
from the iTD directly using FOTG210_ITD_LENGTH() macro.

Signed-off-by: Kelly Devilliv <kelly.devilliv@gmail.com>
Link: https://lore.kernel.org/r/20210627125747.127646-4-kelly.devilliv@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/host/fotg210-hcd.c
drivers/usb/host/fotg210.h