Skip to content

Commit 83b9dda

Browse files
diogo-ivoPaolo Abeni
authored andcommitted
net: ti: icss-iep: fix setting counter value
Currently icss_iep_set_counter() writes the upper 32-bits of the counter value to both the lower and upper counter registers, so fix this by writing the appropriate value to the lower register. Fixes: c1e0230 ("net: ti: icss-iep: Add IEP driver") Signed-off-by: Diogo Ivo <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent 1bea2c3 commit 83b9dda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/ti/icssg/icss_iep.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ static void icss_iep_set_counter(struct icss_iep *iep, u64 ns)
177177
if (iep->plat_data->flags & ICSS_IEP_64BIT_COUNTER_SUPPORT)
178178
writel(upper_32_bits(ns), iep->base +
179179
iep->plat_data->reg_offs[ICSS_IEP_COUNT_REG1]);
180-
writel(upper_32_bits(ns), iep->base + iep->plat_data->reg_offs[ICSS_IEP_COUNT_REG0]);
180+
writel(lower_32_bits(ns), iep->base + iep->plat_data->reg_offs[ICSS_IEP_COUNT_REG0]);
181181
}
182182

183183
static void icss_iep_update_to_next_boundary(struct icss_iep *iep, u64 start_ns);

0 commit comments

Comments
 (0)