From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6770A1DF963 for ; Thu, 20 Nov 2025 14:29:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763648976; cv=none; b=l8/QwF+lb0WDAwUptZwd2gHRYHmWQN2Vlq1nNgT3OjsoVYRzBXsraPaM69CmU49fpskKX2uTPfWY9HLDNoV7+SJBhTGnKQllqJ/F7TUeGv55xIyaBhWdYANHoRHVnCmBEK3Nc40SeLOUEqXVVjs2xidCMmVJNVxRyqdZMNm2ULA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763648976; c=relaxed/simple; bh=4sGPhk6b77JM0haaV7ma1VhS6WwzG6m+e1s3k2buRmQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=clFQhsV0ktngribIaupBo9qU7Ra4gFR2cvfw6p3jut2/qQSOIiHIn54GvIEXZk5Ha3yJ6dtm3ZXt37UprxiboCiaqYgRwpmyb8l9Dq/1AF+ZVh4qX++eDcDkbpEa8RWJo/uSWmgPb7wZBJhT/uKOLTiw3vkVpACfW4dPcIyyzKQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=W0RZZJy4; arc=none smtp.client-ip=209.85.128.50 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.b="W0RZZJy4" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-477b1cc8fb4so6440325e9.1 for ; Thu, 20 Nov 2025 06:29:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763648973; x=1764253773; darn=vger.kernel.org; h=content-transfer-encoding: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; bh=PaSB0JDzx/KeBkAD7qB+B6gdM9jZdTTt3lJ/HLrBHFY=; b=W0RZZJy421jfGqUZ0vH1qUiI26r2+jccqMkwz3f4v66tlUR8QbxNd0l3Nt4pF5Hl4D tTLvAI4KOLCwkLhNsMFlnNTkvkar+ScOUJa9ojqhMSj+VbTPo4ZA1T4lwhA5yE+U8PXE MosgrvwqeKfMw2ZC9+QN5WYMAF71h4mPhwEJv/PFzJtM3J9ZFOTxXQeDV8JLIFeUavCo LQ6kzb5vgyKZKsbJb7WCnkSC2Ue/voQsW0sm/Ztrljc4bParK7eg4GA+t8boCOFLi4ji kez7PFeUDQLmP6/ek5nlQ/s/hj+ty4RIK9ZBli4P758klpaXb45jvoRxZ9USF5x0Y4v5 v19w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763648973; x=1764253773; h=content-transfer-encoding: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; bh=PaSB0JDzx/KeBkAD7qB+B6gdM9jZdTTt3lJ/HLrBHFY=; b=uEKRq1oea08vC2ZOA9ZA2F+WO10mvJT37gU4uY07uO1b0Gv9pOt564lDzPAfOS/pn5 5hM4uunKZyzAKb2Il7BaQWxOa8TOjshNxHvznDmUmR1cOk+12MPEEB/OalVeG3mJIXLy usCLd8Hg355MeJHuWnKY6u+mPKli5TEOhDcmyKlrz0iw2AM6EScSa1GTNsdbjoO8Xyf/ TlzylCnAUlR2sN/7Dm6B4py1oZXktkBABVzp1/HlGIzGKgIuOV7ib7rwfXvnfCHHbDK+ aT5h44JaoYai0oZFnXL4HOLIY2XvZ+fbxqKkfzSgfMyIjLjycFy7EuWLTtf5uhBSgwZo Zfgw== X-Forwarded-Encrypted: i=1; AJvYcCWLRNY7uWUqtL1fEtrOUgc/cMoLu5bbnGVFw4rSXytokMAEeHCDun/lTMnFqrfZ1eTzG8maWaQ77vemf+s=@vger.kernel.org X-Gm-Message-State: AOJu0YyvcoLrhr2ugYBJF2X4WwjHjkcaCUC5h1jI48NKUZ/DdS1gOYci +CuSj0n6qR6tOGT+KRDOJ7vep+ZzBntx5fEAg4BAeth0MYgL6Fvi25// X-Gm-Gg: ASbGncvf4OldGbI/6TqpeQPgRLH6NBGeqwGBmbr69jviUEmmK1mGjPY5BRbzkiRzdQt bsRfxmFit3lr9ZP3H6xTP6Z1X5V3wbo3SPzDBuQrRygICZi5OcDDPzrJds63FIHZXvlURiueVsl nDanKEpShBEH/8CY2mE/RKNx3N4zfTeRVuH8WlRen5amIi2TUsTBkAHDTiRMrpJ9ofCNq1jnIaW N04oR31NdyPqr/sftHDDFtvMNup/viv1RFvcKXrq4TFhy8PtajvHg6FlumdT3wd6yT2wiLfo6m/ EZOKziFfOFE4MkNLhNbcbfHEIiELgJ5VLZVNOtfIpAr3Irh/wdgZlc/7PhBF1iXoxv2HdZB0Uk4 ChOA5hZ5V1MUqCLkpFMmsrt0AjqSUqgx/Wleg0wUrwffQe6V9dHcW43N0HkqyclaARDuigPD076 t/U1LTRfzThYYqzvD5I20nk6s+6tm+F8t8ug== X-Google-Smtp-Source: AGHT+IFRXp1PdrvCziYVlZhZPS+kvq66GveiKYFYWzSPfuPYcPK4t//nyW6R5AUbCQZ7bSE1VqWV6A== X-Received: by 2002:a05:600c:444c:b0:45d:e28c:875a with SMTP id 5b1f17b1804b1-477b8aa06c0mr36976405e9.31.1763648972549; Thu, 20 Nov 2025 06:29:32 -0800 (PST) Received: from [192.168.1.121] ([176.206.93.222]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-477b0ffd37bsm115336785e9.3.2025.11.20.06.29.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Nov 2025 06:29:32 -0800 (PST) Message-ID: <5e577dcf-995e-441b-9351-11d6da097fcc@gmail.com> Date: Thu, 20 Nov 2025 15:29:31 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v9 06/11] HID: asus: early return for ROG devices To: Antheas Kapenekakis Cc: platform-driver-x86@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Kosina , Benjamin Tissoires , Corentin Chary , "Luke D . Jones" , Hans de Goede , =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= References: <20251120094617.11672-1-lkml@antheas.dev> <20251120094617.11672-7-lkml@antheas.dev> Content-Language: en-US, it-IT, en-US-large From: Denis Benato In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 11/20/25 15:15, Antheas Kapenekakis wrote: > On Thu, 20 Nov 2025 at 14:29, Denis Benato wrote: >> >> On 11/20/25 10:46, Antheas Kapenekakis wrote: >>> Some ROG devices have a new dynamic backlight interface for control by >>> Windows. This interface does not create an ->input device, causing the >>> kernel to print an error message and to eject it. In addition, ROG >>> devices have proper HID names in their descriptors so renaming them is >>> not necessary. >> Is this patchset supposed to work without the renaming, correct? >> >> If so consider dropping the drop of renames, taking required time >> to organize with Derek and resubmit when things are ready: >> there is no point for the rename to stall the rest and quit renaming >> is not urgent at all. > I feel like two months is enough of a timeframe for a simple rename > fix to go in. > > I do not want to have to reorder the checks just so the rename can > stay in _for now_. Skipping the ->input check is important for both > Xbox Ally/Z13 as it causes errors and the device to stay partially > uninitialized. > >>> Therefore, if a device is identified as ROG, early return from probe to >>> skip renaming and ->input checks. >>> >>> Signed-off-by: Antheas Kapenekakis >>> --- >>> drivers/hid/hid-asus.c | 7 +++++++ >>> 1 file changed, 7 insertions(+) >>> >>> diff --git a/drivers/hid/hid-asus.c b/drivers/hid/hid-asus.c >>> index 3047bc54bf2e..6193c9483bec 100644 >>> --- a/drivers/hid/hid-asus.c >>> +++ b/drivers/hid/hid-asus.c >>> @@ -1236,6 +1236,13 @@ static int asus_probe(struct hid_device *hdev, const struct hid_device_id *id) >>> asus_kbd_register_leds(hdev)) >>> hid_warn(hdev, "Failed to initialize backlight.\n"); >>> >>> + /* >>> + * For ROG keyboards, skip rename for consistency and ->input check as >>> + * some devices do not have inputs. >>> + */ >>> + if (drvdata->quirks & QUIRK_ROG_NKEY_KEYBOARD) >>> + return 0; >>> + >>> /* >>> * Check that input registration succeeded. Checking that >>> * HID_CLAIMED_INPUT is set prevents a UAF when all input devices >> Just for clarity is this supposed to fix this: https://gitlab.com/asus-linux/asusctl/-/issues/700 ? >> This model works once in windows users disable that new feature. >> >> Note: that kernel the person submitting the bug is using contains your v8 >> and asus-armoury. >> > No. This user has a laptop that has at least a WMI implementation of > RGB controls (this is why you can see rgb settings). Since you did not > ask for logs, it is not clear if it also has a HID implementation that > is skipped due to e.g., a missing product ID. Very likely it is a bug > on the WMI implementation that is out of scope for this series. I will ask for logs, but I recall someone with the same model sent dmesg already, I'll try to find it, but if this is true... Are we lending control of LEDs to a bugged WMI implementation for this laptop?