Linux Input/HID development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Raphaël Larocque" <rlarocque@disroot.org>
Cc: linux-input@vger.kernel.org, dmitry.torokhov@gmail.com
Subject: Re: [PATCH] Input: synaptics - disable InterTouch on ThinkPad T440p (board id 2722)
Date: Wed, 17 Jun 2026 03:04:13 +0000	[thread overview]
Message-ID: <20260617030414.265D31F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260617025619.41237-1-rlarocque@disroot.org>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] Format specifier type mismatch in `psmouse_info` call.
--

commit 0fa38fb74cf1360727ab0551657ea6c7dcbf7b75
Author: Raphaël Larocque <rlarocque@disroot.org>

Input: synaptics - disable InterTouch on ThinkPad T440p (board id 2722)

This commit disables SMBus InterTouch for the ThinkPad T440p (board id 2722)
by matching its PNP ID and board ID. This ensures the touchpad works via
PS/2 immediately at boot, bypassing a long delay caused by the SMBus
companion device taking time to initialize.

> diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c
> --- a/drivers/input/mouse/synaptics.c
> +++ b/drivers/input/mouse/synaptics.c
> @@ -1837,6 +1837,16 @@ static int synaptics_setup_intertouch(struct psmouse *psmouse,
[ ... ]
> +		/* Disable intertouch on known-broken board revisions */
> +		if (psmouse_matches_pnp_id(psmouse,
> +				(const char * const []){"LEN0036", NULL}) &&
> +		    info->board_id == 2722) {
> +			psmouse_info(psmouse,
> +				     "Disabling intertouch for board id %d\n",
> +				     info->board_id);

[Severity: Low]
This isn't a bug, but should the format specifier for info->board_id be %u
instead of %d?

Looking at struct synaptics_device_info, board_id is declared as a u32:

struct synaptics_device_info {
	...
	u32 board_id;		/* Board-ID */
	...
};

While 2722 easily fits in a signed integer, using %u would avoid potential
format string warnings under stricter warning levels.

> +			return -ENXIO;
> +		}
>  	}

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260617025619.41237-1-rlarocque@disroot.org?part=1

  reply	other threads:[~2026-06-17  3:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-16 17:11 [PATCH] Input: synaptics - disable InterTouch on ThinkPad T440p (board id 2722) Raphaël Larocque
2026-06-16 18:49 ` Dmitry Torokhov
2026-06-17  2:56 ` Raphaël Larocque
2026-06-17  3:04   ` sashiko-bot [this message]
2026-06-17  3:34   ` Raphaël Larocque

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=20260617030414.265D31F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=rlarocque@disroot.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