]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: gadget: cdns3: Fix missing cache operations for non-zero Endpoints
authorSiddharth Vadapalli <s-vadapalli@ti.com>
Mon, 30 Sep 2024 09:34:07 +0000 (15:04 +0530)
committerTom Rini <trini@konsulko.com>
Mon, 30 Sep 2024 15:08:07 +0000 (09:08 -0600)
commit17da9795c115dcfac49338ea044fa9413f5d0763
tree8fd7b5f193772f23971497e69f84cc74231ceb42
parent37c1cb8c88c38ba699d7cabf536bdd980c7f5475
usb: gadget: cdns3: Fix missing cache operations for non-zero Endpoints

Transfer initiation and completion for the non-zero Endpoints are
handled by cdns3_ep_run_transfer() and cdns3_transfer_completed()
respectively.

Failing to flush the cache associated with the TRB Pool within
cdns3_ep_run_transfer() results in the transfers never being initiated.
Similarly, failing to invalidate the cache associated with the TRB pool
within cdns3_transfer_completed() results in the transfers never being
completed.

Fix this.

Fixes: 7e91f6ccdc84 ("usb: Add Cadence USB3 host and gadget driver")
Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Reviewed-by: Marek Vasut <marex@denx.de>
drivers/usb/cdns3/gadget.c