Linux Input/HID development
 help / color / mirror / Atom feed
From: Kendall Willis <k-willis@ti.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: <sashiko-reviews@lists.linux.dev>, <robh@kernel.org>,
	<conor+dt@kernel.org>, <devicetree@vger.kernel.org>,
	<linux-input@vger.kernel.org>
Subject: Re: [PATCH v3 2/2] Input: gpio-keys - support wakeup pinctrl state on suspend
Date: Mon, 5 Oct 2026 15:42:48 -0500	[thread overview]
Message-ID: <20261005204248.57wr5vyknulpsrtm@uda0506412> (raw)
In-Reply-To: <asCRyl0MeG1AWiZW@google.com>

Hi Dmitry,
On 22:26-20261002, Dmitry Torokhov wrote:
> Hi Kendall,
> 
> On Thu, Oct 01, 2026 at 11:12:31AM -0500, Kendall Willis wrote:
> > Pinctrl is optional to use for gpio-keys so we only care if
> > -EPROBE_DEFER is the error from pinctrl which would mean that it just
> > has not been probed yet. All other errors can fall through and the
> > pinctrl_wakeup variable would be left as NULL.
> 
> If pinctrl is not specified, devm_pinctrl_get() returns -ENODEV (or NULL
> if !CONFIG_PINCTRL). Other errors (-ENOMEM, -EINVAL) indicate genuine
> issues that should not be swallowed.
> 
> Please reset ddata->pinctrl to NULL, ignore -ENODEV, and propagate any
> other errors:
> 
> 	ddata->pinctrl = devm_pinctrl_get(dev);
> 	if (IS_ERR(ddata->pinctrl)) {
> 		error = PTR_ERR(ddata->pinctrl);
> 		ddata->pinctrl = NULL;
> 
> 		if (error != -ENODEV)
> 			return dev_err_probe(dev, error,
> 					     "Failed to get pinctrl\n");
> 	}
> 
> Thanks.
> 
> -- 
> Dmitry

Will update the code to this in the next version. Thanks for pointing
this out.

Best,
Kendall

      reply	other threads:[~2026-10-05 20:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-01 15:50 [PATCH v3 0/2] Input: gpio-keys - support wakeup pinctrl state Kendall Willis
2026-10-01 15:50 ` [PATCH v3 1/2] dt-bindings: input: gpio-keys: add pinctrl states Kendall Willis
2026-10-01 15:59   ` sashiko-bot
2026-10-01 16:11     ` Kendall Willis
2026-10-01 20:01   ` Rob Herring (Arm)
2026-10-01 15:50 ` [PATCH v3 2/2] Input: gpio-keys - support wakeup pinctrl state on suspend Kendall Willis
2026-10-01 16:02   ` sashiko-bot
2026-10-01 16:12     ` Kendall Willis
2026-10-03  5:26       ` Dmitry Torokhov
2026-10-05 20:42         ` Kendall Willis [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=20261005204248.57wr5vyknulpsrtm@uda0506412 \
    --to=k-willis@ti.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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