aboutsummaryrefslogtreecommitdiff
path: root/lib/libusb/usb-xhci.c
diff options
context:
space:
mode:
authorNikunj A Dadhania <nikunj@linux.vnet.ibm.com>2016-05-02 10:16:43 +0530
committerAlexey Kardashevskiy <aik@ozlabs.ru>2016-05-02 16:44:44 +1000
commit72f9ffdcc286c90411c1b5bda38d11060e47024e (patch)
treec6ad9ef5272dc99ac4423e629878747a5afc55dc /lib/libusb/usb-xhci.c
parent3987191db550fcd97faf1ee031a6f2c9d51464e8 (diff)
downloadSLOF-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/libusb/usb-xhci.c')
-rw-r--r--lib/libusb/usb-xhci.c1
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,