Skip to content

Commit 99ea221

Browse files
pawellcdnsgregkh
authored andcommitted
usb: cdnsp: Fix incorrect status for control request
Patch fixes incorrect status for control request. Without this fix all usb_request objects were returned to upper drivers with usb_reqest->status field set to -EINPROGRESS. Fixes: 3d82904 ("usb: cdnsp: cdns3 Add main part of Cadence USBSSP DRD Driver") cc: <stable@vger.kernel.org> Reported-by: Ken (Jian) He <jianhe@ambarella.com> Reviewed-by: Peter Chen <peter.chen@kernel.org> Signed-off-by: Pawel Laszczak <pawell@cadence.com> Link: https://lore.kernel.org/r/20211207091838.39572-1-pawell@gli-login.cadence.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 50931ba commit 99ea221

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/usb/cdns3/cdnsp-ring.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,6 +1029,8 @@ static void cdnsp_process_ctrl_td(struct cdnsp_device *pdev,
10291029
return;
10301030
}
10311031

1032+
*status = 0;
1033+
10321034
cdnsp_finish_td(pdev, td, event, pep, status);
10331035
}
10341036

0 commit comments

Comments
 (0)