From: Lu Date: Mon, 20 May 2024 01:30:45 +0000 (+0800) Subject: xhci: allow trans data on 0x0 X-Git-Tag: accepted/tizen/unified/x/20241031.045847~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7ce2d43f6b495d31328369285c2a9980c934b60b;p=platform%2Fkernel%2Fu-boot-thead.git xhci: allow trans data on 0x0 --- diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c index 93450ee3..3a8a1ffc 100644 --- a/drivers/usb/host/xhci-mem.c +++ b/drivers/usb/host/xhci-mem.c @@ -34,7 +34,10 @@ */ void xhci_flush_cache(uintptr_t addr, u32 len) { - BUG_ON((void *)addr == NULL || len == 0); + // th1520 will load fw_dymaic.bin into 0x0 + // so disable it + // load usb 0:2 0x0 fw_dynamic.bin + //BUG_ON((void *)addr == NULL || len == 0); flush_dcache_range(addr & ~(CACHELINE_SIZE - 1), ALIGN(addr + len, CACHELINE_SIZE)); @@ -49,7 +52,10 @@ void xhci_flush_cache(uintptr_t addr, u32 len) */ void xhci_inval_cache(uintptr_t addr, u32 len) { - BUG_ON((void *)addr == NULL || len == 0); + // th1520 will load fw_dymaic.bin into 0x0 + // so disable it + // load usb 0:2 0x0 fw_dynamic.bin + //BUG_ON((void *)addr == NULL || len == 0); invalidate_dcache_range(addr & ~(CACHELINE_SIZE - 1), ALIGN(addr + len, CACHELINE_SIZE));