From: Parthiban Veerasooran <parthiban.veerasooran@microchip.com>
To: Alessandro Zini <alessandro.zini@siemens.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>
Cc: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>, <netdev@vger.kernel.org>,
<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH net-next 2/2] net: ethernet: microchip: lan865x: add reset-gpios support
Date: Thu, 10 Sep 2026 10:11:05 +0530 [thread overview]
Message-ID: <0dff5049-b2ff-4654-8644-bbfcbcd5b444@microchip.com> (raw)
In-Reply-To: <20260909125358.23003-2-alessandro.zini@siemens.com>
On 09/09/26 6:23 pm, Alessandro Zini wrote:
>
> + priv->reset_gpio = devm_gpiod_get_optional(&spi->dev, "reset",
> + GPIOD_OUT_LOW);
> + if (IS_ERR(priv->reset_gpio)) {
> + ret = dev_err_probe(&spi->dev, PTR_ERR(priv->reset_gpio),
> + "Failed to get reset GPIO\n");
> + goto free_netdev;
> + }
> +
> + if (priv->reset_gpio) {
> + /* Assert hardware reset for 10 us (datasheet specifies min 5 us)
> + * and allow 1 ms settle time for crystal oscillator startup.
> + */
> + gpiod_set_value_cansleep(priv->reset_gpio, 1);
> + fsleep(10);
> + gpiod_set_value_cansleep(priv->reset_gpio, 0);
> + fsleep(1000);
> + }
> +
According to the
OPEN_Alliance_10BASET1x_MAC-PHY_Serial_Interface_V1.1.pdf, Section 8.2
mentions the following:
reset This variable reflects the logical-OR of all reset sources of
the MAC-PHY and is TRUE when any of the reset sources are
asserted. Reset sources include power-on reset (POR), software reset
(see Section 9.2.4.2), and an external RESET pin (if implemented).
In my opinion, the “external RESET pin” can be considered optional. As
mentioned in the specification, it would be better to move this
functionality to oa_tc6.c so that any implemented MAC-PHY device can
make use of it.
Best regards,
Parthiban V> priv->tc6 = oa_tc6_init(spi, netdev, NULL);
> if (!priv->tc6) {
> ret = -ENODEV;
> --
> 2.55.0
prev parent reply other threads:[~2026-09-10 4:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-09 12:53 [PATCH net-next 1/2] dt-bindings: net: microchip,lan8650: add reset-gpios property Alessandro Zini
2026-09-09 12:53 ` [PATCH net-next 2/2] net: ethernet: microchip: lan865x: add reset-gpios support Alessandro Zini
2026-09-10 4:41 ` Parthiban Veerasooran [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=0dff5049-b2ff-4654-8644-bbfcbcd5b444@microchip.com \
--to=parthiban.veerasooran@microchip.com \
--cc=alessandro.zini@siemens.com \
--cc=andrew+netdev@lunn.ch \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=robh@kernel.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