|
@@ -74,6 +74,7 @@ static void realtek_spi_open_bit ( struct bit_basher *basher ) {
|
74
|
74
|
|
75
|
75
|
/* Enable EEPROM access */
|
76
|
76
|
writeb ( RTL_9346CR_EEM_EEPROM, rtl->regs + RTL_9346CR );
|
|
77
|
+ readb ( rtl->regs + RTL_9346CR ); /* Ensure write reaches chip */
|
77
|
78
|
}
|
78
|
79
|
|
79
|
80
|
/**
|
|
@@ -87,6 +88,7 @@ static void realtek_spi_close_bit ( struct bit_basher *basher ) {
|
87
|
88
|
|
88
|
89
|
/* Disable EEPROM access */
|
89
|
90
|
writeb ( RTL_9346CR_EEM_NORMAL, rtl->regs + RTL_9346CR );
|
|
91
|
+ readb ( rtl->regs + RTL_9346CR ); /* Ensure write reaches chip */
|
90
|
92
|
}
|
91
|
93
|
|
92
|
94
|
/**
|
|
@@ -129,6 +131,7 @@ static void realtek_spi_write_bit ( struct bit_basher *basher,
|
129
|
131
|
reg &= ~mask;
|
130
|
132
|
reg |= ( data & mask );
|
131
|
133
|
writeb ( reg, rtl->regs + RTL_9346CR );
|
|
134
|
+ readb ( rtl->regs + RTL_9346CR ); /* Ensure write reaches chip */
|
132
|
135
|
DBG_ENABLE ( DBGLVL_IO );
|
133
|
136
|
}
|
134
|
137
|
|