From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
To: Bard Liao <yung-chuan.liao@linux.intel.com>,
alsa-devel@alsa-project.org, vkoul@kernel.org
Cc: vinod.koul@linaro.org, gregkh@linuxfoundation.org,
pierre-louis.bossart@linux.intel.com,
linux-kernel@vger.kernel.org, sanyog.r.kale@intel.com,
bard.liao@intel.com
Subject: Re: [PATCH 1/5] soundwire: qcom: return error when pm_runtime_get_sync fails
Date: Fri, 29 Apr 2022 16:59:26 +0100 [thread overview]
Message-ID: <28a05a2d-06e7-a958-6873-24634423b4e0@linaro.org> (raw)
In-Reply-To: <20220426235623.4253-2-yung-chuan.liao@linux.intel.com>
On 27/04/2022 00:56, Bard Liao wrote:
> From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
>
> For some reason there's a missing error return in two places.
>
> Fixes: 74e79da9fd46a ("soundwire: qcom: add runtime pm support")
> Fixes: 04d46a7b38375 ("soundwire: qcom: add in-band wake up interrupt support")
> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
> Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
> ---
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
> drivers/soundwire/qcom.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c
> index f5fc8c27012a..c40c25f2d264 100644
> --- a/drivers/soundwire/qcom.c
> +++ b/drivers/soundwire/qcom.c
> @@ -516,6 +516,7 @@ static irqreturn_t qcom_swrm_wake_irq_handler(int irq, void *dev_id)
> "pm_runtime_get_sync failed in %s, ret %d\n",
> __func__, ret);
> pm_runtime_put_noidle(swrm->dev);
> + return ret;
> }
>
> if (swrm->wake_irq > 0) {
> @@ -1258,6 +1259,7 @@ static int swrm_reg_show(struct seq_file *s_file, void *data)
> "pm_runtime_get_sync failed in %s, ret %d\n",
> __func__, ret);
> pm_runtime_put_noidle(swrm->dev);
> + return ret;
> }
>
> for (reg = 0; reg <= SWR_MSTR_MAX_REG_ADDR; reg += 4) {
WARNING: multiple messages have this Message-ID (diff)
From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
To: Bard Liao <yung-chuan.liao@linux.intel.com>,
alsa-devel@alsa-project.org, vkoul@kernel.org
Cc: vinod.koul@linaro.org, linux-kernel@vger.kernel.org,
gregkh@linuxfoundation.org, pierre-louis.bossart@linux.intel.com,
sanyog.r.kale@intel.com, bard.liao@intel.com
Subject: Re: [PATCH 1/5] soundwire: qcom: return error when pm_runtime_get_sync fails
Date: Fri, 29 Apr 2022 16:59:26 +0100 [thread overview]
Message-ID: <28a05a2d-06e7-a958-6873-24634423b4e0@linaro.org> (raw)
In-Reply-To: <20220426235623.4253-2-yung-chuan.liao@linux.intel.com>
On 27/04/2022 00:56, Bard Liao wrote:
> From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
>
> For some reason there's a missing error return in two places.
>
> Fixes: 74e79da9fd46a ("soundwire: qcom: add runtime pm support")
> Fixes: 04d46a7b38375 ("soundwire: qcom: add in-band wake up interrupt support")
> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
> Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
> ---
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
> drivers/soundwire/qcom.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c
> index f5fc8c27012a..c40c25f2d264 100644
> --- a/drivers/soundwire/qcom.c
> +++ b/drivers/soundwire/qcom.c
> @@ -516,6 +516,7 @@ static irqreturn_t qcom_swrm_wake_irq_handler(int irq, void *dev_id)
> "pm_runtime_get_sync failed in %s, ret %d\n",
> __func__, ret);
> pm_runtime_put_noidle(swrm->dev);
> + return ret;
> }
>
> if (swrm->wake_irq > 0) {
> @@ -1258,6 +1259,7 @@ static int swrm_reg_show(struct seq_file *s_file, void *data)
> "pm_runtime_get_sync failed in %s, ret %d\n",
> __func__, ret);
> pm_runtime_put_noidle(swrm->dev);
> + return ret;
> }
>
> for (reg = 0; reg <= SWR_MSTR_MAX_REG_ADDR; reg += 4) {
next prev parent reply other threads:[~2022-04-29 16:00 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-26 23:56 [PATCH 0/5] soundwire: use pm_runtime_resume_and_get() Bard Liao
2022-04-26 23:56 ` Bard Liao
2022-04-26 23:56 ` [PATCH 1/5] soundwire: qcom: return error when pm_runtime_get_sync fails Bard Liao
2022-04-26 23:56 ` Bard Liao
2022-04-29 15:59 ` Srinivas Kandagatla [this message]
2022-04-29 15:59 ` Srinivas Kandagatla
2022-04-26 23:56 ` [PATCH 2/5] soundwire: bus: use pm_runtime_resume_and_get() Bard Liao
2022-04-26 23:56 ` Bard Liao
2022-04-26 23:56 ` [PATCH 3/5] soundwire: cadence: " Bard Liao
2022-04-26 23:56 ` Bard Liao
2022-04-26 23:56 ` [PATCH 4/5] soundwire: intel: " Bard Liao
2022-04-26 23:56 ` Bard Liao
2022-04-26 23:56 ` [PATCH 5/5] soundwire: qcom: " Bard Liao
2022-04-26 23:56 ` Bard Liao
2022-04-29 15:59 ` Srinivas Kandagatla
2022-04-29 15:59 ` Srinivas Kandagatla
2022-05-09 6:32 ` [PATCH 0/5] soundwire: " Vinod Koul
2022-05-09 6:32 ` Vinod Koul
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=28a05a2d-06e7-a958-6873-24634423b4e0@linaro.org \
--to=srinivas.kandagatla@linaro.org \
--cc=alsa-devel@alsa-project.org \
--cc=bard.liao@intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pierre-louis.bossart@linux.intel.com \
--cc=sanyog.r.kale@intel.com \
--cc=vinod.koul@linaro.org \
--cc=vkoul@kernel.org \
--cc=yung-chuan.liao@linux.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.