mt76: mt7921: always wake device if necessary in debugfs
authorLorenzo Bianconi <lorenzo@kernel.org>
Wed, 18 Aug 2021 08:20:57 +0000 (10:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 18:16:37 +0000 (19:16 +0100)
commit2c9e98bca4a5aa4119231e3a7fa7154179518cbe
treec5e2ee6f02181b24ccd8bb53c5267de88344738e
parent8ed4d081f2eb1b91acf9b3ce6794188111d45be8
mt76: mt7921: always wake device if necessary in debugfs

[ Upstream commit 569008744178b672ea3ad9047fa3098f1b73ca55 ]

Add missing device wakeup in debugfs code if we are accessing chip
registers.

Fixes: 1d8efc741df8 ("mt76: mt7921: introduce Runtime PM support")
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/mt7921/debugfs.c