diff options
-rw-r--r-- | drivers/net/wireless/iwlwifi/pcie/tx.c | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/drivers/net/wireless/iwlwifi/pcie/tx.c b/drivers/net/wireless/iwlwifi/pcie/tx.c index ff977b083411..a4ef5cc11100 100644 --- a/drivers/net/wireless/iwlwifi/pcie/tx.c +++ b/drivers/net/wireless/iwlwifi/pcie/tx.c | |||
@@ -1542,30 +1542,24 @@ static int iwl_pcie_send_hcmd_sync(struct iwl_trans *trans, | |||
1542 | } | 1542 | } |
1543 | 1543 | ||
1544 | if (!ret) { | 1544 | if (!ret) { |
1545 | if (test_bit(STATUS_HCMD_ACTIVE, &trans_pcie->status)) { | 1545 | struct iwl_txq *txq = &trans_pcie->txq[trans_pcie->cmd_queue]; |
1546 | struct iwl_txq *txq = | 1546 | struct iwl_queue *q = &txq->q; |
1547 | &trans_pcie->txq[trans_pcie->cmd_queue]; | ||
1548 | struct iwl_queue *q = &txq->q; | ||
1549 | 1547 | ||
1550 | IWL_ERR(trans, | 1548 | IWL_ERR(trans, "Error sending %s: time out after %dms.\n", |
1551 | "Error sending %s: time out after %dms.\n", | 1549 | get_cmd_string(trans_pcie, cmd->id), |
1552 | get_cmd_string(trans_pcie, cmd->id), | 1550 | jiffies_to_msecs(HOST_COMPLETE_TIMEOUT)); |
1553 | jiffies_to_msecs(HOST_COMPLETE_TIMEOUT)); | ||
1554 | 1551 | ||
1555 | IWL_ERR(trans, | 1552 | IWL_ERR(trans, "Current CMD queue read_ptr %d write_ptr %d\n", |
1556 | "Current CMD queue read_ptr %d write_ptr %d\n", | 1553 | q->read_ptr, q->write_ptr); |
1557 | q->read_ptr, q->write_ptr); | ||
1558 | 1554 | ||
1559 | clear_bit(STATUS_HCMD_ACTIVE, &trans_pcie->status); | 1555 | clear_bit(STATUS_HCMD_ACTIVE, &trans_pcie->status); |
1560 | IWL_DEBUG_INFO(trans, | 1556 | IWL_DEBUG_INFO(trans, "Clearing HCMD_ACTIVE for command %s\n", |
1561 | "Clearing HCMD_ACTIVE for command %s\n", | 1557 | get_cmd_string(trans_pcie, cmd->id)); |
1562 | get_cmd_string(trans_pcie, cmd->id)); | 1558 | ret = -ETIMEDOUT; |
1563 | ret = -ETIMEDOUT; | ||
1564 | 1559 | ||
1565 | iwl_nic_error(trans); | 1560 | iwl_nic_error(trans); |
1566 | 1561 | ||
1567 | goto cancel; | 1562 | goto cancel; |
1568 | } | ||
1569 | } | 1563 | } |
1570 | 1564 | ||
1571 | if (test_bit(STATUS_FW_ERROR, &trans_pcie->status)) { | 1565 | if (test_bit(STATUS_FW_ERROR, &trans_pcie->status)) { |