mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Oleksij Rempel <linux@rempel-privat.de>
To: barebox@lists.infradead.org
Subject: Re: [PATCH 5/7] net: phy: at803x: add support for configuring SmartEEE
Date: Mon, 10 Jul 2023 14:10:13 +0200	[thread overview]
Message-ID: <d8057a76-dfc5-bdc1-3949-63933a904ecb@rempel-privat.de> (raw)
In-Reply-To: <08b0cae6-4dd5-b349-296c-e24ec761f30f@pengutronix.de>

Am 10.07.23 um 12:10 schrieb Ahmad Fatoum:
> On 10.07.23 08:36, Marco Felsch wrote:
>> This commit port Linux commit:
>>
>> | commit 390b4cad81484124db2b676ed20a265adc032bae
>> | Author: Russell King <rmk+kernel@armlinux.org.uk>
>> | Date:   Thu Jan 14 10:45:49 2021 +0000
>> |
>> |     net: phy: at803x: add support for configuring SmartEEE
>> |
>> |     SmartEEE for the atheros phy was deemed buggy by Freescale and commits
>> |     were added to disable it for their boards.
>> |
>> |     In initial testing, SolidRun found that the default settings were
>> |     causing disconnects but by increasing the Tw buffer time we could allow
>> |     enough time for all parts of the link to come out of a low power state
>> |     and function properly without causing a disconnect. This allows us to
>> |     have functional power savings of between 300 and 400mW, rather than
>> |     disabling the feature altogether.
>> |
>> |     This commit adds support for disabling SmartEEE and configuring the Tw
>> |     parameters for 1G and 100M speeds.
>> |
>> |     Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
>> |     Signed-off-by: Jakub Kicinski <kuba@kernel.org>
>>
>> I slightly adapted the at803x_config_init() as well to be more in line
>> with the Linux code base.
>>
>> Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
>
> Same question as in follow-up commit: Can't we just disable it unconditionally?

Most of PHYs with EEE support have EEE advertisement register on the same offset. I would recommend
to create a common function for all PHYs drivers to clear all EEE advertising bits and call it the
PHY framework. EEE should be never advertised by barebox. As a side effect, if Atheros PHY do not
advertise EEE, SmartEEE will not be activated.

--
Regards,
Oleksij




  reply	other threads:[~2023-07-10 12:11 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-10  6:36 [PATCH 1/7] ARM: boards: make use of MDIO_MMD register defines Marco Felsch
2023-07-10  6:36 ` [PATCH 2/7] net: phy: micrel: " Marco Felsch
2023-07-10  9:56   ` Ahmad Fatoum
2023-07-10 10:37     ` Marco Felsch
2023-07-10  6:36 ` [PATCH 3/7] net: phy: sync phy_{write,read,modify}_mmd_indirect with linux Marco Felsch
2023-07-10  9:59   ` Ahmad Fatoum
2023-07-10 10:49     ` Marco Felsch
2023-07-10 10:53       ` Ahmad Fatoum
2023-07-10 11:01         ` Marco Felsch
2023-07-10 11:03           ` Ahmad Fatoum
2023-07-10 12:43             ` Marco Felsch
2023-07-10 12:52               ` Ahmad Fatoum
2023-07-10  6:36 ` [PATCH 4/7] net: phy: add phydev_{err,err_probe,info,warn,dbg} macros Marco Felsch
2023-07-10 10:01   ` Ahmad Fatoum
2023-07-10  6:36 ` [PATCH 5/7] net: phy: at803x: add support for configuring SmartEEE Marco Felsch
2023-07-10 10:10   ` Ahmad Fatoum
2023-07-10 12:10     ` Oleksij Rempel [this message]
2023-07-10  6:36 ` [PATCH 6/7] net: phy: at803x: add disable hibernation mode support Marco Felsch
2023-07-10 10:07   ` Ahmad Fatoum
2023-07-10 10:53     ` Marco Felsch
2023-07-10 11:07       ` Ahmad Fatoum
2023-07-10  6:36 ` [PATCH 7/7] net: phy: at803x: disable extended next page bit Marco Felsch
2023-07-10 10:03   ` Ahmad Fatoum
2023-07-10  9:55 ` [PATCH 1/7] ARM: boards: make use of MDIO_MMD register defines Ahmad Fatoum

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=d8057a76-dfc5-bdc1-3949-63933a904ecb@rempel-privat.de \
    --to=linux@rempel-privat.de \
    --cc=barebox@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox