|
@@ -2551,12 +2551,12 @@ done:
|
|
|
timeout = 5 * 1000;
|
|
|
while (atomic_read(&vc->scq->used) > 0) {
|
|
|
timeout = msleep_interruptible(timeout);
|
|
|
- if (!timeout)
|
|
|
+ if (!timeout) {
|
|
|
+ pr_warn("%s: SCQ drain timeout: %u used\n",
|
|
|
+ card->name, atomic_read(&vc->scq->used));
|
|
|
break;
|
|
|
+ }
|
|
|
}
|
|
|
- if (!timeout)
|
|
|
- printk("%s: SCQ drain timeout: %u used\n",
|
|
|
- card->name, atomic_read(&vc->scq->used));
|
|
|
|
|
|
writel(TCMDQ_HALT | vc->index, SAR_REG_TCMDQ);
|
|
|
clear_scd(card, vc->scq, vc->class);
|