mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
IB/ipath: Fix EEPROM read when driver is compiled with -Os
The EEPROM is read via programmable I/O pins. When the driver is compiled -Os, the CPU can speculatively read the I/O value before it is valid. This patch fixes the problem. Signed-off-by: Bryan O'Sullivan <[email protected]> Signed-off-by: Roland Dreier <[email protected]>
This commit is contained in:
parent
89d1e09b6a
commit
1a4e74a087
1 changed files with 1 additions and 0 deletions
|
|
@ -187,6 +187,7 @@ bail:
|
|||
static void i2c_wait_for_writes(struct ipath_devdata *dd)
|
||||
{
|
||||
(void)ipath_read_kreg32(dd, dd->ipath_kregs->kr_scratch);
|
||||
rmb();
|
||||
}
|
||||
|
||||
static void scl_out(struct ipath_devdata *dd, u8 bit)
|
||||
|
|
|
|||
Loading…
Reference in a new issue