From: Justin Swartz <justin.swartz@risingedge.co.za>
To: "Arınç ÜNAL" <arinc.unal@arinc9.com>
Cc: Daniel Golle <daniel@makrotopia.org>,
DENG Qingfang <dqfext@gmail.com>,
Sean Wang <sean.wang@mediatek.com>, Andrew Lunn <andrew@lunn.ch>,
Florian Fainelli <f.fainelli@gmail.com>,
Vladimir Oltean <olteanv@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Matthias Brugger <matthias.bgg@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org
Subject: Re: [PATCH] net: dsa: mt7530: increase reset hold time
Date: Wed, 13 Mar 2024 13:52:02 +0200 [thread overview]
Message-ID: <e6525cac666a033a5866465abb3e63f1@risingedge.co.za> (raw)
In-Reply-To: <bf0ed70f-e106-4a7f-a98c-de34658feb4d@arinc9.com>
On 2024-03-13 10:59, Arınç ÜNAL wrote:
> On 12.03.2024 22:21, Justin Swartz wrote:
>> Increase the MT7530 reset hold period from 1000-1100 usec
>> to 5000-5100 usec.
>>
>> This should reduce the likelihood of an incorrect external
>> crystal frequency selection which may occur when reset is
>> deasserted too early under certain link conditions.
>>
>> Signed-off-by: Justin Swartz <justin.swartz@risingedge.co.za>
>> ---
>> drivers/net/dsa/mt7530.c | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c
>> index 3c1f65759..5e9e1381a 100644
>> --- a/drivers/net/dsa/mt7530.c
>> +++ b/drivers/net/dsa/mt7530.c
>> @@ -2243,11 +2243,11 @@ mt7530_setup(struct dsa_switch *ds)
>> */
>> if (priv->mcm) {
>> reset_control_assert(priv->rstc);
>> - usleep_range(1000, 1100);
>> + usleep_range(5000, 5100);
>> reset_control_deassert(priv->rstc);
>> } else {
>> gpiod_set_value_cansleep(priv->reset, 0);
>> - usleep_range(1000, 1100);
>> + usleep_range(5000, 5100);
>> gpiod_set_value_cansleep(priv->reset, 1);
>> }
>>
>
> Again, the patch subject is missing the indication of a tree. Read the
> networking subsystem (netdev) development page [1].
Thanks for that pointer.
> This ship has sailed anyway. Now the changes the first patch did must
> be
> reverted too. I will deal with this from now on, you can stop sending
> patches regarding this.
At least if the first patch isn't reverted, the approach used is
less likely to result in the problem occuring, IMHO.
The delay between deliberately switching the LEDs off, instead of
only waiting on chip reset logic to handle that, and the reset
assertion could be considered a "reset setup" period to complement
the original reset hold period.
Increasing the hold period to what should be 5000 - 5100 usec,
definitely made the problem go away my testing, but the previous
approach is (if nothing else) more explicit in its intent.
> [1]
> https://www.kernel.org/doc/html/latest/process/maintainer-netdev.html
>
> Arınç
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2024-03-13 11:52 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-05 4:39 [PATCH] net: dsa: mt7530: disable LEDs before reset Justin Swartz
[not found] ` <6064ba52-2470-4c56-958c-35632187f148@arinc9.com>
2024-03-08 14:46 ` Daniel Golle
2024-03-12 0:07 ` Justin Swartz
2024-03-12 1:03 ` Andrew Lunn
[not found] ` <1bfd93f1-36d5-436e-818e-2ebdcf475b44@arinc9.com>
2024-03-12 12:01 ` Justin Swartz
[not found] ` <6df6db7e-7842-4194-b429-ab7443a18ccb@arinc9.com>
2024-03-12 15:25 ` Justin Swartz
2024-03-12 16:35 ` Justin Swartz
2024-03-12 19:21 ` [PATCH] net: dsa: mt7530: increase reset hold time Justin Swartz
[not found] ` <bf0ed70f-e106-4a7f-a98c-de34658feb4d@arinc9.com>
2024-03-13 11:52 ` Justin Swartz [this message]
[not found] ` <2640a495-97a0-4669-a53a-e367af956a78@arinc9.com>
2024-03-13 13:13 ` Justin Swartz
[not found] ` <997db446-030b-4e6a-beea-0ae7d990e7e2@arinc9.com>
2024-03-13 15:38 ` Justin Swartz
2024-03-11 21:10 ` [PATCH] net: dsa: mt7530: disable LEDs before reset patchwork-bot+netdevbpf
[not found] ` <2d206dbb-a27b-4139-a49e-331797d8ba34@arinc9.com>
2024-03-11 21:58 ` Jakub Kicinski
2024-03-11 21:58 ` Daniel Golle
[not found] ` <2846b377-f45b-45fd-9fe2-cb22615e0fd5@arinc9.com>
2024-03-11 23:43 ` Daniel Golle
[not found] ` <7780460c-abc3-4009-9f95-28d123a9a23d@arinc9.com>
2024-03-12 10:46 ` Paolo Abeni
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=e6525cac666a033a5866465abb3e63f1@risingedge.co.za \
--to=justin.swartz@risingedge.co.za \
--cc=andrew@lunn.ch \
--cc=angelogioacchino.delregno@collabora.com \
--cc=arinc.unal@arinc9.com \
--cc=daniel@makrotopia.org \
--cc=davem@davemloft.net \
--cc=dqfext@gmail.com \
--cc=edumazet@google.com \
--cc=f.fainelli@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.com \
--cc=sean.wang@mediatek.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;
as well as URLs for NNTP newsgroup(s).