From: Lukasz Majewski <lukma@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] phy: ti: Init node before reading
Date: Mon, 18 Mar 2019 09:38:27 +0100 [thread overview]
Message-ID: <20190318093827.403870c4@jawa> (raw)
In-Reply-To: <907e06a879d9ec7b36882d8c6f1e5ff8aee19c67.1552736591.git.michal.simek@xilinx.com>
Hi Michal,
> There is a need to fill node before clk_output_sel is setup.
Could you be more specific about this issue ?
I assume that the issue is on a system where Xilinx is used. I did my
work/testing on a system where TI's SoC was used instead, so I'm curious
what are the problems on Xilinx.
Thanks in advance.
>
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> Acked-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
> ---
>
> drivers/net/phy/ti.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/net/phy/ti.c b/drivers/net/phy/ti.c
> index 6db6edd0d0c8..10989dd40309 100644
> --- a/drivers/net/phy/ti.c
> +++ b/drivers/net/phy/ti.c
> @@ -216,6 +216,10 @@ static int dp83867_of_init(struct phy_device
> *phydev)
> /* Optional configuration */
>
> + node = phy_get_ofnode(phydev);
> + if (!ofnode_valid(node))
> + return -EINVAL;
> +
> /*
> * Keep the default value if ti,clk-output-sel is not set
> * or to high
> @@ -225,10 +229,6 @@ static int dp83867_of_init(struct phy_device
> *phydev) ofnode_read_u32_default(node, "ti,clk-output-sel",
> DP83867_CLK_O_SEL_REF_CLK);
>
> - node = phy_get_ofnode(phydev);
> - if (!ofnode_valid(node))
> - return -EINVAL;
> -
> if (ofnode_read_bool(node, "ti,max-output-impedance"))
> dp83867->io_impedance =
> DP83867_IO_MUX_CFG_IO_IMPEDANCE_MAX; else if (ofnode_read_bool(node,
> "ti,min-output-impedance"))
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190318/eb420b69/attachment.sig>
next prev parent reply other threads:[~2019-03-18 8:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-16 11:43 [U-Boot] [PATCH] phy: ti: Init node before reading Michal Simek
2019-03-16 23:06 ` Hannes Schmelzer
2019-04-09 10:51 ` Michal Simek
2019-04-09 17:14 ` Joe Hershberger
2019-03-18 8:38 ` Lukasz Majewski [this message]
2019-03-18 9:33 ` Michal Simek
2019-05-14 20:03 ` [U-Boot] " Joe Hershberger
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=20190318093827.403870c4@jawa \
--to=lukma@denx.de \
--cc=u-boot@lists.denx.de \
/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