Linux Input/HID development
 help / color / mirror / Atom feed
From: tsukasa <theozoeht@gmail.com>
To: HoroTW <git@horotw.dev>
Cc: jikos@kernel.org, bentiss@kernel.org,
	linux-input@vger.kernel.org, linux-kernel@vger.kernel.org,
	mika.westerberg@linux.intel.com, andy@kernel.org,
	Andy Shevchenko <andriy.shevchenko@intel.com>
Subject: Re: [PATCH] HID: i2c-hid: acpi: Add Dell Latitude 7400 2-in-1 touchscreen power quirk
Date: Wed, 2 Dec 2026 01:28:29 +0100	[thread overview]
Message-ID: <571b3d70-a7e5-4dab-a170-078bedad8e5b@gmail.com> (raw)
In-Reply-To: <010201a1c63771e5-dbbba1f2-8a9f-4dbc-8901-c60927cf5a56-000000@eu-west-1.amazonses.com>

> Hi,
>
> the HONOR MagicBook Pro 14 2025 (FMB-P) has the same problem, only
> worse: its FocalTech FTSC1000 touchscreen is never powered at all, not
> just after S3. The panel's ACPI node has no _PR0, _PS0 or _PS3, and the
> power enable (GPP_A_12) and active-low reset (GPP_E_2) are not
> described. This is still the case with the latest BIOS (1.18).


I spend 3h check that everything work after 14 reboot with minimal change.

>
> Your mechanism fixes it with nothing but a table entry, patch below. Your
> 10/200 ms delays work for this panel as well, so the change is data only.
> Test details are below the --- line.
>
> Two notes for a v2:
>
> - v1 no longer applies to mainline: ebe5e0101995 ("HID: i2c-hid-acpi:
>    restore touchscreen IRQ routing on HP OmniBook Flip laptops") now also
>    sets ops.power_up, for ELAN2514 on three HP boards. The two quirks
>    cover different devices; in my local rebase your setup call simply goes
>    after that block.
> - If v2 changes the table layout, I'll rebase the entry. Folding it into
>    your v2 is fine with me too, whatever is easier for the maintainers.
>
> Thanks,
> theo bousquet
>
> -- >8 --
> Subject: [PATCH] HID: i2c-hid: acpi: Add HONOR MagicBook Pro 14 touchscreen power quirk
>
> On the HONOR MagicBook Pro 14 2025 (FMB-P), the FocalTech FTSC1000
> touchscreen is never powered and does not work. Its ACPI node has no
> _PR0, _PS0 or _PS3, and the power enable (GPP_A_12) and active-low reset
> (GPP_E_2) are not described. Add it to the GPIO power quirk table.
>
> Signed-off-by: tsukasagenesis theozoeht@gmail.com
> ---
>
> Applies on top of "HID: i2c-hid: acpi: Add Dell Latitude 7400 2-in-1
> touchscreen power quirk" (v1), rebased onto current mainline:
> https://lore.kernel.org/all/010201a1c63771e5-dbbba1f2-8a9f-4dbc-8901-c60927cf5a56-000000@eu-west-1.amazonses.com/
>
> Tested on an HONOR FMB-P (global, Core Ultra 9 285H), BIOS 1.18
> (11/02/2026), with i2c-hid-acpi.ko rebuilt for 6.18.65 and 7.3.6:
>
> - stock ACPI tables: the touchscreen probes after a cold boot and keeps
>    working across s2idle suspend/resume, no I2C errors
> - with the DSDT override most users of this laptop run today (it adds a
>    power resource and _PR0/_PS0 to the panel): no conflict, also across
>    s2idle
> - without the quirk on stock tables no touchscreen input device appears
>
> The Dell delays (10 ms / 200 ms) work here; the firmware's own PTPL
> sequence for the sibling panel slots uses 2 ms / 100 ms, so they are on
> the safe side. I kept the change to the table only.
>
> checkpatch --strict is clean; builds with W=1 using gcc and clang.
>
> AI notice: I worked this out with an AI coding assistant over a ~2 hour
> session: firmware table analysis, comparing alternatives and the existing
> quirks in this driver (yours and the HP OmniBook one), and preparing the
> smallest change. I ran every test on the laptop myself and reviewed the
> patch.
>
>   drivers/hid/i2c-hid/i2c-hid-acpi.c | 21 +++++++++++++++++++++
>   1 file changed, 21 insertions(+)
>
> diff --git a/drivers/hid/i2c-hid/i2c-hid-acpi.c b/drivers/hid/i2c-hid/i2c-hid-acpi.c
> index 91c3aa6..0822e58 100644
> --- a/drivers/hid/i2c-hid/i2c-hid-acpi.c
> +++ b/drivers/hid/i2c-hid/i2c-hid-acpi.c
> @@ -71,6 +71,20 @@ static struct gpiod_lookup_table dell_latitude_7400_2in1_touch_gpios = {
>   	},
>   };
>   
> +/*
> + * HONOR MagicBook Pro 14 2025 (FMB-P): the FocalTech FTSC1000 touchscreen has
> + * no _PR0/_PS0, so it is never powered. Power enable is GPP_A_12, active-low
> + * reset GPP_E_2.
> + */
> +static struct gpiod_lookup_table honor_fmb_p_touch_gpios = {
> +	.dev_id = "i2c-FTSC1000:00",
> +	.table = {
> +		GPIO_LOOKUP("INTC105E:00", 108, "power", GPIO_ACTIVE_HIGH),
> +		GPIO_LOOKUP("INTC105E:00", 130, "reset", GPIO_ACTIVE_LOW),
> +		{ }
> +	},
> +};
> +
>   static const struct dmi_system_id i2c_hid_acpi_gpio_quirks[] = {
>   	{
>   		.matches = {
> @@ -79,6 +93,13 @@ static const struct dmi_system_id i2c_hid_acpi_gpio_quirks[] = {
>   		},
>   		.driver_data = &dell_latitude_7400_2in1_touch_gpios,
>   	},
> +	{
> +		.matches = {
> +			DMI_MATCH(DMI_SYS_VENDOR, "HONOR"),
> +			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "FMB-P"),
> +		},
> +		.driver_data = &honor_fmb_p_touch_gpios,
> +	},
>   	{ }
>   };
>   

      parent reply	other threads:[~2026-12-02  0:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-10 16:08 [PATCH] HID: i2c-hid: acpi: Add Dell Latitude 7400 2-in-1 touchscreen power quirk HoroTW
2026-11-10 17:20 ` Andy Shevchenko
2026-12-02  0:28 ` tsukasa [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=571b3d70-a7e5-4dab-a170-078bedad8e5b@gmail.com \
    --to=theozoeht@gmail.com \
    --cc=andriy.shevchenko@intel.com \
    --cc=andy@kernel.org \
    --cc=bentiss@kernel.org \
    --cc=git@horotw.dev \
    --cc=jikos@kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mika.westerberg@linux.intel.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