Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1665610 > unrolled thread
| Started by | Daniel Lezcano <daniel.lezcano@linaro.org> |
|---|---|
| First post | 2017-06-14 11:20 +0200 |
| Last post | 2017-06-14 11:20 +0200 |
| Articles | 2 — 1 participant |
Back to article view | Back to linux.kernel
[GIT PULL] clockevents fixes for 4.12-rc5 Daniel Lezcano <daniel.lezcano@linaro.org> - 2017-06-14 11:20 +0200
[PATCH 1/2] clocksource/drivers/arm_arch_timer: Fix read and iounmap of incorrect variable Daniel Lezcano <daniel.lezcano@linaro.org> - 2017-06-14 11:20 +0200
| From | Daniel Lezcano <daniel.lezcano@linaro.org> |
|---|---|
| Date | 2017-06-14 11:20 +0200 |
| Subject | [GIT PULL] clockevents fixes for 4.12-rc5 |
| Message-ID | <tScD0-3kg-23@gated-at.bofh.it> |
Hi Thomas,
here is a couple of fixes for 4.12-rc5.
- Fixed wrong iomem area unmapped in the arch_arm_timer (Frank Rowand)
- Added missing includes for sun5i and cadence-ttc (Stephen Rothwell)
Thanks.
-- Daniel
The following changes since commit ff86bf0c65f14346bf2440534f9ba5ac232c39a0:
alarmtimer: Rate limit periodic intervals (2017-06-04 15:21:18 +0200)
are available in the git repository at:
https://git@git.linaro.org/people/daniel.lezcano/linux.git clockevents/4.12-fixes
for you to fetch changes up to 459fa246d8fa4a543ed9a3331f15c8fe1caf9937:
clocksource: Explicitly include linux/clocksource.h when needed (2017-06-13 17:57:16 +0200)
----------------------------------------------------------------
Frank Rowand (1):
clocksource/drivers/arm_arch_timer: Fix read and iounmap of incorrect variable
Stephen Rothwell (1):
clocksource: Explicitly include linux/clocksource.h when needed
drivers/clocksource/arm_arch_timer.c | 4 ++--
drivers/clocksource/cadence_ttc_timer.c | 1 +
drivers/clocksource/timer-sun5i.c | 1 +
3 files changed, 4 insertions(+), 2 deletions(-)
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
[toc] | [next] | [standalone]
| From | Daniel Lezcano <daniel.lezcano@linaro.org> |
|---|---|
| Date | 2017-06-14 11:20 +0200 |
| Subject | [PATCH 1/2] clocksource/drivers/arm_arch_timer: Fix read and iounmap of incorrect variable |
| Message-ID | <tScD0-3kg-25@gated-at.bofh.it> |
| In reply to | #1665610 |
From: Frank Rowand <frank.rowand@sony.com>
Fix boot warning 'Trying to vfree() nonexistent vm area'
from arch_timer_mem_of_init().
Refactored code attempts to read and iounmap using address frame
instead of address ioremap(frame->cntbase).
Fixes: c389d701dfb70 ("clocksource: arm_arch_timer: split MMIO timer probing.")
Signed-off-by: Frank Rowand <frank.rowand@sony.com>
Reviewed-by: Fu Wei <fu.wei@linaro.org>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
---
drivers/clocksource/arm_arch_timer.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c
index 4bed671..8b5c300 100644
--- a/drivers/clocksource/arm_arch_timer.c
+++ b/drivers/clocksource/arm_arch_timer.c
@@ -1209,9 +1209,9 @@ arch_timer_mem_frame_get_cntfrq(struct arch_timer_mem_frame *frame)
return 0;
}
- rate = readl_relaxed(frame + CNTFRQ);
+ rate = readl_relaxed(base + CNTFRQ);
- iounmap(frame);
+ iounmap(base);
return rate;
}
--
2.7.4
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web