soc: mediatek: pm-domains: Use correct mask for bus_prot_clr
authorBilal Wasim <Bilal.Wasim@imgtec.com>
Thu, 1 Jul 2021 09:40:22 +0000 (11:40 +0200)
committerMatthias Brugger <matthias.bgg@gmail.com>
Mon, 12 Jul 2021 10:26:28 +0000 (12:26 +0200)
When "bus_prot_reg_update" is true, the driver should use
INFRA_TOPAXI_PROTECTEN for both setting and clearing the bus
protection. However, the driver does not use this mask for
clearing bus protection which causes failure when booting
the imgtec gpu.

Corrected and tested with mt8173 chromebook.

Signed-off-by: Bilal Wasim <Bilal.Wasim@imgtec.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Reviewed-by: Hsin-Yi Wang <hsinyi@chromium.org>
Link: https://lore.kernel.org/r/20210701114012.RESEND.1.I27436c29c3bede46dcf86df696f48683662d1ec1@changeid
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-pm-domains.h

index 21a4e113bbecb3795ddd0e434a829c31d22ba353..c5ac649ae51b7c2e7174a97fc24bbc3acb9e0447 100644 (file)
@@ -60,7 +60,7 @@
 #define BUS_PROT_UPDATE_TOPAXI(_mask)                          \
                BUS_PROT_UPDATE(_mask,                          \
                                INFRA_TOPAXI_PROTECTEN,         \
-                               INFRA_TOPAXI_PROTECTEN_CLR,     \
+                               INFRA_TOPAXI_PROTECTEN,         \
                                INFRA_TOPAXI_PROTECTSTA1)
 
 struct scpsys_bus_prot_data {