|
@@ -41,11 +41,11 @@ static u8 *tx_buf;
|
|
|
|
|
|
static int ack_ready(struct sdio_func *func)
|
|
|
{
|
|
|
- unsigned long start = jiffies;
|
|
|
+ unsigned long wait = jiffies + HZ;
|
|
|
u8 val;
|
|
|
int ret;
|
|
|
|
|
|
- while ((jiffies - start) < HZ) {
|
|
|
+ while (time_before(jiffies, wait)) {
|
|
|
val = sdio_readb(func, 0x13, &ret);
|
|
|
if (val & 0x01)
|
|
|
return 1;
|