mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
firewire: fw-ohci: flush MMIO write before msleep
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
This commit is contained in:
parent
5bae7ac9fe
commit
362e901c65
1 changed files with 1 additions and 0 deletions
|
@ -224,6 +224,7 @@ ohci_update_phy_reg(struct fw_card *card, int addr,
|
||||||
u32 val, old;
|
u32 val, old;
|
||||||
|
|
||||||
reg_write(ohci, OHCI1394_PhyControl, OHCI1394_PhyControl_Read(addr));
|
reg_write(ohci, OHCI1394_PhyControl, OHCI1394_PhyControl_Read(addr));
|
||||||
|
flush_writes(ohci);
|
||||||
msleep(2);
|
msleep(2);
|
||||||
val = reg_read(ohci, OHCI1394_PhyControl);
|
val = reg_read(ohci, OHCI1394_PhyControl);
|
||||||
if ((val & OHCI1394_PhyControl_ReadDone) == 0) {
|
if ((val & OHCI1394_PhyControl_ReadDone) == 0) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue