mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <ukleinek@kernel.org>
To: Pengpeng Hou <hppiscas@163.com>
Cc: linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] pwm: sti: select REGMAP_MMIO
Date: Mon, 30 Nov 2026 18:06:58 +0100	[thread overview]
Message-ID: <aw2sF_cHQxC2SRhK@monoceros> (raw)
In-Reply-To: <20261130133553.85948-1-hppiscas@163.com>

[-- Attachment #1: Type: text/plain, Size: 1218 bytes --]

On Mon, Nov 30, 2026 at 09:35:53PM +0800, Pengpeng Hou wrote:
> pwm-sti.c initializes an MMIO regmap using devm_regmap_init_mmio(),
> but PWM_STI does not select REGMAP_MMIO. The driver can therefore be
> enabled without the required register-transport implementation and
> fail to build.
> 
> Select REGMAP_MMIO so the backend is enabled at the linkage level
> required by this consumer, rather than relying on another driver to
> pull it in.
> 
> The issue was found by our static-analysis tool and manually reviewed.
> 
> Fixes: 378fe115d19d ("pwm: sti: Add new driver for ST's PWM IP")
> Signed-off-by: Pengpeng Hou <hppiscas@163.com>
> ---
> AI assistance: gpt 5 (patch preparation and review).

I assume in combination with "manually reviewed" from the commit log
this means both a human and GPT-5 reviewed the patch and not "was
reviewed by manually prompting GPT-5" or "GPT-5 found an MCP endpoint to
my brain" :-D

Anyhow, to be sure, I created a .config with PWM_STI=y and REGMAP_MMIO=n
and it failed to build indeed. I'm surprised this wasn't reported
earlier already.

Applied to

	https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git pwm/for-next

Thanks
Uwe

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

      reply	other threads:[~2026-11-30 17:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 13:35 Pengpeng Hou
2026-11-30 17:06 ` Uwe Kleine-König [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=aw2sF_cHQxC2SRhK@monoceros \
    --to=ukleinek@kernel.org \
    --cc=hppiscas@163.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pwm@vger.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

all inboxes | Powered by JetHome®