From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.51 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796171312; b=YG8OGQ4z5+yTOdskJ9I6w6cBcTyTG102Etz2Vtdj15cCUK2dkh3S9bBjwjUbggHHFhPi bCck6tDApM+QNShbC710pclO5hJKO2DeXuh/j2jzCPk+te18puxzJGkEtPnNIMYCZddxC 4v+yWh6Jc/Lj8Qh+EuAFF5Su43zbmFPgpwdGIMW7eZ3zMbxY/wAG3Qnj1J0mms9wcJJPE s4DwreF3fdbi0/qVK0RBGhhWv5aetZhYkV8CcguHlKjuIhqLuzlTxel7/15eeIjqnLelZ vnMdX5GqJI+FoG4sHDfrGG1+aH2/9wKczZGIdw70XrslT2oUs0X5cWISy+rLc+14o/w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796171312; 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=Y3FNrwq977u0hNRDMX47y6kDP1r0xFmQ8lH/aIPOhctxF6h19TAmdP6qwXTKaKz9HpaG LixTWqd51QXkg+GujWNbX7yVvHpzqevMACZGJZISC8X1B6qPk7MDN4TypZosMmcJ07XKs q1mIAkBCUrIMJFwtIDBjg5o/+K/jnoiXE8f5Zpd26HQM8e3GEtMEhW7d4w6xL0FWma87y KAPBleBM0jQrcYlDGCGJujD0EdgHPjKRKO/VqySyrekrewhqVEXx8vhTEGGrz5aejcGmY tDPEEs4cuWlFZs3eC6kJhBmKR4DBbo6/9Q6EmVvXKXLbrdlF0AqWqQniMUxNuIAxHYA== 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.51 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (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 DFEF6606A32D for ; Wed, 2 Dec 2026 00:28:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DFEF6606A32D 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-f51.google.com with SMTP id 5b1f17b1804b1-4b467581b98so115639795e9.0 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=cquh753iBU7keQ/WxtsdP1jau8L1pz2vNDpBxLRY9Z7msjQkc4l/ky56NOlzaAUkou 4pwTrQQR3cGmj2JgcCdlElxiX/Ad6XZ7dNU6N1vy90HXoqLfm7ymJQ07cYdhyYhnNuIh fB1HO/kPE4kMbzbjjiseaJn7BirGN6mlxD8lfOeA3XyNfB9ze9F98BghIVumFnAHhtWu 2JMGLQk8CrYgS9yM5gxrdxHjqsuGFSemMfHQAOxWb7UocuUgRPtBUiGBufi41HX6dy46 BNgelPfOQ3I/3ZkwBC/0bhV66L66MZA1b9SQwqgc0Lv9zgOSG3GRAyo66zozTPK6Ba0u f+IQ== X-Forwarded-Encrypted: i=1; AL+hErHwcI/4CDXTEDmpNyOuhl9hlsrbu95bL+7mo0Ebsfvu/UyF6iG7zKOrroHX5fP1xGuJz2jMnOce3aA4Tw==@vger.kernel.org X-Gm-Message-State: APuU4Z9bf9K4fFLwWezEu3ZHBhb4Mb/WQZ8TsM99NU/vpbJzyHxr6qZC ByR6Zc6diOwe7YRqGGZ89cijWcLp0phjJRVQXxq3CK8SZUijzyXWVf2e X-Gm-Gg: AZFdTZdNi8gRl65ak1XpddpltRYVkhy7VtV4sQ0cfNd1QjY9w0AbV0Fc2JT6xW0KLEA i+O/8lGFnTn+izlfZrgbL2zimPlvIHSuPdSN6jHW8TH0afud/bi/iBRapFQ6hoeMnioYm2SyU5H 5A0OoWxdN889qlr1sUep/SUGxHpM9nPXQ471/q1QYt91jA2nFjHL67wJv51V2jh3mlZ8TkS7x9m IxaOpIqmLpUGwSwZe4jVHNcYL0Pnr1yyBvLx/f96+4IjMsLknlUyeRMudgE2q/RCAqUTaRZI1dN YBN5lH7ghEO2IB7R10vijJ+p3yHeQ5HfrHIK3vgM7VOxfqMx2r5KaaydR47Xch8sKL/boR19VmR P4wjm2kbnFl2q/dcZLCNQO9gEgidO2q0Eq5uYWceVwHcKma+C8ChiaLNzKknUh1Ds13umx5YF1U RhM0Uq/evuqiQc/M7DhM1lDfAa01EueDeqLjBzgKsOa0EW1c+xnAE4iLlpsgU7/v6RcxI4pew9V MCCwFQ+xBFZhJxOfu8FeGoZ2/Ot1g5XLMzGinWRyTwGdvi5SFBskaVkO1jphV/E4aphN9/tnDgi HtAijLNtvI1AOBcNqoUs2dtP0RnYe/MjqOnNwKli00XJbcMPJSxa9g2d5HWoJ6Q6LM1uZho/DHR PAyG5xy7G3xs1DprBJ5g= 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-input@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, > + }, > { } > }; >