[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240713060944.2725647-5-zengheng4@huawei.com>
Date: Sat, 13 Jul 2024 14:09:44 +0800
From: Zeng Heng <zengheng4@...wei.com>
To: <james.morse@....com>
CC: <linux-arm-kernel@...ts.infradead.org>, <linux-kernel@...r.kernel.org>
Subject: [PATCH v6.10-rc1 4/4] arm_mpam: Fix typo about mbw_min controls
Correct the judgment condition about mbw_min default value.
Fixes: 099f47353bc5 ("arm_mpam: Generate a configuration for min controls")
Signed-off-by: Zeng Heng <zengheng4@...wei.com>
---
drivers/platform/arm64/mpam/mpam_devices.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/platform/arm64/mpam/mpam_devices.c b/drivers/platform/arm64/mpam/mpam_devices.c
index 9acac8a22573..64a1f1767a68 100644
--- a/drivers/platform/arm64/mpam/mpam_devices.c
+++ b/drivers/platform/arm64/mpam/mpam_devices.c
@@ -1483,7 +1483,7 @@ static void mpam_reprogram_ris_partid(struct mpam_msc_ris *ris, u16 partid,
}
if (mpam_has_feature(mpam_feat_mbw_min, rprops)) {
- if (mpam_has_feature(mpam_feat_mbw_max, cfg))
+ if (mpam_has_feature(mpam_feat_mbw_min, cfg))
mpam_write_partsel_reg(msc, MBW_MIN, cfg->mbw_min);
else
mpam_write_partsel_reg(msc, MBW_MIN, 0);
--
2.25.1
Powered by blists - more mailing lists