mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: Robert Marko <robert.marko@sartura.hr>,
	linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org,
	daniel.machon@microchip.com
Cc: luka.perkov@sartura.hr, benjamin.ryzman@canonical.com
Subject: Re: [PATCH] hwmon: sparx5: make it selectable for ARCH_MICROCHIP
Date: Wed, 24 Sep 2025 15:06:58 -0700	[thread overview]
Message-ID: <f019dcef-afdd-4d18-b28c-b214fa14f1c8@roeck-us.net> (raw)
In-Reply-To: <20250924213027.1887516-1-robert.marko@sartura.hr>

On 9/24/25 14:30, Robert Marko wrote:
> LAN969x uses the same sensor and driver, so make it selectable for
> ARCH_MICROCHIP.
> 
LAN969x _is_ the Ethernet switch driver for Sparx5, so this description does
not really make sense. Same as what ? Itself ?

> Signed-off-by: Robert Marko <robert.marko@sartura.hr>
> ---
>   drivers/hwmon/Kconfig | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
> index 840d998f850a..ba2b7b2f6c44 100644
> --- a/drivers/hwmon/Kconfig
> +++ b/drivers/hwmon/Kconfig
> @@ -632,7 +632,7 @@ config SENSORS_I5K_AMB
>   
>   config SENSORS_SPARX5
>   	tristate "Sparx5 SoC temperature sensor"
> -	depends on ARCH_SPARX5 || COMPILE_TEST
> +	depends on ARCH_MICROCHIP || COMPILE_TEST

... and silently disable it for ARCH_SPARX5 at the same time ? That is not what
the description says, and is completely unacceptable unless explained.

>   	help
>   	  If you say yes here you get support for temperature monitoring
>   	  with the Microchip Sparx5 SoC.

... and, on top of all that, still claim to support Sparx5 even that is
no longer the case.

Ah, I see, this patch depends on patches in linux-next. You might want to say that.
Also, there is context missing: If the sensor is _only_ supported on Sparx5
(which everything but the dependency suggests), it does not make sense to extend
the dependencies. Why make the sensor configurable for _all_ microchip architectures
if it is only supported on Sparx5 ? Maybe there is some other series explaining
this, but this patch is all I got and it does not explain anything. It is only
confusing and does not make sense on its own.

Guenter


  reply	other threads:[~2025-09-24 22:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-24 21:30 Robert Marko
2025-09-24 22:06 ` Guenter Roeck [this message]
2025-09-25  9:15   ` Robert Marko
2025-09-25 15:33     ` Guenter Roeck
2025-09-25 20:12       ` Robert Marko
2025-09-25 20:33         ` Guenter Roeck

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=f019dcef-afdd-4d18-b28c-b214fa14f1c8@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=benjamin.ryzman@canonical.com \
    --cc=daniel.machon@microchip.com \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luka.perkov@sartura.hr \
    --cc=robert.marko@sartura.hr \
    /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®