Searched hist:"1 bee64cb36b365e298e6ae73ef4ea08f68a1e2c2" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/usb/host/ |
| H A D | ehci-hcd.c | 1bee64cb36b365e298e6ae73ef4ea08f68a1e2c2 Fri Nov 17 14:28:36 UTC 2017 Dirk Behme <dirk.behme@gmail.com> UPSTREAM: usb: ehci: do not invalidate a NULL buffer
Its a valid use case to call ehci_submit_async() with a NULL buffer with length 0. E.g. from usb_set_configuration().
As invalidate_dcache_range() isn't able to judge if the address NULL is valid or not (depending on the SoC hardware configuration it might be valid) do the check in ehci_submit_async() as here we know that we don't have to invalidate such a buffer.
Change-Id: If8d1ee336c3123356138551ed4cbb556e26bf4ed Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit b3cbcd902db7019410dfe3729a660abcb1f03ffb)
|