diff options
| author | Martin Blumenstingl <[email protected]> | 2024-02-18 17:41:37 +0000 |
|---|---|---|
| committer | Daniel Lezcano <[email protected]> | 2024-02-18 23:48:54 +0000 |
| commit | b34b9547cee41575a4fddf390f615570759dc999 (patch) | |
| tree | c0cdd0b89e86e52bbf96877cecb1e940e5111db5 /drivers/clocksource/arm_global_timer.c | |
| parent | clocksource/drivers/imx-sysctr: Add i.MX95 support (diff) | |
| download | kernel-b34b9547cee41575a4fddf390f615570759dc999.tar.gz kernel-b34b9547cee41575a4fddf390f615570759dc999.zip | |
clocksource/drivers/arm_global_timer: Fix maximum prescaler value
The prescaler in the "Global Timer Control Register bit assignments" is
documented to use bits [15:8], which means that the maximum prescaler
register value is 0xff.
Fixes: 171b45a4a70e ("clocksource/drivers/arm_global_timer: Implement rate compensation whenever source clock changes")
Signed-off-by: Martin Blumenstingl <[email protected]>
Signed-off-by: Daniel Lezcano <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/clocksource/arm_global_timer.c')
| -rw-r--r-- | drivers/clocksource/arm_global_timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clocksource/arm_global_timer.c b/drivers/clocksource/arm_global_timer.c index 44a61dc6f932..e1c773bb5535 100644 --- a/drivers/clocksource/arm_global_timer.c +++ b/drivers/clocksource/arm_global_timer.c @@ -32,7 +32,7 @@ #define GT_CONTROL_IRQ_ENABLE BIT(2) /* banked */ #define GT_CONTROL_AUTO_INC BIT(3) /* banked */ #define GT_CONTROL_PRESCALER_SHIFT 8 -#define GT_CONTROL_PRESCALER_MAX 0xF +#define GT_CONTROL_PRESCALER_MAX 0xFF #define GT_CONTROL_PRESCALER_MASK (GT_CONTROL_PRESCALER_MAX << \ GT_CONTROL_PRESCALER_SHIFT) |
