Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp457097rdf; Tue, 21 Nov 2023 07:16:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IFZbdkTXOY9xQNHfnavZebs7BVyV/DiLvxPsHdap0GNPZ1ojkZ2cQkbQgLb++qllZF6KSWs X-Received: by 2002:a17:902:cec6:b0:1ce:65e9:29bb with SMTP id d6-20020a170902cec600b001ce65e929bbmr13389775plg.54.1700579783974; Tue, 21 Nov 2023 07:16:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700579783; cv=none; d=google.com; s=arc-20160816; b=SJXOADiAjeuLyeo2pVnBrXJGLQNM78PWqfQdmfHOwJ+CpYvO/I5qn45ZeOR57QFDU5 uSW6uoJ14IuYs5Fbox0OyYOeY4BD+bnOnugKXWktxNVxYTJ7BJVSOMONmXEN1GbYteyN RLsPmJDV3pWHBf88vSE/97OZoNRcU+n9B9H0TIJyjwUKwQ05ANIQsI8f7V6082FrpEoH Wj70suvGEnf/lvgivUypSXdm6VFliEQY8voOLRReyQkKaaXdF0YC4M9Z26g1nUhLKrnr esndy5fyPmdkfxA2hrNURPV/K7PuLwmeZQyjalpsdxko2REkW+yF7y7oujgjXIUp/44T 11sg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=immUdrBK4u1j5QWyWq/EM5rs7GpdECQhAwrjbGRtfGQ=; fh=dJhtFW0Et6NWUdpjMvkZQxZAV/BcckjkoS/HgoZHhtY=; b=Znxfxw4phYcp25yfNJ2HrC16Zost3UztTWDDdXTjx1O/dpct+Bo3zHFFWqzdV7IMZK v7HgLZj761LSj+K1vB+jseKEbuM+pjqxtrSL1536lRj9gXuJ29NAnsT5gQm6/iAYuFbb XzCKDDiZk1RcWzfslwQOWFOSdxYVHoWE1lsVf2UIGBLGrt84PdVxethlCexlvWaakBr/ KtYTMkTdhw1DTUBJ58fGRso6HD8vgSuP8WPJzBE0MvKJ+MoSrbtffGAOmejiQr42rMt9 URVsYEqPu6nhvuFXxngZMYQfWOYxbSSuuIerPcWoWTzR6wqPmkSlhE+f8mImXESMLppn dhVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QBxIKDa8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id i5-20020a170902c94500b001cf68d4a49dsi2981114pla.472.2023.11.21.07.16.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 07:16:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QBxIKDa8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 8B1428075EEB; Tue, 21 Nov 2023 07:16:14 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234221AbjKUPQB (ORCPT + 99 others); Tue, 21 Nov 2023 10:16:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233930AbjKUPP6 (ORCPT ); Tue, 21 Nov 2023 10:15:58 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4871595 for ; Tue, 21 Nov 2023 07:15:55 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 73E39C433C8; Tue, 21 Nov 2023 15:15:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700579754; bh=o0D6VcCQZpUAwPWm8y5zZoRGK+djRokQuhzQmDc1Ots=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QBxIKDa855ZF2oYvMAHfBA2AvBeRZ62tqOpz8pVOxERO8DX69gyhW+e9uVJbKIKEt oyCQKUjuxoOU2iXDlti9IrDaj0eVX86fI0wigkMFcstMzdOqeIOz1Oka1ClE8WYkML TFQxNGTJVI/03aveXtVufVZEPI2sWy1ka1aD4t2xdmVWa2CVIJkrwVB9a2fvStgYsW 8gAhcYPM3SjkKlBVw8AQMS0pK5d7VfHTqrbYgd4GBOKRsNOMnwwUgSfVgsqW4RpBFD N0F/FLf896AEroD6V0BWf2aJhxKlLUGLJcnc1ozI35y5XX8Xf3TItZUiA+WvDm1RkR b1M9wHZ8LHWQQ== Date: Tue, 21 Nov 2023 15:15:49 +0000 From: Lee Jones To: Thorsten Leemhuis Cc: Takashi Iwai , Jean-Jacques Hiblot , Bagas Sanjaya , Linux Kernel Mailing List , Linux Regressions , Linux LEDs , Tim Crawford , Jeremy Soller , System76 Product Development , Pavel Machek , Johannes =?iso-8859-1?Q?Pen=DFel?= Subject: Re: Fwd: sysfs: cannot create duplicate filename .../system76_acpi::kbd_backlight/color Message-ID: <20231121151549.GA173820@google.com> References: <87sf50pm34.wl-tiwai@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 fry.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 (fry.vger.email [0.0.0.0]); Tue, 21 Nov 2023 07:16:14 -0800 (PST) On Tue, 21 Nov 2023, 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 wrote: > >>> 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 c7d80059b086c4986cd994a1973ec7a5d75f8eea, which introduces a new 'color' attribute for led sysfs class devices. 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 the kernel with the system76-apci color attribute renamed to kb_color, and that fixes the issue. > >>>> > >>>> Jean-Jacques Hiblot, would you like to take a look on this regression, > >>>> 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 multiple > >>> 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=218155 > > > > 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 already > without doing anything about it, I wonder if someone should just send a > revert to Linus (unless of course that is likely to introduce a > regression on its own). You seem to have gone from DEFCON 4 to DEFCON 2 there. The middle step is to submit a patch to fix the issue and follow the usual patch flow. -- Lee Jones [李琼斯]