All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Marek Behún" <marek.behun@nic.cz>
To: Stefan Roese <sr@denx.de>
Cc: u-boot@lists.denx.de, Ramon Fried <rfried.dev@gmail.com>,
	Joe Hershberger <joe.hershberger@ni.com>,
	Aaron Williams <awilliams@marvell.com>,
	Chandrakala Chavva <cchavva@marvell.com>
Subject: Re: [PATCH v2 1/2] net: phy: marvell: Support reg config via "marvell,reg-init" DT property
Date: Thu, 31 Mar 2022 12:28:18 +0200	[thread overview]
Message-ID: <20220331122818.5e3abf85@thinkpad> (raw)
In-Reply-To: <20220331094307.1250315-1-sr@denx.de>

On Thu, 31 Mar 2022 11:43:06 +0200
Stefan Roese <sr@denx.de> wrote:

> This patch adds support for the "marvell,reg-init" DT property, which
> is used to describe board specific Marvell PHY register configurations
> in the board dts file. This DT property is supported in the Linux Kernel
> since a longer time. Adding it to U-Boot now, enables the boards which
> describe the register settings in their DT files here as well.
> 
> I've included calling this marvell_of_reg_init() to all foo_config()
> functions in this patch as well. If CONFIG_DM_ETH is not set, there is
> no ofnode, or no "marvell,reg-init" property, the PHY initialization is
> unchanged.
> 
> The function marvell_of_reg_init() is a port of the Linux version.
> Please note that I explicitly did not add error checking and handling
> to the U-Boot version, as this is basically not done for phy_read/write
> in this Marvell PHY code.
> 
> This will be used by the upcoming ethernet support on the MIPS
> Octeon EBB 7304 board.
> 
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Ramon Fried <rfried.dev@gmail.com>
> Cc: Joe Hershberger <joe.hershberger@ni.com>
> Cc: Aaron Williams <awilliams@marvell.com>
> Cc: Chandrakala Chavva <cchavva@marvell.com>
> Cc: Marek Behún <marek.behun@nic.cz>

I think fdt32_to_cpu() would be better than be32_to_cpup(), but that is
just a nitpick.

Reviewed-by: Marek Behún <marek.behun@nic.cz>

  parent reply	other threads:[~2022-03-31 10:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-31  9:43 [PATCH v2 1/2] net: phy: marvell: Support reg config via "marvell, reg-init" DT property Stefan Roese
2022-03-31  9:43 ` [PATCH v2 2/2] net: phy: marvell: Add support for 88E1240 PHY Stefan Roese
2022-03-31 10:28   ` Marek Behún
2022-08-08 19:07   ` Tom Rini
2022-03-31 10:28 ` Marek Behún [this message]
2022-08-08 19:07 ` [PATCH v2 1/2] net: phy: marvell: Support reg config via "marvell, reg-init" DT property Tom Rini

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=20220331122818.5e3abf85@thinkpad \
    --to=marek.behun@nic.cz \
    --cc=awilliams@marvell.com \
    --cc=cchavva@marvell.com \
    --cc=joe.hershberger@ni.com \
    --cc=rfried.dev@gmail.com \
    --cc=sr@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 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.