From: Johan Hovold <johan@kernel.org>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: Johan Hovold <johan+linaro@kernel.org>,
Vinod Koul <vkoul@kernel.org>, Andy Gross <agross@kernel.org>,
Bjorn Andersson <bjorn.andersson@linaro.org>,
Kishon Vijay Abraham I <kishon@ti.com>,
linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/3] phy: qcom-qmp-pcie: drop obsolete pipe clock type check
Date: Thu, 23 Jun 2022 13:51:44 +0200 [thread overview]
Message-ID: <YrRT0O8xSq30U8mh@hovoldconsulting.com> (raw)
In-Reply-To: <CAA8EJpp0XAZ3V9XQ2QnbrVoiKrdD_mxoTpKuzC34hKVPQ7wT0g@mail.gmail.com>
On Thu, Jun 23, 2022 at 02:44:28PM +0300, Dmitry Baryshkov wrote:
> On Thu, 23 Jun 2022 at 14:33, Johan Hovold <johan+linaro@kernel.org> wrote:
> >
> > Drop the obsolete pipe clock handling which was used to treat the pipe
> > clock as optional for types other than PCIe and USB and which is no
> > longer needed since splitting the PHY driver.
> >
> > Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
> > ---
> > diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c
> > if (IS_ERR(qphy->pipe_clk)) {
> > - if (cfg->type == PHY_TYPE_PCIE ||
> > - cfg->type == PHY_TYPE_USB3) {
> > - ret = PTR_ERR(qphy->pipe_clk);
> > - if (ret != -EPROBE_DEFER)
> > - dev_err(dev,
> > - "failed to get lane%d pipe_clk, %d\n",
> > - id, ret);
> > - return ret;
> > - }
> > - qphy->pipe_clk = NULL;
> > + return dev_err_probe(dev, PTR_ERR(qphy->pipe_clk),
> > + "failed to get lane%d pipe clock\n", id);
> > }
>
> Please remove the brackets around a single statement.
For readability reasons I prefer keeping brackets around statements
spanning multiple lines instead of relying on indentation.
Johan
WARNING: multiple messages have this Message-ID (diff)
From: Johan Hovold <johan@kernel.org>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: Johan Hovold <johan+linaro@kernel.org>,
Vinod Koul <vkoul@kernel.org>, Andy Gross <agross@kernel.org>,
Bjorn Andersson <bjorn.andersson@linaro.org>,
Kishon Vijay Abraham I <kishon@ti.com>,
linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/3] phy: qcom-qmp-pcie: drop obsolete pipe clock type check
Date: Thu, 23 Jun 2022 13:51:44 +0200 [thread overview]
Message-ID: <YrRT0O8xSq30U8mh@hovoldconsulting.com> (raw)
In-Reply-To: <CAA8EJpp0XAZ3V9XQ2QnbrVoiKrdD_mxoTpKuzC34hKVPQ7wT0g@mail.gmail.com>
On Thu, Jun 23, 2022 at 02:44:28PM +0300, Dmitry Baryshkov wrote:
> On Thu, 23 Jun 2022 at 14:33, Johan Hovold <johan+linaro@kernel.org> wrote:
> >
> > Drop the obsolete pipe clock handling which was used to treat the pipe
> > clock as optional for types other than PCIe and USB and which is no
> > longer needed since splitting the PHY driver.
> >
> > Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
> > ---
> > diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c
> > if (IS_ERR(qphy->pipe_clk)) {
> > - if (cfg->type == PHY_TYPE_PCIE ||
> > - cfg->type == PHY_TYPE_USB3) {
> > - ret = PTR_ERR(qphy->pipe_clk);
> > - if (ret != -EPROBE_DEFER)
> > - dev_err(dev,
> > - "failed to get lane%d pipe_clk, %d\n",
> > - id, ret);
> > - return ret;
> > - }
> > - qphy->pipe_clk = NULL;
> > + return dev_err_probe(dev, PTR_ERR(qphy->pipe_clk),
> > + "failed to get lane%d pipe clock\n", id);
> > }
>
> Please remove the brackets around a single statement.
For readability reasons I prefer keeping brackets around statements
spanning multiple lines instead of relying on indentation.
Johan
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
next prev parent reply other threads:[~2022-06-23 11:51 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-23 11:33 [PATCH 0/3] phy: qcom-qmp: pipe clock cleanups Johan Hovold
2022-06-23 11:33 ` Johan Hovold
2022-06-23 11:33 ` [PATCH 1/3] phy: qcom-qmp-pcie: drop obsolete pipe clock type check Johan Hovold
2022-06-23 11:33 ` Johan Hovold
2022-06-23 11:44 ` Dmitry Baryshkov
2022-06-23 11:44 ` Dmitry Baryshkov
2022-06-23 11:51 ` Johan Hovold [this message]
2022-06-23 11:51 ` Johan Hovold
2022-06-23 11:33 ` [PATCH 2/3] phy: qcom-qmp-pcie-msm8996: " Johan Hovold
2022-06-23 11:33 ` Johan Hovold
2022-06-23 11:45 ` Dmitry Baryshkov
2022-06-23 11:45 ` Dmitry Baryshkov
2022-06-23 11:33 ` [PATCH 3/3] phy: qcom-qmp-usb: clean up pipe clock handling Johan Hovold
2022-06-23 11:33 ` Johan Hovold
2022-06-23 11:45 ` Dmitry Baryshkov
2022-06-23 11:45 ` Dmitry Baryshkov
2022-07-05 7:03 ` [PATCH 0/3] phy: qcom-qmp: pipe clock cleanups Vinod Koul
2022-07-05 7:03 ` 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=YrRT0O8xSq30U8mh@hovoldconsulting.com \
--to=johan@kernel.org \
--cc=agross@kernel.org \
--cc=bjorn.andersson@linaro.org \
--cc=dmitry.baryshkov@linaro.org \
--cc=johan+linaro@kernel.org \
--cc=kishon@ti.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=vkoul@kernel.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 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.