From: Abel Vesa <abel.vesa@linaro.org>
To: Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
Cc: Vinod Koul <vkoul@kernel.org>,
Kishon Vijay Abraham I <kishon@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Alim Akhtar <alim.akhtar@samsung.com>,
Philipp Zabel <p.zabel@pengutronix.de>,
linux-arm-msm@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-samsung-soc@vger.kernel.org, linux-phy@lists.infradead.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 5/8] phy: phy-snps-eusb2: make repeater optional
Date: Mon, 24 Feb 2025 12:11:55 +0200 [thread overview]
Message-ID: <Z7xF66TctF2wuoGj@linaro.org> (raw)
In-Reply-To: <20250223122227.725233-6-ivo.ivanov.ivanov1@gmail.com>
On 25-02-23 14:22:24, Ivaylo Ivanov wrote:
> Some platforms initialize their eUSB2 to USB repeater in the previous
> stage bootloader and leave it in a working state for linux. Make the
> repeater optional in order to allow for reusing that state until
> proper repeater drivers are introduced.
>
> Signed-off-by: Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
> ---
> drivers/phy/phy-snps-eusb2.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/phy/phy-snps-eusb2.c b/drivers/phy/phy-snps-eusb2.c
> index 4e5914a76..dcc69c00a 100644
> --- a/drivers/phy/phy-snps-eusb2.c
> +++ b/drivers/phy/phy-snps-eusb2.c
> @@ -461,7 +461,7 @@ static int snps_eusb2_hsphy_probe(struct platform_device *pdev)
> return dev_err_probe(dev, ret,
> "failed to get regulator supplies\n");
>
> - phy->repeater = devm_of_phy_get_by_index(dev, np, 0);
> + phy->repeater = devm_of_phy_optional_get(dev, np, 0);
Maybe make it optional based on compatible or something?
> if (IS_ERR(phy->repeater))
> return dev_err_probe(dev, PTR_ERR(phy->repeater),
> "failed to get repeater\n");
> --
> 2.43.0
>
WARNING: multiple messages have this Message-ID (diff)
From: Abel Vesa <abel.vesa@linaro.org>
To: Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
Cc: Vinod Koul <vkoul@kernel.org>,
Kishon Vijay Abraham I <kishon@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Alim Akhtar <alim.akhtar@samsung.com>,
Philipp Zabel <p.zabel@pengutronix.de>,
linux-arm-msm@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-samsung-soc@vger.kernel.org, linux-phy@lists.infradead.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 5/8] phy: phy-snps-eusb2: make repeater optional
Date: Mon, 24 Feb 2025 12:11:55 +0200 [thread overview]
Message-ID: <Z7xF66TctF2wuoGj@linaro.org> (raw)
In-Reply-To: <20250223122227.725233-6-ivo.ivanov.ivanov1@gmail.com>
On 25-02-23 14:22:24, Ivaylo Ivanov wrote:
> Some platforms initialize their eUSB2 to USB repeater in the previous
> stage bootloader and leave it in a working state for linux. Make the
> repeater optional in order to allow for reusing that state until
> proper repeater drivers are introduced.
>
> Signed-off-by: Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
> ---
> drivers/phy/phy-snps-eusb2.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/phy/phy-snps-eusb2.c b/drivers/phy/phy-snps-eusb2.c
> index 4e5914a76..dcc69c00a 100644
> --- a/drivers/phy/phy-snps-eusb2.c
> +++ b/drivers/phy/phy-snps-eusb2.c
> @@ -461,7 +461,7 @@ static int snps_eusb2_hsphy_probe(struct platform_device *pdev)
> return dev_err_probe(dev, ret,
> "failed to get regulator supplies\n");
>
> - phy->repeater = devm_of_phy_get_by_index(dev, np, 0);
> + phy->repeater = devm_of_phy_optional_get(dev, np, 0);
Maybe make it optional based on compatible or something?
> if (IS_ERR(phy->repeater))
> return dev_err_probe(dev, PTR_ERR(phy->repeater),
> "failed to get repeater\n");
> --
> 2.43.0
>
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
next prev parent reply other threads:[~2025-02-24 10:20 UTC|newest]
Thread overview: 73+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-23 12:22 [PATCH v2 0/8] phy: samsung: add Exynos2200 SNPS eUSB2 driver Ivaylo Ivanov
2025-02-23 12:22 ` Ivaylo Ivanov
2025-02-23 12:22 ` [PATCH v2 1/8] dt-bindings: phy: rename qcom,snps-eusb2-phy binding to snps,eusb2-phy Ivaylo Ivanov
2025-02-23 12:22 ` Ivaylo Ivanov
2025-02-25 11:47 ` Krzysztof Kozlowski
2025-02-25 11:47 ` Krzysztof Kozlowski
2025-02-23 12:22 ` [PATCH v2 2/8] dt-bindings: phy: snps-eusb2: add exynos2200 support Ivaylo Ivanov
2025-02-23 12:22 ` Ivaylo Ivanov
2025-02-23 23:43 ` Dmitry Baryshkov
2025-02-23 23:43 ` Dmitry Baryshkov
2025-02-24 7:14 ` Ivaylo Ivanov
2025-02-24 7:14 ` Ivaylo Ivanov
2025-02-25 11:46 ` Krzysztof Kozlowski
2025-02-25 11:46 ` Krzysztof Kozlowski
2025-02-23 12:22 ` [PATCH v2 3/8] dt-bindings: phy: add samsung,exynos2200-usbcon-phy schema file Ivaylo Ivanov
2025-02-23 12:22 ` Ivaylo Ivanov
2025-02-23 13:42 ` Rob Herring (Arm)
2025-02-23 13:42 ` Rob Herring (Arm)
2025-02-24 8:56 ` Krzysztof Kozlowski
2025-02-24 8:56 ` Krzysztof Kozlowski
2025-02-24 10:48 ` Ivaylo Ivanov
2025-02-24 10:48 ` Ivaylo Ivanov
2025-02-25 8:11 ` Krzysztof Kozlowski
2025-02-25 8:11 ` Krzysztof Kozlowski
2025-03-02 9:16 ` Ivaylo Ivanov
2025-03-02 9:16 ` Ivaylo Ivanov
2025-03-03 7:24 ` Krzysztof Kozlowski
2025-03-03 7:24 ` Krzysztof Kozlowski
2025-03-03 7:24 ` Krzysztof Kozlowski
2025-03-03 17:18 ` Ivaylo Ivanov
2025-03-03 17:18 ` Ivaylo Ivanov
2025-03-04 7:21 ` Krzysztof Kozlowski
2025-03-04 7:21 ` Krzysztof Kozlowski
2025-03-04 9:09 ` Ivaylo Ivanov
2025-03-04 9:09 ` Ivaylo Ivanov
2025-03-04 10:03 ` Krzysztof Kozlowski
2025-03-04 10:03 ` Krzysztof Kozlowski
2025-03-04 10:37 ` Ivaylo Ivanov
2025-03-04 10:37 ` Ivaylo Ivanov
2025-02-23 12:22 ` [PATCH v2 4/8] phy: move phy-qcom-snps-eusb2 out of its vendor sub-directory Ivaylo Ivanov
2025-02-23 12:22 ` Ivaylo Ivanov
2025-02-24 10:59 ` neil.armstrong
2025-02-24 10:59 ` neil.armstrong
2025-03-07 17:38 ` Dan Carpenter
2025-03-07 17:38 ` Dan Carpenter
2025-02-23 12:22 ` [PATCH v2 5/8] phy: phy-snps-eusb2: make repeater optional Ivaylo Ivanov
2025-02-23 12:22 ` Ivaylo Ivanov
2025-02-24 10:11 ` Abel Vesa [this message]
2025-02-24 10:11 ` Abel Vesa
2025-02-24 10:55 ` neil.armstrong
2025-02-24 10:55 ` neil.armstrong
2025-03-02 2:08 ` kernel test robot
2025-03-02 2:08 ` kernel test robot
2025-03-19 11:08 ` Dmitry Baryshkov
2025-03-19 11:08 ` Dmitry Baryshkov
2025-03-19 11:39 ` Ivaylo Ivanov
2025-03-19 11:39 ` Ivaylo Ivanov
2025-02-23 12:22 ` [PATCH v2 6/8] phy: phy-snps-eusb2: make reset control optional Ivaylo Ivanov
2025-02-23 12:22 ` Ivaylo Ivanov
2025-02-23 23:48 ` Dmitry Baryshkov
2025-02-23 23:48 ` Dmitry Baryshkov
2025-02-24 7:28 ` Ivaylo Ivanov
2025-02-24 7:28 ` Ivaylo Ivanov
2025-02-23 12:22 ` [PATCH v2 7/8] phy: phy-snps-eusb2: add support for exynos2200 Ivaylo Ivanov
2025-02-23 12:22 ` Ivaylo Ivanov
2025-02-23 23:51 ` Dmitry Baryshkov
2025-02-23 23:51 ` Dmitry Baryshkov
2025-02-24 7:30 ` Ivaylo Ivanov
2025-02-24 7:30 ` Ivaylo Ivanov
2025-02-23 12:22 ` [PATCH v2 8/8] phy: samsung: add Exynos2200 usb phy controller Ivaylo Ivanov
2025-02-23 12:22 ` Ivaylo Ivanov
2025-02-23 23:54 ` Dmitry Baryshkov
2025-02-23 23:54 ` 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=Z7xF66TctF2wuoGj@linaro.org \
--to=abel.vesa@linaro.org \
--cc=alim.akhtar@samsung.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=ivo.ivanov.ivanov1@gmail.com \
--cc=kishon@kernel.org \
--cc=krzk+dt@kernel.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=linux-samsung-soc@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.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.