From: Vivek Gautam <vivek.gautam@codeaurora.org>
To: Douglas Anderson <dianders@chromium.org>, kishon@ti.com
Cc: linux-kernel@vger.kernel.org,
Wei Yongjun <weiyongjun1@huawei.com>,
Manu Gautam <mgautam@codeaurora.org>,
Varadarajan Narayanan <varada@codeaurora.org>
Subject: Re: [PATCH 1/2] phy: qcom-qmp: Quiet -EPROBE_DEFER from qcom_qmp_phy_probe()
Date: Tue, 15 May 2018 12:32:14 +0530 [thread overview]
Message-ID: <ab9e5b1e-c765-c48c-4804-2657e7b8f4f1@codeaurora.org> (raw)
In-Reply-To: <20180514224222.54495-1-dianders@chromium.org>
Hi Doug,
On 5/15/2018 4:12 AM, Douglas Anderson wrote:
> The -EPROBE_DEFER virus demands special case code to avoid printing
> error messages when the error is only -EPROBE_DEFER. Spread the virus
> to a new host: qcom_qmp_phy_probe(). Specifically handle when our
> regulators might not be ready yet.
>
> Signed-off-by: Douglas Anderson <dianders@chromium.org>
> ---
>
> drivers/phy/qualcomm/phy-qcom-qmp.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/phy/qualcomm/phy-qcom-qmp.c b/drivers/phy/qualcomm/phy-qcom-qmp.c
> index 6470c5d61d1c..a740daa58b31 100644
> --- a/drivers/phy/qualcomm/phy-qcom-qmp.c
> +++ b/drivers/phy/qualcomm/phy-qcom-qmp.c
> @@ -1447,7 +1447,9 @@ static int qcom_qmp_phy_probe(struct platform_device *pdev)
>
> ret = qcom_qmp_phy_vreg_init(dev);
> if (ret) {
> - dev_err(dev, "failed to get regulator supplies\n");
> + if (ret != -EPROBE_DEFER)
> + dev_err(dev, "failed to get regulator supplies: %d\n",
> + ret);
> return ret;
> }
>
Thanks for the patch. Looks good to me.
Reviewed-by: Vivek Gautam <vivek.gautam@codeaurora.org>
regards
Vivek
next prev parent reply other threads:[~2018-05-15 7:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-14 22:42 Douglas Anderson
2018-05-14 22:42 ` [PATCH 2/2] phy: qcom-qusb2: Quiet -EPROBE_DEFER from qusb2_phy_probe() Douglas Anderson
2018-05-15 7:02 ` Vivek Gautam
2018-05-15 7:02 ` Vivek Gautam [this message]
2018-08-10 20:14 ` [PATCH 1/2] phy: qcom-qmp: Quiet -EPROBE_DEFER from qcom_qmp_phy_probe() Doug Anderson
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=ab9e5b1e-c765-c48c-4804-2657e7b8f4f1@codeaurora.org \
--to=vivek.gautam@codeaurora.org \
--cc=dianders@chromium.org \
--cc=kishon@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mgautam@codeaurora.org \
--cc=varada@codeaurora.org \
--cc=weiyongjun1@huawei.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
all inboxes | Powered by JetHome®