Linux GPIO subsystem development
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Gary Wang <is0124@gmail.com>
Cc: Andy Shevchenko <andy@kernel.org>,
	Linus Walleij <linusw@kernel.org>,
	Thomas Richard <thomas.richard@bootlin.com>,
	Daniele Cleri <danielecleri@aaeon.eu>,
	JunYingLai <junyinglai@aaeon.com.tw>,
	Louis Chen <louischen@aaeon.com.tw>,
	BillyChou <BillyChou@aaeon.com.tw>,
	linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org,
	stable@vger.kernel.org
Subject: Re: [PATCH v3 4/5] pinctrl: upboard: fix I2C pinmux-select set CPLD GPIO OUT not function mode
Date: Thu, 26 Nov 2026 17:25:32 +0200	[thread overview]
Message-ID: <awhPbIZjDazImfBf@ashevche-desk.local> (raw)
In-Reply-To: <20261126-upboard-pinctrl-add-intc1057-intc105e-support-v3-4-81d35c9ba246@gmail.com>

On Thu, Nov 26, 2026 at 11:09:47PM +0800, Gary Wang wrote:
> The CPLD I2C pin mode setting through pinmux-select is not correct.
> Should be set UPBOARD_PIN_MODE_FUNCTION on AANT0F04 devices.
> 
> Set UPBOARD_PIN_MODE_FUNCTION to 1 to prevent a NULL pointer
> dereference error on .modes[i] for any pin group using this setting.

...

>  enum upboard_pin_mode {
> -	UPBOARD_PIN_MODE_FUNCTION,
> +	UPBOARD_PIN_MODE_FUNCTION = 1,
>  	UPBOARD_PIN_MODE_GPIO_IN,
>  	UPBOARD_PIN_MODE_GPIO_OUT,
>  	UPBOARD_PIN_MODE_DISABLED,

This won't make it robust enough against shuffling. We better to assign
them all.

-- 
With Best Regards,
Andy Shevchenko



  reply	other threads:[~2026-11-26 15:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26 15:09 [PATCH v3 0/5] upboard pinctrl support for device id INTC1055 & INTC1057 & INTC105E Gary Wang
2026-11-26 15:09 ` [PATCH v3 1/5] pinctrl: tigerlake: add ish_uart groups and functions for INTC1055 Gary Wang
2026-11-26 15:09 ` [PATCH v3 2/5] pinctrl: alderlake: add some groups and functions for INTC1057 Gary Wang
2026-11-26 15:09 ` [PATCH v3 3/5] pinctrl: meteorlake: add some groups and functions for INTC105E Gary Wang
2026-11-26 15:09 ` [PATCH v3 4/5] pinctrl: upboard: fix I2C pinmux-select set CPLD GPIO OUT not function mode Gary Wang
2026-11-26 15:25   ` Andy Shevchenko [this message]
2026-11-26 15:31     ` Andy Shevchenko
2026-11-26 15:09 ` [PATCH v3 5/5] pinctrl: upboard: add device id INTC1055 & INTC1057 & INTC105E based UP boards support Gary Wang
2026-11-26 15:23 ` [PATCH v3 0/5] upboard pinctrl support for device id INTC1055 & INTC1057 & INTC105E Andy Shevchenko
2026-11-26 15:36   ` GaryWang
2026-11-26 15:53     ` Andy Shevchenko

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=awhPbIZjDazImfBf@ashevche-desk.local \
    --to=andriy.shevchenko@linux.intel.com \
    --cc=BillyChou@aaeon.com.tw \
    --cc=andy@kernel.org \
    --cc=danielecleri@aaeon.eu \
    --cc=is0124@gmail.com \
    --cc=junyinglai@aaeon.com.tw \
    --cc=linusw@kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=louischen@aaeon.com.tw \
    --cc=stable@vger.kernel.org \
    --cc=thomas.richard@bootlin.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