From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (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 CA862340A57 for ; Wed, 26 Nov 2025 20:27:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764188848; cv=none; b=X6DrSkbzlnKPz7GNmNTNjDLan4+OeTg1+knsXQaxw/bOSBhqNGNjNK9F4h0H0QuaUr2q3XEcuNpPIZoLRl2V2tNt0W2b7tv/Tgaxw9XWIBHANJQgIJItO6AhvOXlUefKFLvrhhPN/5AjE0sIuxcDUk7dnh4bwzlhWvhOHLuOD9M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764188848; c=relaxed/simple; bh=HKIM2XDlOtvCtdXcaqehs0suX2nO2L/FZMa8sZTYwVs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=k2cjHgGfBSQ3ZgtS3DnDRl8Z5NF6YGupMXd/8MN1Ps4O0xqGlvYWt1PepROCMwr7yC5QM9LlDCzR76BJ6L9GRGZFJaLWgbwp7dXdJ93S52aRjF/FEBSTW5xnDZmZEMa/WdUuGDxHZJJNHrbm4Y4UuLUQGF12XrypGDfuC/XxDkE= 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=feJ7B9X0; arc=none smtp.client-ip=209.85.221.54 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="feJ7B9X0" Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-42b31c610fcso202397f8f.0 for ; Wed, 26 Nov 2025 12:27:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764188845; x=1764793645; 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=IZ8dEFu4Kwk+BNf08Ffe5YWG7kcopfid5SLE5GDJ9VI=; b=feJ7B9X0fUWnYAEjKy0+CLdsG2hP5AUItwIUPe2OMecOeEvgmrxIE+MUYTwsxmu98l zoqau4urfa+QP7H13/A2L6ZLIFbieOPGyIw8VEdDdMHwE+bbzwPhfiDzUmjiDvc9qlMr lS1i0IkGa7JWFh+d+n2BktH+4bNqIu0PEzDiRIUSBHbo0nMCUYjxeXD0RtEhf8zwj4p5 YcDYNBDUojxo6pp2Q8TuYzzDqGqjc/SqlaGmGdN5vVwAf9NcLOLsrPV624RZKwyzasZF zzJf5E+YGs6A4rgcA8QjIBP0+vi9FrKnJ3KRRodXYyZ8qKa3mc8Wkk6XYLl+nZ8D007c MrOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764188845; x=1764793645; 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=IZ8dEFu4Kwk+BNf08Ffe5YWG7kcopfid5SLE5GDJ9VI=; b=pa4g0GUBSVYdDzTJtExJaKEnT2/uX+yXn2oo9RxCwO3YEp+oPhYxocIoKASY9mgxin gny3Tp920x90g8xWTjj/iUX2GLL9dmJb9AQHaSvv2wmhq9e8teIwz4WQlfEjhwjOJDIm GXXx70LW0ku1bnT4VW1O9N2MEQ/2OgCpAn5yKrilhIRQ+MVou6w1apRe26WgvcP5TQmk aUqK3P7ug9Ycee6Jk33PTv+J4OVkL5yTZBy0H4JuFdDU9Eq8lKrmINdHovu2+ioDShr5 4nhbAHACrl1B/vv/qSF1vF1FZ3YFB3bhZ8L241XvT0Mlhg+plPDyZLO6W0UNrvJeN+4W +XUg== X-Gm-Message-State: AOJu0Yyee6lgVD68W3eF0KgtP7kdHr2pOj19P8N960JwiyNB1xbMOCKt NMZgr2acPHHjgHy4CNOL7Kf8B+CF3IVj2u5UWYqYZdcuCKxSXGF2o7TI X-Gm-Gg: ASbGncterqkd9mtzX0bZNkcVMNoR5U9jZtjCt9cRTo+muCkXHKzJ3MVhT4AqoLN2izw f6evgmvcj+6tlVLi/8ptWm1zOPwoUvPbPlMluAkw1t73fcgIrlPQbPW33R33YhAhRP8K6gXmZAU CGSCW1N7P6Kl5MZqzHNWBvQd1JoXhLXiRccpE6NWXgRYt/3DSAw5da7N4r2kNCZEOE9Pw9ZH8ap 0jgOdVb5m4jtk5HVe8sban33PItw54+W6jjEM2FRrjfUt4hsGXi8EvwO2dw2SHhwbdDpY1msLJW n6JVb0pxLXUHb/uIA91vfJuGeDczS1JF3fT5fSsUQ6jYdlzxgX9rEcFJXIhLRKggHcz5H2zIi8G nHw2St+qNFsC1P8BtocI3lbwR4UNsHdhrCoclxgEG00WD9AmNdGXZYwlA/MylIHI7FAf+ilOecw gEfcvJ50YpBozSGw7kT0IaJy3K4Y4eb76VRA== X-Google-Smtp-Source: AGHT+IFTYDrylDG61uHyZO6/gRHuthjRBFqmgEiPn9uOZLoUbhfE7iVNC9MC3qLEfOeTbADm3HWnrA== X-Received: by 2002:a05:6000:2c0c:b0:42b:2c61:86f1 with SMTP id ffacd0b85a97d-42e0f34a082mr8842552f8f.35.1764188844984; Wed, 26 Nov 2025 12:27:24 -0800 (PST) Received: from [192.168.1.121] ([176.206.93.222]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-42cc231dc6esm33031198f8f.7.2025.11.26.12.27.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Nov 2025 12:27:24 -0800 (PST) Message-ID: <400c681d-a841-4bfd-a7a3-b8d4c6683124@gmail.com> Date: Wed, 26 Nov 2025 21:27:24 +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 v10 02/11] HID: asus: initialize additional endpoints only for legacy devices To: Antheas Kapenekakis , platform-driver-x86@vger.kernel.org, linux-input@vger.kernel.org Cc: 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: <20251122110032.4274-1-lkml@antheas.dev> <20251122110032.4274-3-lkml@antheas.dev> Content-Language: en-US, it-IT, en-US-large From: Denis Benato In-Reply-To: <20251122110032.4274-3-lkml@antheas.dev> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 11/22/25 12:00, Antheas Kapenekakis wrote: > Currently, ID1/ID2 initializations are performed for all NKEY devices. > However, ID1 initializations are only required for RGB control and are > only supported for RGB capable devices. ID2 initializations are only > required for initializing the Anime display endpoint which is only > supported on devices with an Anime display. Both of these > initializations are out of scope for this driver (this is a brightness > control and keyboard shortcut driver) and they should not be performed > for devices that do not support them in any case. > > At the same time, there are older NKEY devices that have only been > tested with these initializations in the kernel and it is not possible > to recheck them. There is a possibility that especially with the ID1 > initialization, certain laptop models might have their shortcuts stop > working (currently unproven). > > For an abundance of caution, only initialize ID1/ID2 for those older > NKEY devices by introducing a quirk for them and replacing the NKEY > quirk in the block that performs the inits with that. Reviewed-by: Denis Benato > Signed-off-by: Antheas Kapenekakis > --- > drivers/hid/hid-asus.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/drivers/hid/hid-asus.c b/drivers/hid/hid-asus.c > index a82286a427b8..9004814fb0d3 100644 > --- a/drivers/hid/hid-asus.c > +++ b/drivers/hid/hid-asus.c > @@ -90,6 +90,7 @@ MODULE_DESCRIPTION("Asus HID Keyboard and TouchPad"); > #define QUIRK_ROG_NKEY_KEYBOARD BIT(11) > #define QUIRK_ROG_CLAYMORE_II_KEYBOARD BIT(12) > #define QUIRK_ROG_ALLY_XPAD BIT(13) > +#define QUIRK_ROG_NKEY_LEGACY BIT(14) > > #define I2C_KEYBOARD_QUIRKS (QUIRK_FIX_NOTEBOOK_REPORT | \ > QUIRK_NO_INIT_REPORTS | \ > @@ -652,7 +653,7 @@ static int asus_kbd_register_leds(struct hid_device *hdev) > if (!(kbd_func & SUPPORT_KBD_BACKLIGHT)) > return -ENODEV; > > - if (drvdata->quirks & QUIRK_ROG_NKEY_KEYBOARD) { > + if (drvdata->quirks & QUIRK_ROG_NKEY_LEGACY) { > ret = asus_kbd_init(hdev, FEATURE_KBD_LED_REPORT_ID1); > if (ret < 0) > return ret; > @@ -1376,10 +1377,10 @@ static const struct hid_device_id asus_devices[] = { > QUIRK_USE_KBD_BACKLIGHT }, > { HID_USB_DEVICE(USB_VENDOR_ID_ASUSTEK, > USB_DEVICE_ID_ASUSTEK_ROG_NKEY_KEYBOARD), > - QUIRK_USE_KBD_BACKLIGHT | QUIRK_ROG_NKEY_KEYBOARD }, > + QUIRK_USE_KBD_BACKLIGHT | QUIRK_ROG_NKEY_KEYBOARD | QUIRK_ROG_NKEY_LEGACY }, > { HID_USB_DEVICE(USB_VENDOR_ID_ASUSTEK, > USB_DEVICE_ID_ASUSTEK_ROG_NKEY_KEYBOARD2), > - QUIRK_USE_KBD_BACKLIGHT | QUIRK_ROG_NKEY_KEYBOARD }, > + QUIRK_USE_KBD_BACKLIGHT | QUIRK_ROG_NKEY_KEYBOARD | QUIRK_ROG_NKEY_LEGACY }, > { HID_USB_DEVICE(USB_VENDOR_ID_ASUSTEK, > USB_DEVICE_ID_ASUSTEK_ROG_Z13_LIGHTBAR), > QUIRK_USE_KBD_BACKLIGHT | QUIRK_ROG_NKEY_KEYBOARD },