fix - 修改xradio_hwio_write()在等待可读时的睡眠时间时误删除超时时间的设置
This commit is contained in:
parent
e68815c36c
commit
7cc0d60f89
|
@ -98,6 +98,7 @@ int xradio_hwio_write(struct sk_buff *skb)
|
||||||
}
|
}
|
||||||
|
|
||||||
// wait dev enter read state(gpio == 1)
|
// wait dev enter read state(gpio == 1)
|
||||||
|
delay = jiffies + IO_WAIT_TIME_S * HZ;
|
||||||
while (!ops->read_rw_gpio()) {
|
while (!ops->read_rw_gpio()) {
|
||||||
if (time_after(jiffies, delay)) {
|
if (time_after(jiffies, delay)) {
|
||||||
hwio_printk(XRADIO_DBG_ERROR, "write data wait dev read state faild\n");
|
hwio_printk(XRADIO_DBG_ERROR, "write data wait dev read state faild\n");
|
||||||
|
|
Loading…
Reference in New Issue