From: Chunfeng Yun <chunfeng.yun@mediatek.com>
To: Remi Pommarel <repk@triplefau.lt>
Cc: Ondrej Jirman <megous@megous.com>,
Peter Chen <peter.chen@nxp.com>,
Neil Armstrong <narmstrong@baylibre.com>,
Anil Varughese <aniljoy@cadence.com>,
Wei Yongjun <weiyongjun1@huawei.com>,
Fabio Estevam <festevam@gmail.com>,
Jerome Brunet <jbrunet@baylibre.com>,
Florian Fainelli <f.fainelli@gmail.com>,
Kevin Hilman <khilman@baylibre.com>,
Krzysztof Kozlowski <krzk@kernel.org>,
Kishon Vijay Abraham I <kishon@ti.com>,
Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>,
Chen-Yu Tsai <wens@csie.org>,
bcm-kernel-feedback-list@broadcom.com,
NXP Linux Team <linux-imx@nxp.com>,
Icenowy Zheng <icenowy@aosc.io>,
Bharat Gooty <bharat.gooty@broadcom.com>,
Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
Ray Jui <rjui@broadcom.com>,
Sascha Hauer <s.hauer@pengutronix.de>,
Maxime Ripard <mripard@kernel.org>,
Yue Wang <yue.wang@amlogic.com>, Lubomir Rintel <lkundrak@v3.sk>,
Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>,
linux-mediatek@lists.infradead.org,
Rikard Falkeborn <rikard.falkeborn@gmail.com>,
Matthias Brugger <matthias.bgg@gmail.com>,
linux-amlogic@lists.infradead.org,
linux-arm-kernel@lists.infradead.org,
Roger Quadros <rogerq@ti.com>,
Hanjie Lin <hanjie.lin@amlogic.com>,
Ma Feng <mafeng.ma@huawei.com>,
Scott Branden <sbranden@broadcom.com>,
Randy Dunlap <rdunlap@infradead.org>, Jyri Sarha <jsarha@ti.com>,
linux-kernel@vger.kernel.org, Vinod Koul <vkoul@kernel.org>,
Sanket Parmar <sparmar@cadence.com>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Joe Perches <joe@perches.com>,
Colin Ian King <colin.king@canonical.com>,
Shawn Guo <shawnguo@kernel.org>, Li Jun <jun.li@nxp.com>
Subject: Re: [PATCH 02/17] phy: amlogic: convert to devm_platform_ioremap_resource
Date: Fri, 30 Oct 2020 11:46:48 +0800 [thread overview]
Message-ID: <1604029608.31607.10.camel@mhfsdcap03> (raw)
In-Reply-To: <20201029082415.GB15700@pilgrim>
On Thu, 2020-10-29 at 09:24 +0100, Remi Pommarel wrote:
> Hi,
>
> On Thu, Oct 29, 2020 at 10:54:24AM +0800, Chunfeng Yun wrote:
> > Use devm_platform_ioremap_resource to simplify code
> >
> > Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
> > ---
> > drivers/phy/amlogic/phy-meson-axg-mipi-pcie-analog.c | 4 +---
> > drivers/phy/amlogic/phy-meson-axg-pcie.c | 4 +---
> > drivers/phy/amlogic/phy-meson-g12a-usb2.c | 4 +---
> > drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c | 4 +---
> > drivers/phy/amlogic/phy-meson-gxl-usb2.c | 4 +---
> > 5 files changed, 5 insertions(+), 15 deletions(-)
> >
> > diff --git a/drivers/phy/amlogic/phy-meson-axg-mipi-pcie-analog.c b/drivers/phy/amlogic/phy-meson-axg-mipi-pcie-analog.c
> > index 1431cbf885e1..7d06cda329fb 100644
> > --- a/drivers/phy/amlogic/phy-meson-axg-mipi-pcie-analog.c
> > +++ b/drivers/phy/amlogic/phy-meson-axg-mipi-pcie-analog.c
> > @@ -126,7 +126,6 @@ static int phy_axg_mipi_pcie_analog_probe(struct platform_device *pdev)
> > struct phy_axg_mipi_pcie_analog_priv *priv;
> > struct device_node *np = dev->of_node;
> > struct regmap *map;
> > - struct resource *res;
> > void __iomem *base;
> > int ret;
> >
> > @@ -134,8 +133,7 @@ static int phy_axg_mipi_pcie_analog_probe(struct platform_device *pdev)
> > if (!priv)
> > return -ENOMEM;
> >
> > - res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> > - base = devm_ioremap_resource(dev, res);
> > + base = devm_platform_ioremap_resource(pdev, 0);
> > if (IS_ERR(base)) {
> > dev_err(dev, "failed to get regmap base\n");
> > return PTR_ERR(base);
>
> This patch will conflict with [0] that uses syscon to map those shared
> resources instead and that is hopefully going to be merged soon.
>
> So I think you can skip this file.
Ok, will drop it, thanks
>
> > diff --git a/drivers/phy/amlogic/phy-meson-axg-pcie.c b/drivers/phy/amlogic/phy-meson-axg-pcie.c
> > index 377ed0dcd0d9..58a7507a8422 100644
> > --- a/drivers/phy/amlogic/phy-meson-axg-pcie.c
> > +++ b/drivers/phy/amlogic/phy-meson-axg-pcie.c
> > @@ -129,7 +129,6 @@ static int phy_axg_pcie_probe(struct platform_device *pdev)
> > struct device *dev = &pdev->dev;
> > struct phy_axg_pcie_priv *priv;
> > struct device_node *np = dev->of_node;
> > - struct resource *res;
> > void __iomem *base;
> > int ret;
> >
> > @@ -145,8 +144,7 @@ static int phy_axg_pcie_probe(struct platform_device *pdev)
> > return ret;
> > }
> >
> > - res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> > - base = devm_ioremap_resource(dev, res);
> > + base = devm_platform_ioremap_resource(pdev, 0);
> > if (IS_ERR(base))
> > return PTR_ERR(base);
> >
> > diff --git a/drivers/phy/amlogic/phy-meson-g12a-usb2.c b/drivers/phy/amlogic/phy-meson-g12a-usb2.c
> > index b26e30e1afaf..9d1efa0d9394 100644
> > --- a/drivers/phy/amlogic/phy-meson-g12a-usb2.c
> > +++ b/drivers/phy/amlogic/phy-meson-g12a-usb2.c
> > @@ -292,7 +292,6 @@ static int phy_meson_g12a_usb2_probe(struct platform_device *pdev)
> > {
> > struct device *dev = &pdev->dev;
> > struct phy_provider *phy_provider;
> > - struct resource *res;
> > struct phy_meson_g12a_usb2_priv *priv;
> > struct phy *phy;
> > void __iomem *base;
> > @@ -305,8 +304,7 @@ static int phy_meson_g12a_usb2_probe(struct platform_device *pdev)
> > priv->dev = dev;
> > platform_set_drvdata(pdev, priv);
> >
> > - res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> > - base = devm_ioremap_resource(dev, res);
> > + base = devm_platform_ioremap_resource(pdev, 0);
> > if (IS_ERR(base))
> > return PTR_ERR(base);
> >
> > diff --git a/drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c b/drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c
> > index 08e322789e59..ebe3d0ddd304 100644
> > --- a/drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c
> > +++ b/drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c
> > @@ -386,7 +386,6 @@ static int phy_g12a_usb3_pcie_probe(struct platform_device *pdev)
> > struct device *dev = &pdev->dev;
> > struct device_node *np = dev->of_node;
> > struct phy_g12a_usb3_pcie_priv *priv;
> > - struct resource *res;
> > struct phy_provider *phy_provider;
> > void __iomem *base;
> > int ret;
> > @@ -395,8 +394,7 @@ static int phy_g12a_usb3_pcie_probe(struct platform_device *pdev)
> > if (!priv)
> > return -ENOMEM;
> >
> > - res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> > - base = devm_ioremap_resource(dev, res);
> > + base = devm_platform_ioremap_resource(pdev, 0);
> > if (IS_ERR(base))
> > return PTR_ERR(base);
> >
> > diff --git a/drivers/phy/amlogic/phy-meson-gxl-usb2.c b/drivers/phy/amlogic/phy-meson-gxl-usb2.c
> > index 43ec9bf24abf..875afb2672c7 100644
> > --- a/drivers/phy/amlogic/phy-meson-gxl-usb2.c
> > +++ b/drivers/phy/amlogic/phy-meson-gxl-usb2.c
> > @@ -230,7 +230,6 @@ static int phy_meson_gxl_usb2_probe(struct platform_device *pdev)
> > {
> > struct device *dev = &pdev->dev;
> > struct phy_provider *phy_provider;
> > - struct resource *res;
> > struct phy_meson_gxl_usb2_priv *priv;
> > struct phy *phy;
> > void __iomem *base;
> > @@ -242,8 +241,7 @@ static int phy_meson_gxl_usb2_probe(struct platform_device *pdev)
> >
> > platform_set_drvdata(pdev, priv);
> >
> > - res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> > - base = devm_ioremap_resource(dev, res);
> > + base = devm_platform_ioremap_resource(pdev, 0);
> > if (IS_ERR(base))
> > return PTR_ERR(base);
> >
>
> So without the modification on phy-meson-axg-mipi-pcie-analog.c and
> FWIW,
>
> Reviewed-by: Remi Pommarel <repk@triplefau.lt>
>
> Thanks,
>
> [0] https://patchwork.kernel.org/project/linux-amlogic/patch/20200915130339.11079-4-narmstrong@baylibre.com/
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2020-10-30 3:47 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-29 2:54 [PATCH 01/17] phy: allwinner: convert to devm_platform_ioremap_resource(_byname) Chunfeng Yun
2020-10-29 2:54 ` [PATCH 02/17] phy: amlogic: convert to devm_platform_ioremap_resource Chunfeng Yun
2020-10-29 8:24 ` Remi Pommarel
2020-10-30 3:46 ` Chunfeng Yun [this message]
2020-10-29 2:54 ` [PATCH 03/17] phy: broadcom: convert to devm_platform_ioremap_resource(_byname) Chunfeng Yun
2020-10-30 3:49 ` Florian Fainelli
2020-10-29 2:54 ` [PATCH 04/17] phy: cadence: convert to devm_platform_ioremap_resource Chunfeng Yun
2020-10-29 10:50 ` Peter Chen
2020-10-29 2:54 ` [PATCH 05/17] phy: freescale: " Chunfeng Yun
2020-10-29 10:51 ` Peter Chen
2020-10-29 2:54 ` [PATCH 06/17] phy: lantiq: " Chunfeng Yun
2020-10-29 2:54 ` [PATCH 07/17] phy: marvell: " Chunfeng Yun
2020-10-29 2:54 ` [PATCH 08/17] phy: phy-xgene: " Chunfeng Yun
2020-10-29 2:54 ` [PATCH 09/17] phy: phy-mtk-ufs: " Chunfeng Yun
2020-10-29 2:54 ` [PATCH 10/17] phy: qualcomm: convert to devm_platform_ioremap_resource(_byname) Chunfeng Yun
2020-10-29 2:54 ` [PATCH 11/17] phy: phy-ralink-usb: convert to devm_platform_ioremap_resource Chunfeng Yun
2020-10-29 2:54 ` [PATCH 12/17] phy: renesas: " Chunfeng Yun
2020-10-29 2:54 ` [PATCH 13/17] phy: rockchip: " Chunfeng Yun
2020-10-29 2:54 ` [PATCH 14/17] phy: samsung: " Chunfeng Yun
2020-10-29 16:50 ` Krzysztof Kozlowski
2020-10-29 2:54 ` [PATCH 15/17] phy: phy-stm32-usbphyc: " Chunfeng Yun
2020-10-29 10:20 ` Amelie DELAUNAY
2020-10-29 2:54 ` [PATCH 16/17] phy: tegra: convert to devm_platform_ioremap_resource(_byname) Chunfeng Yun
2020-10-29 2:54 ` [PATCH 17/17] phy: ti: " Chunfeng Yun
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=1604029608.31607.10.camel@mhfsdcap03 \
--to=chunfeng.yun@mediatek.com \
--cc=aniljoy@cadence.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=bharat.gooty@broadcom.com \
--cc=colin.king@canonical.com \
--cc=f.fainelli@gmail.com \
--cc=festevam@gmail.com \
--cc=hanjie.lin@amlogic.com \
--cc=icenowy@aosc.io \
--cc=jbrunet@baylibre.com \
--cc=joe@perches.com \
--cc=jsarha@ti.com \
--cc=jun.li@nxp.com \
--cc=kernel@pengutronix.de \
--cc=khilman@baylibre.com \
--cc=kishon@ti.com \
--cc=krzk@kernel.org \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=lkundrak@v3.sk \
--cc=lorenzo.pieralisi@arm.com \
--cc=mafeng.ma@huawei.com \
--cc=martin.blumenstingl@googlemail.com \
--cc=matthias.bgg@gmail.com \
--cc=megous@megous.com \
--cc=mripard@kernel.org \
--cc=narmstrong@baylibre.com \
--cc=peter.chen@nxp.com \
--cc=rayagonda.kokatanur@broadcom.com \
--cc=rdunlap@infradead.org \
--cc=repk@triplefau.lt \
--cc=rikard.falkeborn@gmail.com \
--cc=rjui@broadcom.com \
--cc=rogerq@ti.com \
--cc=s.hauer@pengutronix.de \
--cc=sbranden@broadcom.com \
--cc=shawnguo@kernel.org \
--cc=sparmar@cadence.com \
--cc=vkoul@kernel.org \
--cc=weiyongjun1@huawei.com \
--cc=wens@csie.org \
--cc=yue.wang@amlogic.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;
as well as URLs for NNTP newsgroup(s).