mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: improve mcu error logging
Dump mcu command code in hex and related prefix to help debugging Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
459940ccbc
commit
0a094b11f3
+2
-3
@@ -21,9 +21,8 @@ mt7603_mcu_parse_response(struct mt76_dev *mdev, int cmd,
|
||||
struct mt7603_mcu_rxd *rxd;
|
||||
|
||||
if (!skb) {
|
||||
dev_err(mdev->dev,
|
||||
"MCU message %d (seq %d) timed out\n",
|
||||
cmd, seq);
|
||||
dev_err(mdev->dev, "MCU message %02x (seq %d) timed out\n",
|
||||
abs(cmd), seq);
|
||||
dev->mcu_hang = MT7603_WATCHDOG_TIMEOUT;
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
|
||||
+2
-2
@@ -175,8 +175,8 @@ int mt7615_mcu_parse_response(struct mt76_dev *mdev, int cmd,
|
||||
int ret = 0;
|
||||
|
||||
if (!skb) {
|
||||
dev_err(mdev->dev, "Message %ld (seq %d) timeout\n",
|
||||
cmd & MCU_CMD_MASK, seq);
|
||||
dev_err(mdev->dev, "Message %08x (seq %d) timeout\n",
|
||||
cmd, seq);
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
|
||||
|
||||
+2
-3
@@ -17,9 +17,8 @@ int mt76x02_mcu_parse_response(struct mt76_dev *mdev, int cmd,
|
||||
u32 *rxfce;
|
||||
|
||||
if (!skb) {
|
||||
dev_err(mdev->dev,
|
||||
"MCU message %d (seq %d) timed out\n", cmd,
|
||||
seq);
|
||||
dev_err(mdev->dev, "MCU message %02x (seq %d) timed out\n",
|
||||
abs(cmd), seq);
|
||||
dev->mcu_timeout = 1;
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
|
||||
+1
-1
@@ -217,7 +217,7 @@ mt7915_mcu_parse_response(struct mt76_dev *mdev, int cmd,
|
||||
int ret = 0;
|
||||
|
||||
if (!skb) {
|
||||
dev_err(mdev->dev, "Message %d (seq %d) timeout\n",
|
||||
dev_err(mdev->dev, "Message %08x (seq %d) timeout\n",
|
||||
cmd, seq);
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
|
||||
+1
-1
@@ -160,7 +160,7 @@ mt7921_mcu_parse_response(struct mt76_dev *mdev, int cmd,
|
||||
int ret = 0;
|
||||
|
||||
if (!skb) {
|
||||
dev_err(mdev->dev, "Message %d (seq %d) timeout\n",
|
||||
dev_err(mdev->dev, "Message %08x (seq %d) timeout\n",
|
||||
cmd, seq);
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user