mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7921s: fix mt7921s_mcu_[fw|drv]_pmctrl
According to the firmware behavior (even the oldest one in linux-firmware)
If the firmware is downloaded, MT7921S must rely on the additional mailbox
mechanism that resides in firmware to check if the device is the right
state for mt7921s_mcu_[fw|drv]_pmctrl. Otherwise, we still apply the old
way for that.
That is a necessary patch before we enable runtime pm for mt7921s as
default.
Fixes: 48fab5bbef40 ("mt76: mt7921: introduce mt7921s support")
Co-developed-by: Sean Wang <[email protected]>
Signed-off-by: Sean Wang <[email protected]>
Signed-off-by: Leon Yen <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -65,6 +65,7 @@
|
||||
#define MCR_H2DSM0R 0x0070
|
||||
#define H2D_SW_INT_READ BIT(16)
|
||||
#define H2D_SW_INT_WRITE BIT(17)
|
||||
#define H2D_SW_INT_CLEAR_MAILBOX_ACK BIT(22)
|
||||
|
||||
#define MCR_H2DSM1R 0x0074
|
||||
#define MCR_D2HRM0R 0x0078
|
||||
@@ -109,6 +110,7 @@
|
||||
#define MCR_H2DSM2R 0x0160 /* supported in CONNAC2 */
|
||||
#define MCR_H2DSM3R 0x0164 /* supported in CONNAC2 */
|
||||
#define MCR_D2HRM3R 0x0174 /* supported in CONNAC2 */
|
||||
#define D2HRM3R_IS_DRIVER_OWN BIT(0)
|
||||
#define MCR_WTQCR8 0x0190 /* supported in CONNAC2 */
|
||||
#define MCR_WTQCR9 0x0194 /* supported in CONNAC2 */
|
||||
#define MCR_WTQCR10 0x0198 /* supported in CONNAC2 */
|
||||
|
||||
Reference in New Issue
Block a user