Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp317344rdf; Tue, 21 Nov 2023 03:46:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IHx7Xbw6Gi0zkX5kWnhyKrxxIGvnfR3I2qdzlE039I8/mNBETp0PfPzWkjcfFVlwmb37r2O X-Received: by 2002:a05:6a00:2d20:b0:6c6:1648:5ac6 with SMTP id fa32-20020a056a002d2000b006c616485ac6mr8221013pfb.5.1700567166625; Tue, 21 Nov 2023 03:46:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700567166; cv=none; d=google.com; s=arc-20160816; b=Wnyb5tqzhZf0lq9Rf0nl9tKeqDvFsEPEyJc0fxv2/DLSFjyvqWGhkSXZEUf21qMmFw sDQaenX3NpxFedph/gG/LTWPeEWllF8mA/58U/h48UEMWFGUocbOY2xhPGXsUIMlrfBU D/WZbgaVsDddHA4P+WjCU4xGcrayRrJX2fpSb/JB/Rdut/QKl1MkxjJMheXMd2M4ixGw OMB2I00oXBeGWBhkqhmyYeFckafa/hNW+kpVK6+N3QjdPkF/pl81RB/hgJL+jRbO1r8C gMk+RamWeeG6E3jQOuKehNXtfoew2sgsgZOuZEBPHxDhpYN0chf/1AXB5Yth4HOtIjY3 0kZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5TsncJnkHHhH5aFZnD34nAuzJ0Am/ijvmcDHG7xzyko=; fh=qKnLkId4X5zzhj80THwHZAdvi9HG54olLvvNJO/5ylM=; b=suB1wjmC8fTY5uvwUY1yU5te6t+qbWTBKLo2+0pEStjqfXv8Fd4Hw93Ik+KpS77zYu ul0YynbHbvqNKG2++f9UdWZxwsrTJa7zBIgnp5svsbDnqE+CV5QZaoz/qPc0AFZLBr6S h461qIY3xmhv5q+F4QET44JKR83yqVnKPAuU2JKOWbx52Hytq2oH+XCoYIGDw97/emuB +XDvfecz0hnuqYnpUK3g9m+awyEq9sREgKkRWD+SNQL1vXNXE86gSW5o2IdmGL8QVw6z Tpr5fgwD+pXn+8hglLEIAhofpRmw9p3pv7WeZ7QDVWLXGCrJ/a+TTmKjjQqfMLneSaRi bMUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=M2wTXvVP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id e32-20020a631e20000000b005bde6fae09asi9631260pge.135.2023.11.21.03.46.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 03:46:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=M2wTXvVP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 68BD3808D2A5; Tue, 21 Nov 2023 03:45:57 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230428AbjKULpe (ORCPT + 99 others); Tue, 21 Nov 2023 06:45:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229561AbjKULpc (ORCPT ); Tue, 21 Nov 2023 06:45:32 -0500 Received: from mail-il1-x12a.google.com (mail-il1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25E57110; Tue, 21 Nov 2023 03:45:29 -0800 (PST) Received: by mail-il1-x12a.google.com with SMTP id e9e14a558f8ab-35b03e9c08eso6686725ab.1; Tue, 21 Nov 2023 03:45:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700567128; x=1701171928; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=5TsncJnkHHhH5aFZnD34nAuzJ0Am/ijvmcDHG7xzyko=; b=M2wTXvVP+PBdSD+xHMocJLk6Ez8tcK5oRdgKqROBzIl9RTu5+6hQBVfAiI1BCh1TKY 0vkgd/0ygrqZXap1vtPeIkJE04Apj8qAUVKWUN5TGJP+dbDAwuboIfCX8U9cikdqh/M1 +6kF+6Z3hlQiqyTVlkosK8y17FZUWgldh4zRx32TkWxLZXrCRfSy/KzBbjCZrIMvedeA BdI/St4pbiNmAJbSqlddnLvoq5D6VnY4xcXgOrBSfeoXM0QX/ZAl4qG4vV7eMFxAENNb 4pWkXJzkQrmPDaaSfKuIScq8bo0hzcnqjd9SCehavhTGgtbPGpM3QlIW3MlbLR5cHCjf tUKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700567128; x=1701171928; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=5TsncJnkHHhH5aFZnD34nAuzJ0Am/ijvmcDHG7xzyko=; b=RTV4ULRTQkQ9AqMKAtMRO8J01jbDfkUBWPfk7mnBTdqL4hQX9U6I7wbXOASr3BjjTC 7LE9DakQXg1Wxg0L1+1MyXm7CpmcZr5IBECh7ySO23DPjPpRlttfRwjJWzyjllMYo3Nw k1BqmLc+E9BFQSVIwsMt66+/hqSI+7tfmPHCfQKsfXod0zWPzTta9QPAI+BZWaGZ8nTv 7qhlYOa4YfGzMRJCGbiZJcjLMH/91WJCkQRniWmB1S33x7tT8wxe7iVFdG8Sv2GLg5Tn awbKZPMCKxNKga67goYO4SAzjtx/UcHnS0duhs4p+Ifuc+k8iJerWWZXK6hmlijVftc4 gdyQ== X-Gm-Message-State: AOJu0Yx5Y8CjjXq5sFTe6VselNIvYCDkJB8AyAzHnjd3nVR9UEJ+frWc ulRZEi1wrtn78ceT9ogy9jM= X-Received: by 2002:a05:6e02:13ee:b0:35b:2f7:514f with SMTP id w14-20020a056e0213ee00b0035b02f7514fmr5981800ilj.32.1700567128408; Tue, 21 Nov 2023 03:45:28 -0800 (PST) Received: from archie.me ([103.131.18.64]) by smtp.gmail.com with ESMTPSA id h7-20020a056a00170700b006cb574445efsm5722770pfc.88.2023.11.21.03.45.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 03:45:27 -0800 (PST) Received: by archie.me (Postfix, from userid 1000) id 0CE3F102106CB; Tue, 21 Nov 2023 18:45:20 +0700 (WIB) Date: Tue, 21 Nov 2023 18:45:20 +0700 From: Bagas Sanjaya To: Takashi Iwai , Hans de Goede Cc: Thorsten Leemhuis , Jean-Jacques Hiblot , Linux Kernel Mailing List , Linux Regressions , Linux LEDs , Tim Crawford , Jeremy Soller , System76 Product Development , Lee Jones , Pavel Machek , Johannes =?utf-8?Q?Pen=C3=9Fel?= Subject: Re: Fwd: sysfs: cannot create duplicate filename .../system76_acpi::kbd_backlight/color Message-ID: References: <87sf50pm34.wl-tiwai@suse.de> <87edgjo2kr.wl-tiwai@suse.de> <874jhfo0oc.wl-tiwai@suse.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="avoRCUQPSyjgJdcP" Content-Disposition: inline In-Reply-To: <874jhfo0oc.wl-tiwai@suse.de> X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 21 Nov 2023 03:45:57 -0800 (PST) --avoRCUQPSyjgJdcP Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 21, 2023 at 11:33:55AM +0100, Takashi Iwai wrote: > On Tue, 21 Nov 2023 11:21:53 +0100, > Hans de Goede wrote: > >=20 > > Hi, > >=20 > > On 11/21/23 10:52, Takashi Iwai wrote: > > > On Tue, 21 Nov 2023 10:19:03 +0100, > > > Thorsten Leemhuis wrote: > > >> > > >> Takashi, Jean-Jacques Hiblot, Lee, > > >> > > >> On 20.11.23 14:53, Takashi Iwai wrote: > > >>> On Mon, 06 Nov 2023 14:19:08 +0100, > > >>> Bagas Sanjaya wrote: > > >>>> On Sat, Nov 04, 2023 at 01:01:56PM +0100, Jean-Jacques Hiblot wrot= e: > > >>>>> On 29/10/2023 02:48, Bagas Sanjaya wrote: > > >>>>>> On Thu, Oct 26, 2023 at 02:55:06PM +0700, Bagas Sanjaya wrote: > > >>>>>>> The culprit seems to be commit c7d80059b086c4986cd994a1973ec7a5= d75f8eea, which introduces a new 'color' attribute for led sysfs class devi= ces. The problem is that the system76-acpi platform driver tries to create = the exact same sysfs attribute itself for the system76_acpi::kbd_backlight = device, leading to the conflict. For testing purposes, I've just rebuilt th= e kernel with the system76-apci color attribute renamed to kb_color, and th= at fixes the issue. > > >>>>>> > > >>>>>> Jean-Jacques Hiblot, would you like to take a look on this regre= ssion, > > >>>>>> since you authored the culprit? > > >>> > > >>>>> The offending commit stores the color in struct led_classdev and = exposes it > > >>>>> via sysfs. It was part of a series that create a RGB leds from mu= ltiple > > >>>>> single-color LEDs. for this series, we need the color information= but we > > >>>>> don't really need to expose it it via sysfs. In order to fix the = issue, we > > >>>>> can remove the 'color' attribute from the sysfs. > > >>>> > > >>>> OK, see you in the patch! > > >>> > > >>> Is there a patch available? > > >> > > >> Not that I know of. Could not find anything on lore either. > > >> > > >>> This bug hits for a few Logitech keyboard models, too, and it makes > > >>> 6.6 kernel unsable for them, as hid-lg-g15 driver probe fails due to > > >>> this bug: > > >>> https://bugzilla.kernel.org/show_bug.cgi?id=3D218155 > > >>> > > >>> We need a quick fix for 6.6.x. > > >> > > >> Given that Jean-Jacques Hiblot (the author of the culprit) and Lee (= who > > >> committed it and sent it to Linus) know about this for a while alrea= dy > > >> without doing anything about it, I wonder if someone should just sen= d a > > >> revert to Linus (unless of course that is likely to introduce a > > >> regression on its own). > > >> > > >> Takashi, could you maybe do this, unless a fix shows up real soon? > > >=20 > > > I can, but we need to decide which way to go. > > > There are several options: > > >=20 > > > 1. Revert the commit c7d80059b086; > > > this drops led class color sysfs entries. Also the store of > > > led_cdev->color from fwnode is dropped, too. > > >=20 > > > 2. Drop only led class color sysfs entries; > > > a partial revert of c7d80059b086 above > >=20 > > AFAIK further up in the thread (or a related thread) there > > already was consensus to do this. Someone just needs to > > write the patch. >=20 > Well, is there any user of this new led_classdev.color field? > The value read from fwnode is stored there, but as far as I see, there > seems no real user, so far. If it's still unused, we can do the whole > revert -- which is cleaner. ACK for the revert. The original commit should have been designed to not have sysfs conflict like this, though. Thanks. --=20 An old man doll... just what I always wanted! - Clara --avoRCUQPSyjgJdcP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSSYQ6Cy7oyFNCHrUH2uYlJVVFOowUCZVyYUAAKCRD2uYlJVVFO o5mNAP4u3Wc1/hr5E+vWPaq6O28ZmZ+BHGpDfTiZ4BWEye6Q4AD9G0LmUN2jwGtd k30vUK6fk2DQWsvCfuimjR905DD7GQo= =sj55 -----END PGP SIGNATURE----- --avoRCUQPSyjgJdcP--