From: Felipe Balbi <balbi@ti.com>
To: David Cohen <david.a.cohen@linux.intel.com>
Cc: linus.walleij@linaro.org, gnurou@gmail.com,
linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org,
"xinhui.pan" <xinhuiX.pan@intel.com>, "bo.he" <bo.he@intel.com>,
Felibe Balbi <balbi@ti.com>
Subject: Re: [PATCH v2] gpio-intel-mid: fix the incorrect return of idle callback
Date: Fri, 31 Jan 2014 15:26:23 -0600 [thread overview]
Message-ID: <20140131212623.GA2502@saruman.home> (raw)
In-Reply-To: <1391202481-19533-1-git-send-email-david.a.cohen@linux.intel.com>
[-- Attachment #1: Type: text/plain, Size: 1196 bytes --]
On Fri, Jan 31, 2014 at 01:08:01PM -0800, David Cohen wrote:
> From: "xinhui.pan" <xinhuiX.pan@intel.com>
>
> intel_gpio_runtime_idle should return correct error code if it do fail.
> make it more correct even though -EBUSY is the most possible return value.
>
> Signed-off-by: bo.he <bo.he@intel.com>
> Signed-off-by: xinhui.pan <xinhuiX.pan@intel.com>
> Signed-off-by: David Cohen <david.a.cohen@linux.intel.com>
> Cc: Felibe Balbi <balbi@ti.com>
Reviewed-by: Felipe Balbi <balbi@ti.com>
> ---
> drivers/gpio/gpio-intel-mid.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpio/gpio-intel-mid.c b/drivers/gpio/gpio-intel-mid.c
> index 41218e93b9fe..55688d0548e9 100644
> --- a/drivers/gpio/gpio-intel-mid.c
> +++ b/drivers/gpio/gpio-intel-mid.c
> @@ -369,8 +369,8 @@ static const struct irq_domain_ops intel_gpio_irq_ops = {
>
> static int intel_gpio_runtime_idle(struct device *dev)
> {
> - pm_schedule_suspend(dev, 500);
> - return -EBUSY;
> + int err = pm_schedule_suspend(dev, 500);
> + return err ?: -EBUSY;
> }
>
> static const struct dev_pm_ops intel_gpio_pm_ops = {
> --
> 1.8.4.2
>
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2014-01-31 21:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-30 12:15 [PATCH] gpio-intel-mid: fix the incorrect return of idle callback xinhui.pan
2014-01-31 20:50 ` David Cohen
2014-01-31 21:08 ` [PATCH v2] " David Cohen
2014-01-31 21:26 ` Felipe Balbi [this message]
2014-02-05 9:37 ` Linus Walleij
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=20140131212623.GA2502@saruman.home \
--to=balbi@ti.com \
--cc=bo.he@intel.com \
--cc=david.a.cohen@linux.intel.com \
--cc=gnurou@gmail.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=xinhuiX.pan@intel.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;
as well as URLs for NNTP newsgroup(s).