diff options
author | Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> | 2016-05-02 10:16:43 +0530 |
---|---|---|
committer | Alexey Kardashevskiy <aik@ozlabs.ru> | 2016-05-02 16:44:44 +1000 |
commit | 72f9ffdcc286c90411c1b5bda38d11060e47024e (patch) | |
tree | c6ad9ef5272dc99ac4423e629878747a5afc55dc /lib | |
parent | 3987191db550fcd97faf1ee031a6f2c9d51464e8 (diff) | |
download | SLOF-72f9ffdcc286c90411c1b5bda38d11060e47024e.zip SLOF-72f9ffdcc286c90411c1b5bda38d11060e47024e.tar.gz SLOF-72f9ffdcc286c90411c1b5bda38d11060e47024e.tar.bz2 |
xhci: add memory barrier after filling the trb
A memory barrier was missing after updating the trb details.
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libusb/usb-xhci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libusb/usb-xhci.c b/lib/libusb/usb-xhci.c index 858cd12..070c2ef 100644 --- a/lib/libusb/usb-xhci.c +++ b/lib/libusb/usb-xhci.c @@ -973,6 +973,7 @@ static void fill_trb_buff(struct xhci_command_trb *cmd, uint32_t field1, cycle_state = (val & 0x1) ? 0 : 1; val = cycle_state | (field4 & ~0x1); cmd->field[3] = cpu_to_le32(val); + mb(); dprintf("CMD %016lx val %08x cycle_state %d field1 %08x, field2 %08x, field3 %08x field4 %08x\n", cmd, val, cycle_state, |