wifi: mt76: mt7915: fallback to non-wed mode if platform_get_resource fails in mt7915...
authorLorenzo Bianconi <lorenzo@kernel.org>
Fri, 20 Oct 2023 10:45:19 +0000 (12:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jan 2024 23:35:23 +0000 (15:35 -0800)
commit5e22c8a0417348df8de351bd8b4836bcccb9cc7f
tree3a33645ce8ff0b5d90aa748c4affdda3ecc325c5
parentb9b61d159006c9307eae8d3ca61feb3053b0e6ff
wifi: mt76: mt7915: fallback to non-wed mode if platform_get_resource fails in mt7915_mmio_wed_init()

[ Upstream commit 5f9d5d4fc561e7bd3a18742f1fdb96cab98f1870 ]

mt76 assumes mt7915_mmio_wed_init can fail just after wed driver has
been attached running mtk_wed_device_attach().
Fall back to non-wed mode if platform_get_resource fails in
mt7915_mmio_wed_init routines.

Fixes: eebb70976be5 ("wifi: mt76: mt7915: enable wed for mt7986-wmac chipset")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mt7915/mmio.c