mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 13:27:06 +09:00
spi:modify spi drivers, add wait_busy after write
This commit is contained in:
@@ -799,14 +799,15 @@ static int do_transfer(struct rk2818_spi *dws)
|
||||
if (dws->tx) {
|
||||
do_write(dws);
|
||||
}
|
||||
wait_till_tf_empty(dws);
|
||||
wait_till_not_busy(dws);
|
||||
do_read(dws);
|
||||
}
|
||||
else {
|
||||
do_write(dws);
|
||||
wait_till_tf_empty(dws);
|
||||
wait_till_not_busy(dws);
|
||||
}
|
||||
|
||||
wait_till_tf_empty(dws);
|
||||
wait_till_not_busy(dws);
|
||||
|
||||
dws->cur_msg->actual_length += dws->len;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user