Re: [PATCH v3 2/2] clocksource: sprd: Add timer driver for Spreadtrum SC9860 platform

2017-12-12 Thread Daniel Lezcano
On 12/12/2017 10:41, Baolin Wang wrote: > Hi Daniel, > > On 12 December 2017 at 17:26, Baolin Wang wrote: >> Hi Daniel, >> >> On 12 December 2017 at 17:16, Daniel Lezcano >> wrote: >>> >>> Hi Baolin, >>> >>> >>> On 08/12/2017 09:20, Baolin

Re: [PATCH v3 2/2] clocksource: sprd: Add timer driver for Spreadtrum SC9860 platform

2017-12-12 Thread Daniel Lezcano
On 12/12/2017 10:41, Baolin Wang wrote: > Hi Daniel, > > On 12 December 2017 at 17:26, Baolin Wang wrote: >> Hi Daniel, >> >> On 12 December 2017 at 17:16, Daniel Lezcano >> wrote: >>> >>> Hi Baolin, >>> >>> >>> On 08/12/2017 09:20, Baolin Wang wrote: >>> >>> [ ... ] >>> >> +static

Re: [PATCH v3 2/2] clocksource: sprd: Add timer driver for Spreadtrum SC9860 platform

2017-12-12 Thread Arnd Bergmann
On Tue, Dec 12, 2017 at 10:26 AM, Baolin Wang wrote: > On 12 December 2017 at 17:16, Daniel Lezcano > wrote: >> On 08/12/2017 09:20, Baolin Wang wrote: > +static irqreturn_t sprd_timer_interrupt(int irq, void *dev_id) > +{ > +

Re: [PATCH v3 2/2] clocksource: sprd: Add timer driver for Spreadtrum SC9860 platform

2017-12-12 Thread Arnd Bergmann
On Tue, Dec 12, 2017 at 10:26 AM, Baolin Wang wrote: > On 12 December 2017 at 17:16, Daniel Lezcano > wrote: >> On 08/12/2017 09:20, Baolin Wang wrote: > +static irqreturn_t sprd_timer_interrupt(int irq, void *dev_id) > +{ > + struct clock_event_device *ce = (struct

Re: [PATCH v3 2/2] clocksource: sprd: Add timer driver for Spreadtrum SC9860 platform

2017-12-12 Thread Baolin Wang
Hi Daniel, On 12 December 2017 at 17:26, Baolin Wang wrote: > Hi Daniel, > > On 12 December 2017 at 17:16, Daniel Lezcano > wrote: >> >> Hi Baolin, >> >> >> On 08/12/2017 09:20, Baolin Wang wrote: >> >> [ ... ] >> > +static irqreturn_t

Re: [PATCH v3 2/2] clocksource: sprd: Add timer driver for Spreadtrum SC9860 platform

2017-12-12 Thread Baolin Wang
Hi Daniel, On 12 December 2017 at 17:26, Baolin Wang wrote: > Hi Daniel, > > On 12 December 2017 at 17:16, Daniel Lezcano > wrote: >> >> Hi Baolin, >> >> >> On 08/12/2017 09:20, Baolin Wang wrote: >> >> [ ... ] >> > +static irqreturn_t sprd_timer_interrupt(int irq, void *dev_id) > +{

Re: [PATCH v3 2/2] clocksource: sprd: Add timer driver for Spreadtrum SC9860 platform

2017-12-12 Thread Baolin Wang
Hi Daniel, On 12 December 2017 at 17:16, Daniel Lezcano wrote: > > Hi Baolin, > > > On 08/12/2017 09:20, Baolin Wang wrote: > > [ ... ] > +static irqreturn_t sprd_timer_interrupt(int irq, void *dev_id) +{ + struct clock_event_device *ce = (struct

Re: [PATCH v3 2/2] clocksource: sprd: Add timer driver for Spreadtrum SC9860 platform

2017-12-12 Thread Baolin Wang
Hi Daniel, On 12 December 2017 at 17:16, Daniel Lezcano wrote: > > Hi Baolin, > > > On 08/12/2017 09:20, Baolin Wang wrote: > > [ ... ] > +static irqreturn_t sprd_timer_interrupt(int irq, void *dev_id) +{ + struct clock_event_device *ce = (struct clock_event_device *)dev_id;

Re: [PATCH v3 2/2] clocksource: sprd: Add timer driver for Spreadtrum SC9860 platform

2017-12-12 Thread Daniel Lezcano
Hi Baolin, On 08/12/2017 09:20, Baolin Wang wrote: [ ... ] >>> +static irqreturn_t sprd_timer_interrupt(int irq, void *dev_id) >>> +{ >>> + struct clock_event_device *ce = (struct clock_event_device *)dev_id; >>> + struct timer_of *to = to_timer_of(ce); >>> + >>> +

Re: [PATCH v3 2/2] clocksource: sprd: Add timer driver for Spreadtrum SC9860 platform

2017-12-12 Thread Daniel Lezcano
Hi Baolin, On 08/12/2017 09:20, Baolin Wang wrote: [ ... ] >>> +static irqreturn_t sprd_timer_interrupt(int irq, void *dev_id) >>> +{ >>> + struct clock_event_device *ce = (struct clock_event_device *)dev_id; >>> + struct timer_of *to = to_timer_of(ce); >>> + >>> +

Re: [PATCH v3 2/2] clocksource: sprd: Add timer driver for Spreadtrum SC9860 platform

2017-12-08 Thread Baolin Wang
Hi Daniel, On 8 December 2017 at 14:58, Daniel Lezcano wrote: > On 08/12/2017 06:03, Baolin Wang wrote: >> The Spreadtrum SC9860 platform will use the architected timers as local >> clock events, but we also need a broadcast timer device to wakeup the >> cpus when the

Re: [PATCH v3 2/2] clocksource: sprd: Add timer driver for Spreadtrum SC9860 platform

2017-12-08 Thread Baolin Wang
Hi Daniel, On 8 December 2017 at 14:58, Daniel Lezcano wrote: > On 08/12/2017 06:03, Baolin Wang wrote: >> The Spreadtrum SC9860 platform will use the architected timers as local >> clock events, but we also need a broadcast timer device to wakeup the >> cpus when the cpus are in sleep mode. >>

Re: [PATCH v3 2/2] clocksource: sprd: Add timer driver for Spreadtrum SC9860 platform

2017-12-07 Thread Daniel Lezcano
On 08/12/2017 06:03, Baolin Wang wrote: > The Spreadtrum SC9860 platform will use the architected timers as local > clock events, but we also need a broadcast timer device to wakeup the > cpus when the cpus are in sleep mode. > > The Spreadtrum timer can support 32bit or 64bit counter, as well as

Re: [PATCH v3 2/2] clocksource: sprd: Add timer driver for Spreadtrum SC9860 platform

2017-12-07 Thread Daniel Lezcano
On 08/12/2017 06:03, Baolin Wang wrote: > The Spreadtrum SC9860 platform will use the architected timers as local > clock events, but we also need a broadcast timer device to wakeup the > cpus when the cpus are in sleep mode. > > The Spreadtrum timer can support 32bit or 64bit counter, as well as

[PATCH v3 2/2] clocksource: sprd: Add timer driver for Spreadtrum SC9860 platform

2017-12-07 Thread Baolin Wang
The Spreadtrum SC9860 platform will use the architected timers as local clock events, but we also need a broadcast timer device to wakeup the cpus when the cpus are in sleep mode. The Spreadtrum timer can support 32bit or 64bit counter, as well as supporting period mode or one-shot mode.

[PATCH v3 2/2] clocksource: sprd: Add timer driver for Spreadtrum SC9860 platform

2017-12-07 Thread Baolin Wang
The Spreadtrum SC9860 platform will use the architected timers as local clock events, but we also need a broadcast timer device to wakeup the cpus when the cpus are in sleep mode. The Spreadtrum timer can support 32bit or 64bit counter, as well as supporting period mode or one-shot mode.