From: Dave Carey <carvsdriver@gmail.com>
To: johannes.goede@oss.qualcomm.com
Cc: platform-driver-x86@vger.kernel.org, pithenrich2d@googlemail.com,
mpearson-lenovo@squebb.ca, hdegoede@redhat.com,
ilpo.jarvinen@linux.intel.com, armin.wolf@outlook.de,
linux-kernel@vger.kernel.org, Dave Carey <carvsdriver@gmail.com>
Subject: Re: [PATCH v5] platform/x86/lenovo: Add Yoga Book 9 keyboard dock detection driver
Date: Mon, 8 Jun 2026 15:05:07 -0400 [thread overview]
Message-ID: <20260608190507.77836-1-carvsdriver@gmail.com> (raw)
In-Reply-To: <dda1efcd-f7f5-4ed5-9481-5047d43924cc@oss.qualcomm.com>
Hi Hans,
Confirmed: on the YB9, both lenovo-ymc and yb9-kbdock register input
nodes with SW_TABLET_MODE in their capability bitmap (SW=2 in
/proc/bus/input/devices). You are right that this is a problem
regardless of which one fires events -- GNOME reads the capability at
startup.
The recommended fix would be: add a DMI blocklist to lenovo_ymc_probe()
to return early on the Yoga Book 9, matching on:
DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
DMI_MATCH(DMI_PRODUCT_NAME, "83KJ"),
That leaves yb9-kbdock as the sole SW_TABLET_MODE source on this
hardware.
Two questions on how you'd like to proceed:
1. Should the lenovo-ymc fix come as a standalone patch, or would you
prefer a v6 2-patch series with the ymc change as patch 1/2 and the
kbdock driver as patch 2/2?
2. For the early return in probe(): you suggested "return 0" to avoid
WMI framework error messages. That requires a NULL guard in
lenovo_ymc_notify() since priv is never set in that path. Is that
the right approach, or would you prefer a different pattern?
Thanks,
Dave
next prev parent reply other threads:[~2026-06-08 19:05 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20260521144034.282419-1-carvsdriver@gmail.com>
2026-05-27 12:27 ` [PATCH v5] platform/x86/lenovo: Add Yoga Book 9 keyboard dock detection driver Dave Carey
2026-06-08 9:13 ` johannes.goede
2026-06-08 12:52 ` Dave Carey
2026-06-08 15:55 ` johannes.goede
2026-06-08 19:05 ` Dave Carey [this message]
2026-06-08 19:23 ` johannes.goede
2026-06-08 21:52 ` [PATCH v6 0/2] " Dave Carey
2026-06-08 21:52 ` [PATCH v6 1/2] platform/x86/lenovo: lenovo-ymc: Suppress probe on Yoga Book 9 14IAH10 Dave Carey
2026-06-09 1:29 ` Mark Pearson
2026-06-09 1:29 ` Mark Pearson
2026-06-09 8:50 ` johannes.goede
2026-06-08 21:52 ` [PATCH v6 2/2] platform/x86/lenovo: Add Yoga Book 9 keyboard dock detection driver Dave Carey
2026-06-09 8:50 ` johannes.goede
2026-06-09 9:47 ` Ilpo Järvinen
2026-06-09 21:26 ` [PATCH v7 0/2] " Dave Carey
2026-06-09 21:26 ` [PATCH v7 1/2] platform/x86/lenovo: lenovo-ymc: Suppress probe on Yoga Book 9 14IAH10 Dave Carey
2026-06-10 8:00 ` johannes.goede
2026-06-09 21:26 ` [PATCH v7 2/2] platform/x86/lenovo: Add Yoga Book 9 keyboard dock detection driver Dave Carey
2026-06-10 8:36 ` johannes.goede
2026-06-10 8:44 ` Ilpo Järvinen
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=20260608190507.77836-1-carvsdriver@gmail.com \
--to=carvsdriver@gmail.com \
--cc=armin.wolf@outlook.de \
--cc=hdegoede@redhat.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=johannes.goede@oss.qualcomm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mpearson-lenovo@squebb.ca \
--cc=pithenrich2d@googlemail.com \
--cc=platform-driver-x86@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