mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 22:20:45 +00:00
ohci: Add missing cache-flush for hcca area
We need to cache-flush the hcca area after the initial memset, otherwise on the first hc_interrupt we might see an old $random value as done_head and try to interpret that as the address for a completed td (followed by chaos). Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
f5fb78a274
commit
b748b24fb5
1 changed files with 1 additions and 0 deletions
|
@ -2205,6 +2205,7 @@ int ohci_register(struct udevice *dev, struct ohci_regs *regs)
|
|||
if (!ohci->hcca)
|
||||
return -ENOMEM;
|
||||
memset(ohci->hcca, 0, sizeof(struct ohci_hcca));
|
||||
flush_dcache_hcca(ohci->hcca);
|
||||
|
||||
if (hc_reset(ohci) < 0)
|
||||
return -EIO;
|
||||
|
|
Loading…
Reference in a new issue