public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Dimitri Fedrau <dima.fedrau@gmail.com>
To: Gerhard Engleder <gerhard@engleder-embedded.com>
Cc: dimitri.fedrau@liebherr.com, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org, Jakub Kicinski <kuba@kernel.org>,
	Eric Dumazet <edumazet@google.com>,
	Paolo Abeni <pabeni@redhat.com>,
	"David S. Miller" <davem@davemloft.net>,
	Russell King <linux@armlinux.org.uk>,
	Heiner Kallweit <hkallweit1@gmail.com>,
	Andrew Lunn <andrew@lunn.ch>
Subject: Re: [PATCH] net: phy: dp83822: fix transmit amplitude if CONFIG_OF_MDIO not defined
Date: Sun, 16 Mar 2025 12:21:58 +0100	[thread overview]
Message-ID: <20250316112158.GA4035@debian> (raw)
In-Reply-To: <b753c0e7-e055-4764-b558-68b7258a6b6f@engleder-embedded.com>

Am Wed, Mar 12, 2025 at 08:53:29PM +0100 schrieb Gerhard Engleder:
> On 12.03.25 18:23, Dimitri Fedrau via B4 Relay wrote:
> > From: Dimitri Fedrau <dimitri.fedrau@liebherr.com>
> > 
> > When CONFIG_OF_MDIO is not defined the index for selecting the transmit
> > amplitude voltage for 100BASE-TX is set to 0, but it should be -1, if there
> > is no need to modify the transmit amplitude voltage. Add a flag to make
> > sure there is a need to modify it.
> > 
> > Fixes: 4f3735e82d8a ("net: phy: dp83822: Add support for changing the transmit amplitude voltage")
> > Signed-off-by: Dimitri Fedrau <dimitri.fedrau@liebherr.com>
> > ---
> >   drivers/net/phy/dp83822.c | 5 ++++-
> >   1 file changed, 4 insertions(+), 1 deletion(-)
> > 
> > diff --git a/drivers/net/phy/dp83822.c b/drivers/net/phy/dp83822.c
> > index 3662f3905d5ade8ad933608fcaeabb714a588418..d69000cb0ceff28e8288ba24e0af1c960ea9cc97 100644
> > --- a/drivers/net/phy/dp83822.c
> > +++ b/drivers/net/phy/dp83822.c
> > @@ -201,6 +201,7 @@ struct dp83822_private {
> >   	bool set_gpio2_clk_out;
> >   	u32 gpio2_clk_out;
> >   	bool led_pin_enable[DP83822_MAX_LED_PINS];
> > +	bool tx_amplitude_100base_tx_modify;
> >   	int tx_amplitude_100base_tx_index;
> >   };
> 
> You could instead init tx_amplitude_100base_tx_index in
> dp8382x_probe() to -1.
> 
> But functional it should be ok.
> 
> Reviewed-by: Gerhard Engleder <gerhard@engleder-embedded.com>
>
Hi Gerhard,

will send out an V2 implementing your proposal. Thanks for reviewing.

Best regards,
Dimitri Fedrau

      reply	other threads:[~2025-03-16 11:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-12 17:23 [PATCH] net: phy: dp83822: fix transmit amplitude if CONFIG_OF_MDIO not defined Dimitri Fedrau via B4 Relay
2025-03-12 19:53 ` Gerhard Engleder
2025-03-16 11:21   ` Dimitri Fedrau [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=20250316112158.GA4035@debian \
    --to=dima.fedrau@gmail.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=dimitri.fedrau@liebherr.com \
    --cc=edumazet@google.com \
    --cc=gerhard@engleder-embedded.com \
    --cc=hkallweit1@gmail.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    /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