[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHQ1cqGohyy=0yFjaVK1Xy=MBDmca9B1Ea+dfDWwmGs65G6uxw@mail.gmail.com>
Date: Fri, 5 Apr 2019 11:30:41 -0700
From: Andrey Smirnov <andrew.smirnov@...il.com>
To: Daniel Lezcano <daniel.lezcano@...aro.org>
Cc: linux-pm@...r.kernel.org, Chris Healy <cphealy@...il.com>,
Lucas Stach <l.stach@...gutronix.de>,
Zhang Rui <rui.zhang@...el.com>,
Eduardo Valentin <edubezval@...il.com>,
Angus Ainslie <angus@...ea.ca>,
dl-linux-imx <linux-imx@....com>,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v3 11/13] thermal: qoriq: Do not report invalid
temperature reading
On Thu, Apr 4, 2019 at 2:05 AM Daniel Lezcano <daniel.lezcano@...aro.org> wrote:
>
> On 01/04/2019 06:14, Andrey Smirnov wrote:
> > Before returning measured temperature data to upper layer we need to
> > make sure that the reading was marked as "valid" to avoid reporting
> > bogus data.
>
> Is it possible to add a comment above the read_poll to describe the
> layout of the register ? That will help to understand the valid bit.
>
Sure, will do.
> Is the valid bit reset after reading the value?
>
It works a bit differently. Here's the description form the datasheet:
Valid measured temperature.
0 Not valid. Temperature out of sensor range or first
measurement still pending.
1 Valid.
Thanks,
Andrey Smirnov
Powered by blists - more mailing lists