Skip to content

Commit b3682e7

Browse files
lweiss-fairphonegregkh
authored andcommitted
net: ipa: Fix decoding EV_PER_EE for IPA v5.0+
[ Upstream commit 1335b90 ] Initially 'reg' and 'val' are assigned from HW_PARAM_2. But since IPA v5.0+ takes EV_PER_EE from HW_PARAM_4 (instead of NUM_EV_PER_EE from HW_PARAM_2), we not only need to re-assign 'reg' but also read the register value of that register into 'val' so that reg_decode() works on the correct value. Fixes: f651334 ("net: ipa: add HW_PARAM_4 GSI register") Link: https://sashiko.dev/#/patchset/20260403-milos-ipa-v1-0-01e9e4e03d3e%40fairphone.com?part=2 Signed-off-by: Luca Weiss <luca.weiss@fairphone.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Link: https://patch.msgid.link/20260409-ipa-fixes-v1-2-a817c30678ac@fairphone.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent f736184 commit b3682e7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/net/ipa/gsi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2046,6 +2046,7 @@ static int gsi_ring_setup(struct gsi *gsi)
20462046
count = reg_decode(reg, NUM_EV_PER_EE, val);
20472047
} else {
20482048
reg = gsi_reg(gsi, HW_PARAM_4);
2049+
val = ioread32(gsi->virt + reg_offset(reg));
20492050
count = reg_decode(reg, EV_PER_EE, val);
20502051
}
20512052
if (!count) {

0 commit comments

Comments
 (0)