summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/atom.c
diff options
context:
space:
mode:
authorXu Yang <xu.yang_2@nxp.com>2024-09-26 10:29:05 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-10-04 15:14:09 +0200
commitb8c7f7e1884e701df977a315519739c98488345c (patch)
tree4f1c0e8e923f196d1aab00737b8d5c76747c7bae /drivers/gpu/drm/amd/amdgpu/atom.c
parent548f48b66c0c5d4b9795a55f304b7298cde2a025 (diff)
usb: chipidea: udc: improve dTD link logic
Currently, ATDTW semaphore is used to safety link new dTD to dQH. But this code has a bug when the endpoint is already in error before polling ATDTW or just met error during polling ATDTW. In that cases, ATDTW will never turn to 1 and the cpu will busy loop there. When the endpoint met error, ENDPTSTAT will be cleared by HW. Therefore, ENDPTSTAT should also be considered during this process. In case of endpoint error, the current dTD should not be pushed to the head of dQH since some dTDs may be still not executed. Therefore, the link logic is also improved accordingly. Signed-off-by: Xu Yang <xu.yang_2@nxp.com> Acked-by: Peter Chen <peter.chen@kernel.org> Link: https://lore.kernel.org/r/20240926022906.473319-2-xu.yang_2@nxp.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/atom.c')
0 files changed, 0 insertions, 0 deletions