diff options
author | Diogo Ivo <diogo.ivo@siemens.com> | 2023-11-07 12:00:36 +0000 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-11-09 13:15:40 +0100 |
commit | 83b9dda8afa4e968d9cce253f390b01c0612a2a5 (patch) | |
tree | 572c3a72208fcefd51df5d5b2d0c9fe6be966e38 | |
parent | 1bea2c3e6df8caf45d18384abfb707f47e9ff993 (diff) | |
download | linux-stable-83b9dda8afa4e968d9cce253f390b01c0612a2a5.tar.gz linux-stable-83b9dda8afa4e968d9cce253f390b01c0612a2a5.tar.bz2 linux-stable-83b9dda8afa4e968d9cce253f390b01c0612a2a5.zip |
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: c1e0230eeaab ("net: ti: icss-iep: Add IEP driver")
Signed-off-by: Diogo Ivo <diogo.ivo@siemens.com>
Link: https://lore.kernel.org/r/20231107120037.1513546-1-diogo.ivo@siemens.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
-rw-r--r-- | drivers/net/ethernet/ti/icssg/icss_iep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ti/icssg/icss_iep.c b/drivers/net/ethernet/ti/icssg/icss_iep.c index 4cf2a52e4378..3025e9c18970 100644 --- a/drivers/net/ethernet/ti/icssg/icss_iep.c +++ b/drivers/net/ethernet/ti/icssg/icss_iep.c @@ -177,7 +177,7 @@ static void icss_iep_set_counter(struct icss_iep *iep, u64 ns) if (iep->plat_data->flags & ICSS_IEP_64BIT_COUNTER_SUPPORT) writel(upper_32_bits(ns), iep->base + iep->plat_data->reg_offs[ICSS_IEP_COUNT_REG1]); - writel(upper_32_bits(ns), iep->base + iep->plat_data->reg_offs[ICSS_IEP_COUNT_REG0]); + writel(lower_32_bits(ns), iep->base + iep->plat_data->reg_offs[ICSS_IEP_COUNT_REG0]); } static void icss_iep_update_to_next_boundary(struct icss_iep *iep, u64 start_ns); |