From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.48 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796171313; b=yOIqlmJyZ+Y3cdZUJMlEqla9D6K0+3h3zp2Ax6WGZ08aeGS0/Y4n/R/ibpKcMFnAhER3 BBwLdDLWL8NWumaP+sC/Ly7DyX1tNrZl/G9kY9j3ezBZS0+p66FmtPczPkaL56Q05iCn3 87bhGgQbBz50Thr+gJ/OO/s1Fb7lZKx7FENShoikH6Af4U5VEgcMV9FeCLBpw0cUMgOqz rzXoytlGITzAcrApNz+AynNYJw7wK5udvNUnjkxX5GdN/qtesXs7ht9O32UGDcTEA//TU VN1A5UXxub+ueIqqDGBTqknMVSCrqRUuWqCAujUsPu3ssVgm4Fyl5rFAvrjPN0W7L+w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796171313; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc:References: Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=0+VX08d4x54/GA8rYq9BHtUBXenrFUQJvgvwzG+7VTs=; b=DuC8cGx3QGX1mTPcagfgs0bPndjkmQVR/Ii9GVMhN0Vu2XyrEHeelAPzhpmPD11/lmu8 9wMTQAUKZRAvIhigapXdVQ4Fyoua5Re+FnjrJ9zbUUxqoD3oF18iIpykbbf8FH1MYq4Yj Yy1jb3Uj0f6PZIaa2Oa2O3mkn5R114UPDfZwJclCs6HdTVxdvLHJ9ow7B1onZBHGtd7Mx mWHx9IAiviP1KV7ihVDrCP8DY692+0wPWVQViHXU+XmoJV9BWVg8jLXlWR4YZ0K0fvt3C 6QxLD+En4YVgzxDsQCRfjcnO6b/tUl+yeQNcjiY1+Ah28Cg0b65VwPunXHF1M+PvN+g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=C1GvcaRM; arc=none smtp.remote-ip=209.85.128.48 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DE2C4606A329 for ; Wed, 2 Dec 2026 00:28:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DE2C4606A329 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=C1GvcaRM Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4bba5e17728so62088975e9.2 for ; Tue, 01 Dec 2026 16:28:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796171310; x=1796776110; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=0+VX08d4x54/GA8rYq9BHtUBXenrFUQJvgvwzG+7VTs=; b=C1GvcaRMb27CJwXEGZZ5MS2cWPSgPTKc5UWd2sUoMVv/ID+gQpSsZ2uR3eZyLanDSQ +0dqWNLOcP50EiJb/iemJFyzJUZzmQ4QtMgFsFhtWXEUFKujYtUs+GUosAujE1kil1eK iK8lbZLrS+t9eUvtlEKIdw1O2EJ6jZYrADmgE5s7Xqq7ThjX3+OC9K0ELCggv7GBGj/l lB1ph+DPmqHN3kLcrfUVbqWcVL4gY84+lDoBJYhzKU5ndvtUrHOE4ktZgu8O0bqKasHS 4VVEpxBBgDBQ8nPptiI6f0BFs94keIxcHu8Ouf4PRS+zUvpHzkn0ZQAZIOg6JZLpbF7S h3zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796171310; x=1796776110; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=0+VX08d4x54/GA8rYq9BHtUBXenrFUQJvgvwzG+7VTs=; b=iJfKa0rZCzE+TaS1kmH+vPwiztl8BeixppuBr02TDmesOcYTOkhbPyEpKM6XMKRZwD sdaBrduoia3ieh820Xee/Us2IrFKMwCP35wKL6pecjA88yrvq+iQPbmbw0YT5xXTVkw7 jMOxg5AMHl89kMd6CkcA1lOLsCf+VDU2OHeSCZ2TL3aZVFdPtWxkCX/JmWn38w0NWd7K dS2jLosTLGiqbge31dAfIVx59qz2afzh0GqHG2to6lRoZn5V3gOzP1CeGElilsD+rXyo W9Q7+p8dTBPeVCGu3qE9Ii4nAuaDrPOBizVIoBnBFL3wbrm1NpDA4W+rTcL/or6Jekmw EaiQ== X-Forwarded-Encrypted: i=1; AL+hErGRl8IpDmiuNEW43095ovnHzaaZ2W2rrkhrAnSxDDYxiBp+ooPuGXBOBCxcTVhMigxKIx3J9JvqkDfV3X0=@vger.kernel.org X-Gm-Message-State: APuU4Z9GkYGgOBCsZVnPvkVni+eqTFMMcoF49NlVUewQ6LOZdXUI/J2D XfwZcGX34xKmh4u72bwsz+5KhdQcx/PCGRWfxO6jVLFewGESq+STscnrONJ5LLdgWRY= X-Gm-Gg: AZFdTZcYcgd2J0Oq+3QRHz+OOcwWwKj6S+kUfwwWi2s2HEq6y9vTt2/2k3liCOApR5d mefsosxSydVBnIqGwzI3tDyx/lrdMmiZH8nfelRZzXrUi6aq8kKyoycNX4dMkt7f3lVP+drkUu/ TIIb/JWcOMc5NIRyCPV7yBm6V33Bd2pFsjUuR30XY47/oEsARn1Eo2OBd6o4gRk74dkyPwDL3Sg kBITwAyLLmJ3vd3/GhxKxeDTI1iv2TGO/+rMi5u3NjSgPg4f8VtkFWdCXi3r/BpSQ8udHEm7Sw7 kpXtH8lbRuX0SIGqSyHdG5yVyWB7Nek8kQZX+SZ1cntSFVoNh4mFM3vasAFUP2U3Yz6vuYjGmL5 jv+BvSCjlWbTemP293d31EMJcr9z1BiDcB4XoTiI/2XaVv186qnkpiIkdcI1yk+kHDxiqmwDXQU XLggvvIemLEzBhd1XY2PawnsnL3JV9VzAROvXiLuoIdUJBAP6hFIiPMvWbIlEeTuM8T4V7F+4RZ ZYNlrAs5hUMlIwiFSQEo4nm+Zt9KvBcUZRl5HUcrFTds9ObtJfc61we61HA3bB+L5VrKo5sncDm /UxEKBwNxvZOhUsoH9r//p7E371bM9yWU7d0zFjMhm6FPmNiBG2cq88dl48dEK4YfsVwPuEfrxJ bznFZJ1ziETea6Aon8mM= X-Received: by 2002:a05:600c:848d:b0:4bb:52d8:73ef with SMTP id 5b1f17b1804b1-4bb88940f1bmr760384655e9.34.1796171310159; Tue, 01 Dec 2026 16:28:30 -0800 (PST) Received: from ?IPV6:2a01:e0a:9cf:e3e0:433f:6260:95c0:e275? ([2a01:e0a:9cf:e3e0:433f:6260:95c0:e275]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb85399d52sm982091805e9.6.2026.12.01.16.28.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Dec 2026 16:28:29 -0800 (PST) Message-ID: <571b3d70-a7e5-4dab-a170-078bedad8e5b@gmail.com> Date: Wed, 2 Dec 2026 01:28:29 +0100 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] HID: i2c-hid: acpi: Add Dell Latitude 7400 2-in-1 touchscreen power quirk To: HoroTW 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 References: <010201a1c63771e5-dbbba1f2-8a9f-4dbc-8901-c60927cf5a56-000000@eu-west-1.amazonses.com> Content-Language: en-US From: tsukasa In-Reply-To: <010201a1c63771e5-dbbba1f2-8a9f-4dbc-8901-c60927cf5a56-000000@eu-west-1.amazonses.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > 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, > + }, > { } > }; >