All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lee Jones <lee@kernel.org>
To: Marcos Del Sol Vives <marcos@orca.pet>
Cc: linux-kernel@vger.kernel.org,
	Linus Walleij <linus.walleij@linaro.org>,
	Bartosz Golaszewski <brgl@bgdev.pl>,
	Michael Walle <mwalle@kernel.org>,
	Bjorn Helgaas <bhelgaas@google.com>,
	linux-gpio@vger.kernel.org, linux-pci@vger.kernel.org
Subject: Re: [PATCH v4 3/3] mfd: vortex: implement new driver for Vortex southbridges
Date: Thu, 4 Sep 2025 11:17:05 +0100	[thread overview]
Message-ID: <20250904101705.GH2764654@google.com> (raw)
In-Reply-To: <b11dcd50-a87e-47ff-b406-776e432f07bd@orca.pet>

On Wed, 03 Sep 2025, Marcos Del Sol Vives wrote:

> El 03/09/2025 a las 16:01, Lee Jones escribió:
> >> patch series and thus make it a proper MFD (at the cost of delaying
> >> even further the GPIO inclusion), or keep the struct mfd_cell array
> >> as a single-element array and implement the watchdog later on another
> >> merge request, using that very same array.
> >>
> >> I am however not okay with wasting my time rewriting that to bypass
> >> the MFD API for this, so I can waste even more time later
> >> implementing again the MFD API, just because linguistically
> >> one (right now) is technically not "multi".
> > 
> > I don't get this.  If you implement the WDT now, you will be "multi", so
> > what are you protesting against?
> 
> That GPIO is something required to perform the poweroff sequence, a must
> for any machine, while WDT is just a "nice to have".
> 
> Implementing now the WDT just because of a linguistic preference means
> delaying something more important in favour of a "nice to have".

You use the word "delaying" here.  What's the rush?

If you only need a GPIO driver, then you don't need the MFD part.

> >> That seems very unreasonable, specially when it wouldn't be a first
> >> since at least these other devices are also using MFD with a single
> >> device:
> >>
> >>   - 88pm80
> > 
> > % grep name drivers/mfd/88pm800.c
> > 	.name = "88pm80x-rtc",
> > 	.name = "88pm80x-onkey",
> > 	.name = "88pm80x-regulator",
> > 	.name = "88pm800",
> 
> If you open the file, you'll see it uses five single-element arrays.

Which is fine.

> >>   - 88pm805
> > 
> > % grep name drivers/mfd/88pm805.c       
> > 	.name = "88pm80x-codec",
> > 	.name = "88pm805",
> > 
> 
> Same as above.
> 
> >>   - at91-usart
> > 
> > % grep NAME drivers/mfd/at91-usart.c
> > 	MFD_CELL_NAME("at91_usart_spi");
> > 	MFD_CELL_NAME("atmel_usart_serial");
> 
> Has two single-element arrays. It registers one or the other, never both
> (just like my patch does!)

Fair point.

I guess this is more of a selector than a true concurrent MFD.

> >>   - stw481x
> > 
> > * Copyright (C) 2013 ST-Ericsson SA
> > 
> >>   - vx855
> > 
> > * Copyright (C) 2009 VIA Technologies, Inc.
> > 
> >>   - wm8400
> > 
> > * Copyright 2008 Wolfson Microelectronics PLC.
> > 
> 
> To my knowledge the definition of "multi" has not been changed
> since any of those years.

If they were submitted during my tenure, it is likely that they would
not have been accepted.  Besides, past mistakes is no excuse for making
them in the present.

-- 
Lee Jones [李琼斯]

  reply	other threads:[~2025-09-04 10:17 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-22 13:58 [PATCH v4 0/3] Introduce support for Vortex GPIO pins Marcos Del Sol Vives
2025-08-22 13:58 ` [PATCH v4 1/3] gpio: gpio-regmap: add flag to set direction before value Marcos Del Sol Vives
2025-08-22 13:58 ` [PATCH v4 2/3] gpio: vortex: add new GPIO device driver Marcos Del Sol Vives
2025-08-24  7:42   ` William Breathitt Gray
2025-08-22 13:58 ` [PATCH v4 3/3] mfd: vortex: implement new driver for Vortex southbridges Marcos Del Sol Vives
2025-09-02 15:18   ` Lee Jones
2025-09-02 18:06     ` Marcos Del Sol Vives
2025-09-03  7:21       ` Lee Jones
2025-09-03  7:43         ` Marcos Del Sol Vives
2025-09-03  9:14           ` Lee Jones
2025-09-03 13:01         ` Marcos Del Sol Vives
2025-09-03 14:01           ` Lee Jones
2025-09-03 14:48             ` Marcos Del Sol Vives
2025-09-04 10:17               ` Lee Jones [this message]
2025-09-04 12:21                 ` Marcos Del Sol Vives
2025-09-08 14:24                   ` Lee Jones

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=20250904101705.GH2764654@google.com \
    --to=lee@kernel.org \
    --cc=bhelgaas@google.com \
    --cc=brgl@bgdev.pl \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=marcos@orca.pet \
    --cc=mwalle@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.