]> git.baikalelectronics.ru Git - kernel.git/commit
mt76: mt76x0u: do not reset radio on resume
authorStanislaw Gruszka <sgruszka@redhat.com>
Thu, 18 Jul 2019 10:38:10 +0000 (12:38 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 20 Aug 2019 13:57:34 +0000 (16:57 +0300)
commit2e9a1bec2e8bb84ac8b6af8a0a1a7322a40d0e58
tree7b1e885b3d81a1d6a9678be15cbb5a8685c3a844
parent75eaf80f84ebc7588c50189fc3b72bcd0f66e5fc
mt76: mt76x0u: do not reset radio on resume

On some machines mt76x0u firmware can hung during resume,
what result on messages like below:

[  475.480062] mt76x0 1-8:1.0: Error: MCU response pre-completed!
[  475.990066] mt76x0 1-8:1.0: Error: send MCU cmd failed:-110
[  475.990075] mt76x0 1-8:1.0: Error: MCU response pre-completed!
[  476.500003] mt76x0 1-8:1.0: Error: send MCU cmd failed:-110
[  476.500012] mt76x0 1-8:1.0: Error: MCU response pre-completed!
[  477.010046] mt76x0 1-8:1.0: Error: send MCU cmd failed:-110
[  477.010055] mt76x0 1-8:1.0: Error: MCU response pre-completed!
[  477.529997] mt76x0 1-8:1.0: Error: send MCU cmd failed:-110
[  477.530006] mt76x0 1-8:1.0: Error: MCU response pre-completed!
[  477.824907] mt76x0 1-8:1.0: Error: send MCU cmd failed:-71
[  477.824916] mt76x0 1-8:1.0: Error: MCU response pre-completed!
[  477.825029] usb 1-8: USB disconnect, device number 6

and possible whole system freeze.

This can be avoided, if we do not perform mt76x0_chip_onoff() reset.

Cc: stable@vger.kernel.org
Fixes: 4ddd658d6f39 ("mt76x0: init files")
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mediatek/mt76/mt76x0/usb.c