From: Peter Chen <peter.chen@nxp.com>
To: balbi@kernel.org, shawnguo@kernel.org
Cc: robh+dt@kernel.org, fabio.estevam@nxp.com, kernel@pengutronix.de,
devicetree@vger.kernel.org, aisheng.dong@nxp.com,
linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org,
linux-usb@vger.kernel.org, chunfeng.yun@mediatek.com,
sergei.shtylyov@cogentembedded.com,
Peter Chen <peter.chen@nxp.com>
Subject: [PATCH v5 8/8] usb: chipidea: imx: "fsl,usbphy" phandle is not mandatory now
Date: Mon, 24 Jun 2019 10:02:58 +0800 [thread overview]
Message-ID: <20190624020258.21690-9-peter.chen@nxp.com> (raw)
In-Reply-To: <20190624020258.21690-1-peter.chen@nxp.com>
Since the chipidea common code support get the USB PHY phandle from
"phys", the glue layer is not mandatory to get the "fsl,usbphy" phandle
any more.
Signed-off-by: Peter Chen <peter.chen@nxp.com>
---
drivers/usb/chipidea/ci_hdrc_imx.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c
index a76708501236..b5abfe89190c 100644
--- a/drivers/usb/chipidea/ci_hdrc_imx.c
+++ b/drivers/usb/chipidea/ci_hdrc_imx.c
@@ -398,8 +398,9 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev)
ret = PTR_ERR(data->phy);
/* Return -EINVAL if no usbphy is available */
if (ret == -ENODEV)
- ret = -EINVAL;
- goto err_clk;
+ data->phy = NULL;
+ else
+ goto err_clk;
}
pdata.usb_phy = data->phy;
--
2.14.1
WARNING: multiple messages have this Message-ID (diff)
From: Peter Chen <peter.chen@nxp.com>
To: balbi@kernel.org, shawnguo@kernel.org
Cc: aisheng.dong@nxp.com, devicetree@vger.kernel.org,
sergei.shtylyov@cogentembedded.com,
Peter Chen <peter.chen@nxp.com>,
linux-usb@vger.kernel.org, chunfeng.yun@mediatek.com,
robh+dt@kernel.org, linux-imx@nxp.com, kernel@pengutronix.de,
fabio.estevam@nxp.com, linux-arm-kernel@lists.infradead.org
Subject: [PATCH v5 8/8] usb: chipidea: imx: "fsl, usbphy" phandle is not mandatory now
Date: Mon, 24 Jun 2019 10:02:58 +0800 [thread overview]
Message-ID: <20190624020258.21690-9-peter.chen@nxp.com> (raw)
In-Reply-To: <20190624020258.21690-1-peter.chen@nxp.com>
Since the chipidea common code support get the USB PHY phandle from
"phys", the glue layer is not mandatory to get the "fsl,usbphy" phandle
any more.
Signed-off-by: Peter Chen <peter.chen@nxp.com>
---
drivers/usb/chipidea/ci_hdrc_imx.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c
index a76708501236..b5abfe89190c 100644
--- a/drivers/usb/chipidea/ci_hdrc_imx.c
+++ b/drivers/usb/chipidea/ci_hdrc_imx.c
@@ -398,8 +398,9 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev)
ret = PTR_ERR(data->phy);
/* Return -EINVAL if no usbphy is available */
if (ret == -ENODEV)
- ret = -EINVAL;
- goto err_clk;
+ data->phy = NULL;
+ else
+ goto err_clk;
}
pdata.usb_phy = data->phy;
--
2.14.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
WARNING: multiple messages have this Message-ID (diff)
From: Peter Chen <peter.chen@nxp.com>
To: balbi@kernel.org, shawnguo@kernel.org
Cc: aisheng.dong@nxp.com, devicetree@vger.kernel.org,
sergei.shtylyov@cogentembedded.com,
Peter Chen <peter.chen@nxp.com>,
linux-usb@vger.kernel.org, chunfeng.yun@mediatek.com,
robh+dt@kernel.org, linux-imx@nxp.com, kernel@pengutronix.de,
fabio.estevam@nxp.com, linux-arm-kernel@lists.infradead.org
Subject: [PATCH v5 8/8] usb: chipidea: imx: "fsl, usbphy" phandle is not mandatory now
Date: Mon, 24 Jun 2019 10:02:58 +0800 [thread overview]
Message-ID: <20190624020258.21690-9-peter.chen@nxp.com> (raw)
In-Reply-To: <20190624020258.21690-1-peter.chen@nxp.com>
Since the chipidea common code support get the USB PHY phandle from
"phys", the glue layer is not mandatory to get the "fsl,usbphy" phandle
any more.
Signed-off-by: Peter Chen <peter.chen@nxp.com>
---
drivers/usb/chipidea/ci_hdrc_imx.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c
index a76708501236..b5abfe89190c 100644
--- a/drivers/usb/chipidea/ci_hdrc_imx.c
+++ b/drivers/usb/chipidea/ci_hdrc_imx.c
@@ -398,8 +398,9 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev)
ret = PTR_ERR(data->phy);
/* Return -EINVAL if no usbphy is available */
if (ret == -ENODEV)
- ret = -EINVAL;
- goto err_clk;
+ data->phy = NULL;
+ else
+ goto err_clk;
}
pdata.usb_phy = data->phy;
--
2.14.1
next prev parent reply other threads:[~2019-06-24 2:01 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-24 2:02 [PATCH v5 0/8] Add imx7ulp USBOTG1 support Peter Chen
2019-06-24 2:02 ` Peter Chen
2019-06-24 2:02 ` Peter Chen
2019-06-24 2:02 ` [PATCH v5 1/8] doc: dt-binding: mxs-usb-phy: add compatible for 7ulp Peter Chen
2019-06-24 2:02 ` Peter Chen
2019-06-24 2:02 ` Peter Chen
2019-06-24 2:02 ` [PATCH v5 2/8] usb: phy: phy-mxs-usb: add imx7ulp support Peter Chen
2019-06-24 2:02 ` Peter Chen
2019-06-24 2:02 ` Peter Chen
2019-06-24 3:09 ` Peter Chen
2019-06-24 3:09 ` Peter Chen
2019-06-24 3:09 ` Peter Chen
2019-07-02 2:22 ` Peter Chen
2019-07-02 2:22 ` Peter Chen
2019-07-02 2:22 ` Peter Chen
2019-06-24 2:02 ` [PATCH v5 3/8] doc: dt-binding: ci-hdrc-usb2: add compatible string for imx7ulp Peter Chen
2019-06-24 2:02 ` Peter Chen
2019-06-24 2:02 ` Peter Chen
2019-06-24 2:02 ` [PATCH v5 4/8] doc: dt-binding: usbmisc-imx: " Peter Chen
2019-06-24 2:02 ` Peter Chen
2019-06-24 2:02 ` Peter Chen
2019-06-24 2:02 ` [PATCH v5 5/8] usb: chipidea: imx: add imx7ulp support Peter Chen
2019-06-24 2:02 ` Peter Chen
2019-06-24 2:02 ` Peter Chen
2019-06-24 2:02 ` [PATCH v5 6/8] ARM: dts: imx7ulp: add imx7ulp USBOTG1 support Peter Chen
2019-06-24 2:02 ` Peter Chen
2019-06-24 2:02 ` Peter Chen
2019-06-24 3:01 ` Shawn Guo
2019-06-24 3:01 ` Shawn Guo
2019-06-24 3:01 ` Shawn Guo
2019-06-24 2:02 ` [PATCH v5 7/8] ARM: dts: imx7ulp-evk: enable " Peter Chen
2019-06-24 2:02 ` Peter Chen
2019-06-24 2:02 ` Peter Chen
2019-06-24 3:03 ` Shawn Guo
2019-06-24 3:03 ` Shawn Guo
2019-06-24 3:03 ` Shawn Guo
2019-06-24 2:02 ` Peter Chen [this message]
2019-06-24 2:02 ` [PATCH v5 8/8] usb: chipidea: imx: "fsl, usbphy" phandle is not mandatory now Peter Chen
2019-06-24 2:02 ` Peter Chen
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=20190624020258.21690-9-peter.chen@nxp.com \
--to=peter.chen@nxp.com \
--cc=aisheng.dong@nxp.com \
--cc=balbi@kernel.org \
--cc=chunfeng.yun@mediatek.com \
--cc=devicetree@vger.kernel.org \
--cc=fabio.estevam@nxp.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=linux-usb@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=sergei.shtylyov@cogentembedded.com \
--cc=shawnguo@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.