From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
To: Varadarajan Narayanan <quic_varada@quicinc.com>
Cc: agross@kernel.org, andersson@kernel.org,
konrad.dybcio@linaro.org, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org,
catalin.marinas@arm.com, will@kernel.org, vkoul@kernel.org,
kishon@kernel.org, arnd@arndb.de, geert+renesas@glider.be,
nfraprado@collabora.com, rafal@milecki.pl, peng.fan@nxp.com,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-phy@lists.infradead.org
Subject: Re: [PATCH v9 1/4] phy: qcom: m31: Fix indentation issues
Date: Tue, 22 Aug 2023 14:33:06 +0300 [thread overview]
Message-ID: <a9aee232-7bf2-4f4d-b42a-1f7ec1434393@linaro.org> (raw)
In-Reply-To: <CAA8EJpryKOzGd42NjG470D9jGr1Huv5D-F-NqaTo-0EJeFUr+A@mail.gmail.com>
On 22/08/2023 13:55, Dmitry Baryshkov wrote:
> On Tue, 22 Aug 2023 at 13:31, Varadarajan Narayanan
> <quic_varada@quicinc.com> wrote:
>>
>> * Fix indentation
>> * Drop simple success messages
>>
>> Signed-off-by: Varadarajan Narayanan <quic_varada@quicinc.com>
>> ---
>> v9:
>> Fix line break alignment
>> Remove register success print
>> v8 version of the driver has been picked up for merge.
>> (https://lore.kernel.org/linux-arm-msm/169226613917.81413.1200008047604336868.b4-ty@kernel.org/)
>> v8:
>> Change commit subject and message per review comments
>> Don't include of_platform.h
>> Change struct init coding style
>> GENMASK -> BIT for one define
>> v6:
>> Kconfig:Add COMPILE_TEST and remove USB_GADGET from 'depends'
>> Change 'selects' USB_PHY -> GENERIC_PHY
>> Driver: Use correct headers
>> const int -> unsigned int for 'nregs' in private data
>> Use generic names for clk, phy in m31 phy structure
>> Init register details directly instead of using macro
>> Use dev_err_probe in the error paths of driver probe
>> v5:
>> Kconfig and Makefile:- place snippet according to sorted order
>> Use generic phy instead of usb-phy
>> Use ARRAY_SIZE for reg init instead of blank last entry
>> Fix copyright year
>>
>> v4:
>> Remove unused enum
>> Error handling for devm_clk_get
>> v1:
>> Combine driver, makefile and kconfig into 1 patch
>> Remove 'qscratch' region and its usage. The controller driver takes care
>> of those settings
>> Use compatible/data to handle ipq5332 init
>> Drop the default case
>> Get resources by index instead of name as there is only one resource
>> Add clock
>> Fix review comments in the driver
>> ---
>> drivers/phy/qualcomm/phy-qcom-m31.c | 8 +++-----
>> 1 file changed, 3 insertions(+), 5 deletions(-)
>>
>> diff --git a/drivers/phy/qualcomm/phy-qcom-m31.c b/drivers/phy/qualcomm/phy-qcom-m31.c
>> index ed08072..ea79c18 100644
>> --- a/drivers/phy/qualcomm/phy-qcom-m31.c
>> +++ b/drivers/phy/qualcomm/phy-qcom-m31.c
>> @@ -242,7 +242,7 @@ static int m31usb_phy_probe(struct platform_device *pdev)
>> qphy->clk = devm_clk_get(dev, NULL);
>> if (IS_ERR(qphy->clk))
>> return dev_err_probe(dev, PTR_ERR(qphy->clk),
>> - "failed to get clk\n");
>> + "failed to get clk\n");
>
> But why are you trying to fix this? aligning next line to the opening
> bracket is perfectly fine (and is one of the endorsed styles).
Ugh, excuse me. My mailer displayed alignment in a wrong way.
This LGTM except the last chunk (removal of the info message).
>
>>
>> data = of_device_get_match_data(dev);
>> qphy->regs = data->regs;
>> @@ -252,18 +252,16 @@ static int m31usb_phy_probe(struct platform_device *pdev)
>> qphy->phy = devm_phy_create(dev, NULL, &m31usb_phy_gen_ops);
>> if (IS_ERR(qphy->phy))
>> return dev_err_probe(dev, PTR_ERR(qphy->phy),
>> - "failed to create phy\n");
>> + "failed to create phy\n");
>>
>> qphy->vreg = devm_regulator_get(dev, "vdda-phy");
>> if (IS_ERR(qphy->vreg))
>> return dev_err_probe(dev, PTR_ERR(qphy->phy),
>> - "failed to get vreg\n");
>> + "failed to get vreg\n");
>>
>> phy_set_drvdata(qphy->phy, qphy);
>>
>> phy_provider = devm_of_phy_provider_register(dev, of_phy_simple_xlate);
>> - if (!IS_ERR(phy_provider))
>> - dev_info(dev, "Registered M31 USB phy\n");
>
> This is irrelevant to the indentation.
>
>>
>> return PTR_ERR_OR_ZERO(phy_provider);
>> }
>> --
>> 2.7.4
>>
>
>
--
With best wishes
Dmitry
next prev parent reply other threads:[~2023-08-22 11:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-22 10:29 [PATCH v9 0/4] Enable IPQ5332 USB2 Varadarajan Narayanan
2023-08-22 10:29 ` [PATCH v9 1/4] phy: qcom: m31: Fix indentation issues Varadarajan Narayanan
2023-08-22 10:55 ` Dmitry Baryshkov
2023-08-22 11:33 ` Dmitry Baryshkov [this message]
2023-08-22 11:47 ` Krzysztof Kozlowski
2023-08-22 10:29 ` [PATCH v9 2/4] arm64: dts: qcom: ipq5332: Add USB related nodes Varadarajan Narayanan
2023-08-22 11:40 ` Krzysztof Kozlowski
2023-08-23 5:18 ` Varadarajan Narayanan
2023-08-22 10:29 ` [PATCH v9 3/4] arm64: dts: qcom: ipq5332: Enable USB Varadarajan Narayanan
2023-08-22 11:39 ` Krzysztof Kozlowski
2023-08-22 10:29 ` [PATCH v9 4/4] arm64: defconfig: Enable M31 USB phy driver Varadarajan Narayanan
2023-08-22 11:33 ` Dmitry Baryshkov
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=a9aee232-7bf2-4f4d-b42a-1f7ec1434393@linaro.org \
--to=dmitry.baryshkov@linaro.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=arnd@arndb.de \
--cc=catalin.marinas@arm.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=geert+renesas@glider.be \
--cc=kishon@kernel.org \
--cc=konrad.dybcio@linaro.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=nfraprado@collabora.com \
--cc=peng.fan@nxp.com \
--cc=quic_varada@quicinc.com \
--cc=rafal@milecki.pl \
--cc=robh+dt@kernel.org \
--cc=vkoul@kernel.org \
--cc=will@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 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).