|
@@ -571,7 +571,10 @@ static int lbs_thread(void *data)
|
|
netdev_info(dev, "Timeout submitting command 0x%04x\n",
|
|
netdev_info(dev, "Timeout submitting command 0x%04x\n",
|
|
le16_to_cpu(cmdnode->cmdbuf->command));
|
|
le16_to_cpu(cmdnode->cmdbuf->command));
|
|
lbs_complete_command(priv, cmdnode, -ETIMEDOUT);
|
|
lbs_complete_command(priv, cmdnode, -ETIMEDOUT);
|
|
- if (priv->reset_card)
|
|
|
|
|
|
+
|
|
|
|
+ /* Reset card, but only when it isn't in the process
|
|
|
|
+ * of being shutdown anyway. */
|
|
|
|
+ if (!dev->dismantle && priv->reset_card)
|
|
priv->reset_card(priv);
|
|
priv->reset_card(priv);
|
|
}
|
|
}
|
|
priv->cmd_timed_out = 0;
|
|
priv->cmd_timed_out = 0;
|