From: Lee Jones <lee.jones@linaro.org>
To: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Cc: Sebastian Reichel <sre@kernel.org>,
Support Opensource <support.opensource@diasemi.com>,
Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Jean Delvare <jdelvare@suse.com>,
Guenter Roeck <linux@roeck-us.net>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
devicetree@vger.kernel.org, linux-hwmon@vger.kernel.org,
linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCHv4 1/4] mfd: da9052: fix manual ADC read after timed out read
Date: Mon, 17 Jul 2017 11:49:16 +0100 [thread overview]
Message-ID: <20170717104916.exhaspyska4okclc@dell> (raw)
In-Reply-To: <20170630143506.10541-2-sebastian.reichel@collabora.co.uk>
On Fri, 30 Jun 2017, Sebastian Reichel wrote:
> It is possible that under heavy system load, the counter in the completion
> struct, used for waiting for end of AD conversion, gets incremented twice.
> To make sure the driver recovers from this situation, the completion struct
> should be reinitialized.
>
> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
> ---
> drivers/mfd/da9052-core.c | 2 ++
> 1 file changed, 2 insertions(+)
Applied, thanks.
> diff --git a/drivers/mfd/da9052-core.c b/drivers/mfd/da9052-core.c
> index a88c2065d8ab..977418ca9117 100644
> --- a/drivers/mfd/da9052-core.c
> +++ b/drivers/mfd/da9052-core.c
> @@ -386,6 +386,8 @@ int da9052_adc_manual_read(struct da9052 *da9052, unsigned char channel)
>
> mutex_lock(&da9052->auxadc_lock);
>
> + reinit_completion(&da9052->done);
> +
> /* Channel gets activated on enabling the Conversion bit */
> mux_sel = chan_mux[channel] | DA9052_ADC_MAN_MAN_CONV;
>
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
next prev parent reply other threads:[~2017-07-17 10:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-30 14:35 [PATCHv4 0/4] DA9052 hardware monitoring improvements Sebastian Reichel
2017-06-30 14:35 ` [PATCHv4 1/4] mfd: da9052: fix manual ADC read after timed out read Sebastian Reichel
2017-07-17 10:49 ` Lee Jones [this message]
2017-06-30 14:35 ` [PATCHv4 2/4] hwmon: da9052: replace S_IRUGO with 0444 Sebastian Reichel
2017-06-30 14:35 ` [PATCHv4 3/4] dt-bindings: mfd: da9052: support TSI as ADC Sebastian Reichel
2017-07-17 10:49 ` Lee Jones
2017-07-17 11:27 ` Sebastian Reichel
2017-07-22 15:09 ` Guenter Roeck
[not found] ` <b0d58a26-d0b4-a6ec-811a-159bbb8b44d1-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
2017-07-22 19:08 ` Sebastian Reichel
2017-06-30 14:35 ` [PATCHv4 4/4] hwmon: da9052: add support for TSI channel Sebastian Reichel
2017-06-30 15:56 ` Guenter Roeck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170717104916.exhaspyska4okclc@dell \
--to=lee.jones@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=jdelvare@suse.com \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
--cc=sebastian.reichel@collabora.co.uk \
--cc=sre@kernel.org \
--cc=support.opensource@diasemi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox