Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
From: Kishon Vijay Abraham I <kishon@ti.com>
To: Vivek Gautam <vivek.gautam@codeaurora.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Cc: linux-arm-msm <linux-arm-msm@vger.kernel.org>,
	Linux USB Mailing List <linux-usb@vger.kernel.org>,
	Greg KH <gregkh@linuxfoundation.org>
Subject: Re: [PATCH] phy: qcom-qmp: Fix failure path in phy_init functions
Date: Wed, 2 Aug 2017 10:39:51 +0530	[thread overview]
Message-ID: <d5c8e558-b186-8f7f-dd38-4fcec70d9119@ti.com> (raw)
In-Reply-To: <CAFp+6iHZSwpMQwohtLN45wt0O30Aqva436dbbGuw9LQZYMPhkw@mail.gmail.com>

Vivek,

On Monday 31 July 2017 10:58 AM, Vivek Gautam wrote:
> Hi Kishon,
> 
> 
> On Tue, Jun 20, 2017 at 11:27 AM, Vivek Gautam
> <vivek.gautam@codeaurora.org> wrote:
>> Fixing the clk enable failure path in qcom_qmp_phy_init()
>> and cleanup the reset control deassertion failure path in
>> qcom_qmp_phy_com_init().
>>
>> Fixes: e78f3d15e115 ("phy: qcom-qmp: new qmp phy driver for qcom-chipsets")
>>
>> Cc: Kishon Vijay Abraham I <kishon@ti.com>
>> Signed-off-by: Vivek Gautam <vivek.gautam@codeaurora.org>
> 
> This patch got missed. Can you please pull this in?

merged now, thanks!

-Kishon
> 
> regards
> Vivek
> 
>> ---
>>  drivers/phy/qualcomm/phy-qcom-qmp.c | 15 ++++++---------
>>  1 file changed, 6 insertions(+), 9 deletions(-)
>>
>> diff --git a/drivers/phy/qualcomm/phy-qcom-qmp.c b/drivers/phy/qualcomm/phy-qcom-qmp.c
>> index 78ca62897784..7b739571b301 100644
>> --- a/drivers/phy/qualcomm/phy-qcom-qmp.c
>> +++ b/drivers/phy/qualcomm/phy-qcom-qmp.c
>> @@ -654,8 +654,6 @@ static int qcom_qmp_phy_com_init(struct qcom_qmp *qmp)
>>                 if (ret) {
>>                         dev_err(qmp->dev, "%s reset deassert failed\n",
>>                                 qmp->cfg->reset_list[i]);
>> -                       while (--i >= 0)
>> -                               reset_control_assert(qmp->resets[i]);
>>                         goto err_rst;
>>                 }
>>         }
>> @@ -684,7 +682,7 @@ static int qcom_qmp_phy_com_init(struct qcom_qmp *qmp)
>>                 if (ret) {
>>                         dev_err(qmp->dev,
>>                                 "phy common block init timed-out\n");
>> -                       goto err_com_init;
>> +                       goto err_rst;
>>                 }
>>         }
>>
>> @@ -692,11 +690,11 @@ static int qcom_qmp_phy_com_init(struct qcom_qmp *qmp)
>>
>>         return 0;
>>
>> -err_com_init:
>> +err_rst:
>>         while (--i >= 0)
>>                 reset_control_assert(qmp->resets[i]);
>> -err_rst:
>>         mutex_unlock(&qmp->phy_mutex);
>> +
>>         return ret;
>>  }
>>
>> @@ -749,14 +747,13 @@ static int qcom_qmp_phy_init(struct phy *phy)
>>                 if (ret) {
>>                         dev_err(qmp->dev, "failed to enable %s clk, err=%d\n",
>>                                 qmp->cfg->clk_list[i], ret);
>> -                       while (--i >= 0)
>> -                               clk_disable_unprepare(qmp->clks[i]);
>> +                       goto err_clk;
>>                 }
>>         }
>>
>>         ret = qcom_qmp_phy_com_init(qmp);
>>         if (ret)
>> -               goto err_com_init;
>> +               goto err_clk;
>>
>>         if (cfg->has_lane_rst) {
>>                 ret = reset_control_deassert(qphy->lane_rst);
>> @@ -804,7 +801,7 @@ static int qcom_qmp_phy_init(struct phy *phy)
>>                 reset_control_assert(qphy->lane_rst);
>>  err_lane_rst:
>>         qcom_qmp_phy_com_exit(qmp);
>> -err_com_init:
>> +err_clk:
>>         while (--i >= 0)
>>                 clk_disable_unprepare(qmp->clks[i]);
>>
>> --
>> The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
>> a Linux Foundation Collaborative Project
>>
> 
> 
> 

  reply	other threads:[~2017-08-02  5:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-20  5:57 [PATCH] phy: qcom-qmp: Fix failure path in phy_init functions Vivek Gautam
2017-07-31  5:28 ` Vivek Gautam
2017-08-02  5:09   ` Kishon Vijay Abraham I [this message]
2017-08-02  5:35     ` Vivek Gautam

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=d5c8e558-b186-8f7f-dd38-4fcec70d9119@ti.com \
    --to=kishon@ti.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=vivek.gautam@codeaurora.org \
    /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