Re: [PATCH v23 06/11] clocksource: arm_arch_timer: refactor MMIO timer probing.

2017-04-06 Thread Fu Wei
Hi Mark, On 6 April 2017 at 02:42, Mark Rutland wrote: > On Sat, Apr 01, 2017 at 01:51:00AM +0800, fu@linaro.org wrote: >> + arch_timer_mem_freq = arch_timer_mem_get_cntfrq(base); >> + if (!arch_timer_rate && arch_timer_mem_freq) { >> +

Re: [PATCH v23 06/11] clocksource: arm_arch_timer: refactor MMIO timer probing.

2017-04-06 Thread Fu Wei
Hi Mark, On 6 April 2017 at 02:42, Mark Rutland wrote: > On Sat, Apr 01, 2017 at 01:51:00AM +0800, fu@linaro.org wrote: >> + arch_timer_mem_freq = arch_timer_mem_get_cntfrq(base); >> + if (!arch_timer_rate && arch_timer_mem_freq) { >> + arch_timer_rate =

Re: [PATCH v23 06/11] clocksource: arm_arch_timer: refactor MMIO timer probing.

2017-04-05 Thread Mark Rutland
On Sat, Apr 01, 2017 at 01:51:00AM +0800, fu@linaro.org wrote: > + arch_timer_mem_freq = arch_timer_mem_get_cntfrq(base); > + if (!arch_timer_rate && arch_timer_mem_freq) { > + arch_timer_rate = arch_timer_mem_freq; > + } else if (!arch_timer_rate || arch_timer_rate !=

Re: [PATCH v23 06/11] clocksource: arm_arch_timer: refactor MMIO timer probing.

2017-04-05 Thread Mark Rutland
On Sat, Apr 01, 2017 at 01:51:00AM +0800, fu@linaro.org wrote: > + arch_timer_mem_freq = arch_timer_mem_get_cntfrq(base); > + if (!arch_timer_rate && arch_timer_mem_freq) { > + arch_timer_rate = arch_timer_mem_freq; > + } else if (!arch_timer_rate || arch_timer_rate !=

[PATCH v23 06/11] clocksource: arm_arch_timer: refactor MMIO timer probing.

2017-03-31 Thread fu . wei
From: Fu Wei Currently the code to probe MMIO architected timers mixes DT parsing with actual poking of hardware. This makes the code harder than necessary to understand, and makes it difficult to add support for probing via ACPI. This patch factors all the DT-specific logic

[PATCH v23 06/11] clocksource: arm_arch_timer: refactor MMIO timer probing.

2017-03-31 Thread fu . wei
From: Fu Wei Currently the code to probe MMIO architected timers mixes DT parsing with actual poking of hardware. This makes the code harder than necessary to understand, and makes it difficult to add support for probing via ACPI. This patch factors all the DT-specific logic out of