mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 04:52:02 +08:00
@@ -2303,7 +2303,6 @@ static int sam_sendsetup(struct sdio_dev_s *dev,
|
||||
* in order to avoid a TX data underrun.
|
||||
*/
|
||||
|
||||
sched_lock();
|
||||
flags = enter_critical_section();
|
||||
|
||||
nwords = (buflen + 3) >> 2;
|
||||
@@ -2320,7 +2319,6 @@ static int sam_sendsetup(struct sdio_dev_s *dev,
|
||||
|
||||
lcderr("ERROR: sr %08" PRIx32 "\n", sr);
|
||||
leave_critical_section(flags);
|
||||
sched_unlock();
|
||||
return -EIO;
|
||||
}
|
||||
else if ((sr & HSMCI_INT_TXRDY) != 0)
|
||||
@@ -2333,7 +2331,6 @@ static int sam_sendsetup(struct sdio_dev_s *dev,
|
||||
}
|
||||
|
||||
leave_critical_section(flags);
|
||||
sched_unlock();
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -2331,7 +2331,6 @@ static int sam_sendsetup(struct sdio_dev_s *dev,
|
||||
* in order to avoid a TX data underrun.
|
||||
*/
|
||||
|
||||
sched_lock();
|
||||
flags = enter_critical_section();
|
||||
|
||||
src = (const uint32_t *)buffer;
|
||||
@@ -2348,7 +2347,6 @@ static int sam_sendsetup(struct sdio_dev_s *dev,
|
||||
|
||||
mcerr("ERROR: sr %08" PRIx32 "\n", sr);
|
||||
leave_critical_section(flags);
|
||||
sched_unlock();
|
||||
return -EIO;
|
||||
}
|
||||
else if ((sr & HSMCI_INT_TXRDY) != 0)
|
||||
@@ -2406,7 +2404,6 @@ static int sam_sendsetup(struct sdio_dev_s *dev,
|
||||
}
|
||||
|
||||
leave_critical_section(flags);
|
||||
sched_unlock();
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user