[<prev] [next>] [day] [month] [year] [list]
Message-ID: <aG3vIMHkPezr4rJT@shell.armlinux.org.uk>
Date: Wed, 9 Jul 2025 05:25:04 +0100
From: "Russell King (Oracle)" <linux@...linux.org.uk>
To: lizhe <sensor1010@....com>
Cc: andrew+netdev@...n.ch, davem@...emloft.net, edumazet@...gle.com,
kuba@...nel.org, pabeni@...hat.com, mcoquelin.stm32@...il.com,
alexandre.torgue@...s.st.com, vladimir.oltean@....com,
maxime.chevallier@...tlin.com, netdev@...r.kernel.org,
linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: Re: [PATCH] net: stmmac: Support gpio high-level reset for
devices requiring it
On Wed, Jul 09, 2025 at 09:58:21AM +0800, lizhe wrote:
> Hi,
>
> Thx !
>
> i conducted an experiment, and no matter whether i configured it as
> GPIO_ACTIVE_LOW or GPIO_ACTIVE_HIGH in the dts, the resulting
> GPIO pin state was 0, indicating a low level.
>
>
> if (delays[2])
> msleep(DIV_ROUND_UP(DELAYS[2], 1000));
>
> + gpio_state = gpiod_get_value_can_sleep(reset_gpio);
> + pr_info("gpio_state: %d\n", gpio_state);
Use gpiod_get_raw_value_cansleep().
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
Powered by blists - more mailing lists