From: Sascha Hauer <s.hauer@pengutronix.de> To: Barebox List <barebox@lists.infradead.org> Subject: [PATCH 7/7] fixup! phy: rockchip: Add naneng-combphy support Date: Tue, 22 Jun 2021 08:47:11 +0200 [thread overview] Message-ID: <20210622064711.14058-7-s.hauer@pengutronix.de> (raw) In-Reply-To: <20210622064711.14058-1-s.hauer@pengutronix.de> --- drivers/phy/rockchip/phy-rockchip-naneng-combphy.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c b/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c index a8d7fd13d8..af4340f90d 100644 --- a/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c +++ b/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c @@ -401,17 +401,10 @@ static int rk3568_combphy_cfg(struct rockchip_combphy_priv *priv) const struct rockchip_combphy_grfcfg *cfg = priv->cfg->grfcfg; struct clk *refclk = NULL; unsigned long rate; - int i; u32 val; /* Configure PHY reference clock frequency */ - for (i = 0; i < priv->num_clks; i++) { - if (!strncmp(priv->clks[i].id, "refclk", 6)) { - refclk = priv->clks[i].clk; - break; - } - } - + refclk = priv->clks[0].clk; if (!refclk) { dev_err(priv->dev, "No refclk found\n"); return -EINVAL; -- 2.29.2 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox
prev parent reply other threads:[~2021-06-22 6:48 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-06-22 6:47 [PATCH 1/7] usb: ehci: Handle clocks and phys Sascha Hauer 2021-06-22 6:47 ` [PATCH 2/7] phy: Rockchip: Add driver for usb2phy Sascha Hauer 2021-06-22 6:47 ` [PATCH 3/7] phy: rockchip: Add naneng-combphy support Sascha Hauer 2021-06-22 6:47 ` [PATCH 4/7] ARM: Rockchip: rk3568: Add USB nodes Sascha Hauer 2021-06-22 6:47 ` [PATCH 5/7] ARM: Rockchip: rk3568 EVB: Add USB support Sascha Hauer 2021-06-22 6:47 ` [PATCH 6/7] fixup! phy: Rockchip: Add driver for usb2phy Sascha Hauer 2021-06-22 6:54 ` Sascha Hauer 2021-06-22 6:47 ` Sascha Hauer [this message]
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=20210622064711.14058-7-s.hauer@pengutronix.de \ --to=s.hauer@pengutronix.de \ --cc=barebox@lists.infradead.org \ --subject='Re: [PATCH 7/7] fixup'\!' phy: rockchip: Add naneng-combphy support' \ /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
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox