mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "H. Nikolaus Schaller" <hns@goldelico.com>
To: Pengpeng Hou <pengpeng@iscas.ac.cn>
Cc: Paul Cercueil <paul@crapouillou.net>,
	Linus Walleij <linusw@kernel.org>,
	linux-mips@vger.kernel.org, linux-gpio@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Discussions about the Letux Kernel <letux-kernel@openphoenux.org>
Subject: Re: [RFC] pinctrl: ingenic: impossible MACH_* guards can drop OF match data
Date: Thu, 3 Dec 2026 07:56:54 +0100	[thread overview]
Message-ID: <748476AF-0736-4E73-96AD-577BC8EF17EB@goldelico.com> (raw)
In-Reply-To: <20261203040116.70981-1-pengpeng@iscas.ac.cn>

Hi Pengpeng,

> Am 03.12.2026 um 05:01 schrieb Pengpeng Hou <pengpeng@iscas.ac.cn>:
> 
> Hi Nikolaus,
> 
> Comparing the OF match data in pinctrl-ingenic.c with the MACH entries
> in arch/mips/ingenic/Kconfig, the names I can't find in that Kconfig
> are JZ4730, JZ4750, JZ4755, JZ4760, JZ4775, X1500, X1600, X2000 and
> X2100 (all with the MACH_ prefix).
> 
> That is a list of missing upstream configuration entries, not a list
> of unsupported chips. In particular your Letux configuration is a
> counterexample to calling JZ4730, X1600 or X2000 impossible.

As a distribution kernel it is adding the missing entries to upstream Kconfig.

> Removing
> the guards would also take away the size choice you described. I'm
> not proposing that change.

Yes, not all configs that the driver assumes are selectable in upstream kernels.

Some of the missing configs (x1600, x2000, x2600, jz4730) are (will be) fixed by:

https://lore.kernel.org/all/887d9b55de3804fa798781ca03b99402040cf833.camel@crapouillou.net/
https://lore.kernel.org/all/a8706b933ed64eee14bcceaccda292a7e2ddf0a2.camel@crapouillou.net/

Several entries in pinctrl were added years ago by multiple authors and likely some
patch to arch/mips/ingenic/Kconfig was forgotten back then.

I'd suggest to wait until the new pinctrl series is merged and then you can add
the missing MACH_ definitions to Kconfig.

As a side-note: I think the entries for 

.compatible = "ingenic,x1000e-pinctrl",
.compatible = "ingenic,x2000e-pinctrl",

could be removed since the "e" suffix denotes a different RAM size but not to add
different pinmux controller and they share the same chip_info anyways.

BR and thanks,
Nikolaus

      reply	other threads:[~2026-12-03  6:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-25  6:09 Pengpeng Hou
2026-06-25  6:28 ` H. Nikolaus Schaller
2026-12-03  4:01   ` Pengpeng Hou
2026-12-03  6:56     ` H. Nikolaus Schaller [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=748476AF-0736-4E73-96AD-577BC8EF17EB@goldelico.com \
    --to=hns@goldelico.com \
    --cc=letux-kernel@openphoenux.org \
    --cc=linusw@kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=paul@crapouillou.net \
    --cc=pengpeng@iscas.ac.cn \
    /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®