fix - 修改xradio_hwio_write()在等待可读时的睡眠时间时误删除超时时间的设置

This commit is contained in:
罗启宏 2025-04-18 15:16:10 +08:00
parent e68815c36c
commit 7cc0d60f89
1 changed files with 1 additions and 0 deletions

View File

@ -98,6 +98,7 @@ int xradio_hwio_write(struct sk_buff *skb)
}
// wait dev enter read state(gpio == 1)
delay = jiffies + IO_WAIT_TIME_S * HZ;
while (!ops->read_rw_gpio()) {
if (time_after(jiffies, delay)) {
hwio_printk(XRADIO_DBG_ERROR, "write data wait dev read state faild\n");