From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: "Bradford Love" <brad@nextdimension.cc>,
linux-gpio@vger.kernel.org, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org,
linux-media@vger.kernel.org, "Linus Walleij" <linusw@kernel.org>,
"Bartosz Golaszewski" <brgl@kernel.org>,
"Jonathan Corbet" <corbet@lwn.net>,
"Shuah Khan" <skhan@linuxfoundation.org>,
"Daniel Mack" <daniel@zonque.org>,
"Haojian Zhuang" <haojian.zhuang@gmail.com>,
"Robert Jarzmik" <robert.jarzmik@free.fr>,
"Russell King" <linux@armlinux.org.uk>,
"Hauke Mehrtens" <hauke@hauke-m.de>,
"Rafał Miłecki" <zajec5@gmail.com>,
"Mauro Carvalho Chehab" <mchehab@kernel.org>
Subject: Re: [PATCH v1 5/7] MIPS: BCM63XX: Remove one time use ephy_reset_gpio_flags
Date: Thu, 22 Oct 2026 20:50:52 +0200 [thread overview]
Message-ID: <atpbDFIFtFCntTeU@alpha.franken.de> (raw)
In-Reply-To: <20260715185112.1323510-6-andriy.shevchenko@linux.intel.com>
On Wed, Jul 15, 2026 at 08:46:45PM +0200, Andy Shevchenko wrote:
> ephy_reset_gpio_flags exists solely to supply polarity to the reset GPIO.
> But in practice it's kept all the same and currently only a single user
> present. Drop the member and use hard coded GPIO flags instead.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> arch/mips/bcm63xx/boards/board_bcm963xx.c | 7 +++----
> arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h | 3 ---
> 2 files changed, 3 insertions(+), 7 deletions(-)
>
> diff --git a/arch/mips/bcm63xx/boards/board_bcm963xx.c b/arch/mips/bcm63xx/boards/board_bcm963xx.c
> index c5617b889b1c..57e916c06792 100644
> --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
> +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
> @@ -42,7 +42,7 @@ static struct board_info __initdata board_cvg834g = {
> .expected_cpu_id = 0x3368,
>
> .ephy_reset_gpio = 36,
> - .ephy_reset_gpio_flags = GPIOF_OUT_INIT_HIGH,
> +
> .has_pci = 1,
> .has_uart0 = 1,
> .has_uart1 = 1,
> @@ -903,9 +903,8 @@ int __init board_register_devices(void)
>
> platform_device_register(&bcm63xx_gpio_leds);
>
> - if (board.ephy_reset_gpio && board.ephy_reset_gpio_flags)
> - gpio_request_one(board.ephy_reset_gpio,
> - board.ephy_reset_gpio_flags, "ephy-reset");
> + if (board.ephy_reset_gpio)
> + gpio_request_one(board.ephy_reset_gpio, GPIOF_OUT_INIT_HIGH, "ephy-reset");
>
> return 0;
> }
> diff --git a/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h b/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h
> index 830f53f28e3f..018a56cbc328 100644
> --- a/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h
> +++ b/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h
> @@ -46,9 +46,6 @@ struct board_info {
>
> /* External PHY reset GPIO */
> unsigned int ephy_reset_gpio;
> -
> - /* External PHY reset GPIO flags from gpio.h */
> - unsigned long ephy_reset_gpio_flags;
> };
>
> #endif /* ! BOARD_BCM963XX_H_ */
> --
> 2.50.1
Acked-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]
next prev parent reply other threads:[~2026-10-22 18:54 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-15 18:46 [PATCH v1 0/7] gpiolib: kill gpio_request_one() Andy Shevchenko
2026-07-15 18:46 ` [PATCH v1 1/7] ARM: pxa: spitz: Open code gpio_request_one() Andy Shevchenko
2026-07-15 18:46 ` [PATCH v1 2/7] media: em28xx: Split em28xx_pctv_290e_set_lna_gpio() helper Andy Shevchenko
2026-07-27 9:52 ` Hans Verkuil
2026-07-15 18:46 ` [PATCH v1 3/7] media: em28xx: Open code gpio_request_one() Andy Shevchenko
2026-07-27 9:53 ` Hans Verkuil
2026-07-15 18:46 ` [PATCH v1 4/7] MIPS: BCM47XX: " Andy Shevchenko
2026-10-22 18:50 ` Thomas Bogendoerfer
2026-07-15 18:46 ` [PATCH v1 5/7] MIPS: BCM63XX: Remove one time use ephy_reset_gpio_flags Andy Shevchenko
2026-10-22 18:50 ` Thomas Bogendoerfer [this message]
2026-07-15 18:46 ` [PATCH v1 6/7] MIPS: BCM63XX: Open code gpio_request_one() Andy Shevchenko
2026-10-22 18:51 ` Thomas Bogendoerfer
2026-07-15 18:46 ` [PATCH v1 7/7] gpiolib: Get rid of not used anymore gpio_request_one() Andy Shevchenko
2026-07-24 21:40 ` [PATCH v1 0/7] gpiolib: kill gpio_request_one() Linus Walleij
2026-10-13 13:09 ` Andy Shevchenko
2026-10-13 13:35 ` Bartosz Golaszewski
2026-10-13 13:55 ` Andy Shevchenko
2026-10-21 13:44 ` Thomas Bogendoerfer
2026-10-21 15:35 ` Andy Shevchenko
2026-10-21 15:50 ` Andy Shevchenko
2026-10-22 18:51 ` Thomas Bogendoerfer
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=atpbDFIFtFCntTeU@alpha.franken.de \
--to=tsbogend@alpha.franken.de \
--cc=andriy.shevchenko@linux.intel.com \
--cc=brad@nextdimension.cc \
--cc=brgl@kernel.org \
--cc=corbet@lwn.net \
--cc=daniel@zonque.org \
--cc=haojian.zhuang@gmail.com \
--cc=hauke@hauke-m.de \
--cc=linusw@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=mchehab@kernel.org \
--cc=robert.jarzmik@free.fr \
--cc=skhan@linuxfoundation.org \
--cc=zajec5@gmail.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
all inboxes | Powered by JetHome®