Re: [PATCH V2] thermal/drivers/hisi: Switch to interrupt mode

2017-12-04 Thread Daniel Lezcano
On 05/12/2017 03:00, Eduardo Valentin wrote: > Hello, > > On Thu, Sep 28, 2017 at 09:32:20AM +0200, Daniel Lezcano wrote: >> On Thu, Sep 28, 2017 at 02:57:52PM +0800, Leo Yan wrote: >>> Hi Daniel, >>> >>> On Thu, Sep 28, 2017 at 07:13:44AM +0200, Daniel Lezcano wrote: At this moment, we have

Re: [PATCH V2] thermal/drivers/hisi: Switch to interrupt mode

2017-12-04 Thread Daniel Lezcano
On 05/12/2017 03:00, Eduardo Valentin wrote: > Hello, > > On Thu, Sep 28, 2017 at 09:32:20AM +0200, Daniel Lezcano wrote: >> On Thu, Sep 28, 2017 at 02:57:52PM +0800, Leo Yan wrote: >>> Hi Daniel, >>> >>> On Thu, Sep 28, 2017 at 07:13:44AM +0200, Daniel Lezcano wrote: At this moment, we have

Re: [PATCH V2] thermal/drivers/hisi: Switch to interrupt mode

2017-12-04 Thread Eduardo Valentin
Hello, On Thu, Sep 28, 2017 at 09:32:20AM +0200, Daniel Lezcano wrote: > On Thu, Sep 28, 2017 at 02:57:52PM +0800, Leo Yan wrote: > > Hi Daniel, > > > > On Thu, Sep 28, 2017 at 07:13:44AM +0200, Daniel Lezcano wrote: > > > At this moment, we have both the interrupt setup and the polling enabled.

Re: [PATCH V2] thermal/drivers/hisi: Switch to interrupt mode

2017-12-04 Thread Eduardo Valentin
Hello, On Thu, Sep 28, 2017 at 09:32:20AM +0200, Daniel Lezcano wrote: > On Thu, Sep 28, 2017 at 02:57:52PM +0800, Leo Yan wrote: > > Hi Daniel, > > > > On Thu, Sep 28, 2017 at 07:13:44AM +0200, Daniel Lezcano wrote: > > > At this moment, we have both the interrupt setup and the polling enabled.

Re: [PATCH V2] thermal/drivers/hisi: Switch to interrupt mode

2017-09-28 Thread Daniel Lezcano
On Thu, Sep 28, 2017 at 02:57:52PM +0800, Leo Yan wrote: > Hi Daniel, > > On Thu, Sep 28, 2017 at 07:13:44AM +0200, Daniel Lezcano wrote: > > At this moment, we have both the interrupt setup and the polling enabled. > > The > > interrupt does nothing more than forcing an update while the

Re: [PATCH V2] thermal/drivers/hisi: Switch to interrupt mode

2017-09-28 Thread Daniel Lezcano
On Thu, Sep 28, 2017 at 02:57:52PM +0800, Leo Yan wrote: > Hi Daniel, > > On Thu, Sep 28, 2017 at 07:13:44AM +0200, Daniel Lezcano wrote: > > At this moment, we have both the interrupt setup and the polling enabled. > > The > > interrupt does nothing more than forcing an update while the

Re: [PATCH V2] thermal/drivers/hisi: Switch to interrupt mode

2017-09-28 Thread Leo Yan
Hi Daniel, On Thu, Sep 28, 2017 at 07:13:44AM +0200, Daniel Lezcano wrote: > At this moment, we have both the interrupt setup and the polling enabled. The > interrupt does nothing more than forcing an update while the temperature is > polled every second. > > We can do much better than that,

Re: [PATCH V2] thermal/drivers/hisi: Switch to interrupt mode

2017-09-28 Thread Leo Yan
Hi Daniel, On Thu, Sep 28, 2017 at 07:13:44AM +0200, Daniel Lezcano wrote: > At this moment, we have both the interrupt setup and the polling enabled. The > interrupt does nothing more than forcing an update while the temperature is > polled every second. > > We can do much better than that,

[PATCH V2] thermal/drivers/hisi: Switch to interrupt mode

2017-09-27 Thread Daniel Lezcano
At this moment, we have both the interrupt setup and the polling enabled. The interrupt does nothing more than forcing an update while the temperature is polled every second. We can do much better than that, threshold is set to 65C in the DT and the passive cooling device enters in the dance when

[PATCH V2] thermal/drivers/hisi: Switch to interrupt mode

2017-09-27 Thread Daniel Lezcano
At this moment, we have both the interrupt setup and the polling enabled. The interrupt does nothing more than forcing an update while the temperature is polled every second. We can do much better than that, threshold is set to 65C in the DT and the passive cooling device enters in the dance when