Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp338511rdf; Tue, 21 Nov 2023 04:23:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IH/zFvp2acgxdkJdnyKJF6a2gUJJrzFiTrMKRUAHQ8BWecyfDgEMCbe78OJIhWcONzlfGGt X-Received: by 2002:a05:6a20:5528:b0:187:3709:80ae with SMTP id ko40-20020a056a20552800b00187370980aemr9520703pzb.36.1700569411642; Tue, 21 Nov 2023 04:23:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700569411; cv=none; d=google.com; s=arc-20160816; b=A1lACAfFruvcVNJXGgL2GKwjv+jW1i8oLDKKgy/qQWVRWks8p4utUgWQkQcIZqjGzl /buYFDTv/7UUL/AFBkXu6VjjGWnYOM+brHynPUDEXLAvJqo00t7dkfxlXUlmelTTXFzB p3fb38HQND8nnAbZQp8b3N9wLrqgo0Bwm3XXKD4hcfxqxNMXPXlZgOpl3Bj8nuM3sfJ8 OqTuKIFpN/RXhNUPDDRfvjagX2dO5fByj/gM8fqWaikSGbqtzeaFGylnedx2Obt0d1+n JfmTd12eA9CJJ1TtKp/0IkJzy+QeCSgMHx9sZftdt7p5SlmayQIgn/cfLZYts+T3rnmR oZsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=EgdkXy6q5JE0gaoC70ySFvGcqFyTFXzCOKDV430yozo=; fh=GmG32e3IB5vMo2Jg0vIlHu97CMUA1/49xrmt0hRpO5g=; b=GbbIPtccI0+LIW4BPbHqhUmA/ahFNjUi9L9oa+IEQd3yvZud1I/7E2OAI0H92Oy+Yb 53Y1YoORxd8iTMt7mxlzsWeWnjvW7hN6Fbh/4/Gtrn8Gcgvy8g3lM/j/YYfXzuBsZmxh KijicZgUS8TRF0Ig4B0RiGCMkr5M6usznxOirDmppnQOcQBZ0yG/2VwqMwjbMEFoRmDQ OpL13SfywZqDJyoduVpaRdpi0MP+ySFV4KRzCxZRVcsI3Vl01f7RxJ/xz6vQnzsAsWOV 52k3Eai5S8ydgvcQm6H2QlP77LVvCaStVYKnCmC32yBiUYaRk4RQW8KPMInXoST/KoP+ Obqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="QoPTFP/B"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id c27-20020a631c1b000000b005c200b11ba7si10119231pgc.763.2023.11.21.04.23.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 04:23:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="QoPTFP/B"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id C369E810680D; Tue, 21 Nov 2023 04:23:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234334AbjKUMXa (ORCPT + 99 others); Tue, 21 Nov 2023 07:23:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230497AbjKUMX3 (ORCPT ); Tue, 21 Nov 2023 07:23:29 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A02DA192 for ; Tue, 21 Nov 2023 04:23:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700569404; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EgdkXy6q5JE0gaoC70ySFvGcqFyTFXzCOKDV430yozo=; b=QoPTFP/Buhzehqls3bPAZZgmymwV5tLDTxGTnx1HR1EOipoLXtnS5ViuETnuoxXjG6Rfa3 1Vto9oaeTS9oE8bG4GU0JiMlCZqudkfnApTWSUyxU/MW1jJSaOF8Wpmlg3Fe0GIqlehaXs 23peimzatE8SrAYn4LYeFkGu4B599xs= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-155-ZyoGhG1AOpu2Y-ukaZcYuA-1; Tue, 21 Nov 2023 07:23:23 -0500 X-MC-Unique: ZyoGhG1AOpu2Y-ukaZcYuA-1 Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-5488320afd1so2241930a12.2 for ; Tue, 21 Nov 2023 04:23:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700569402; x=1701174202; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=EgdkXy6q5JE0gaoC70ySFvGcqFyTFXzCOKDV430yozo=; b=LelHzuiPgbQ3CaReUQsfrGKj/73TBDsjEFA23SeTsVNXNU7jKMWLYFDw5RJYY/IF8L eR+Y2M4ZYqlzdUz0awiVCAwTD2iwuJNQbbOzjerYHSPt/ceBN8P3Xs/5U48e2GP6/xl8 b+wCQpF96Rno0N+gJEbK7tvGfgHA1K0k+kY3I0oy0zcppQMHe8Pt3EL5yEFKVnZUbDRD xPv2bmBgoTKqfCmtihgct/KB9o7+R7wwu3SeWg84Xn7xsawCDTVpqCYs+IEaTMDjnOzI wKZHttQMmqBV2W4A69oPyzKcxeFBQ4a8pqWiGc8VnqA3Os33mO0jTKi24jQKL0XE09Gq V2EQ== X-Gm-Message-State: AOJu0Yz6GmVD7pkoLe71OkRbJydP5FrfCRqAWN2s2AwdIj3d/FiMmD4b OCMzgf1hFlHH/Bj3x76IVgudu4fxrmEZuBSyW2IpHUsqcYuPg0VFDimEBJOhJmDKJ2wdubETH5q e2ea9+yIgg/myrYlVL9HzW9+q X-Received: by 2002:a05:6402:797:b0:543:8391:a19a with SMTP id d23-20020a056402079700b005438391a19amr1579222edy.40.1700569402530; Tue, 21 Nov 2023 04:23:22 -0800 (PST) X-Received: by 2002:a05:6402:797:b0:543:8391:a19a with SMTP id d23-20020a056402079700b005438391a19amr1579205edy.40.1700569402226; Tue, 21 Nov 2023 04:23:22 -0800 (PST) Received: from ?IPV6:2001:1c00:c32:7800:5bfa:a036:83f0:f9ec? (2001-1c00-0c32-7800-5bfa-a036-83f0-f9ec.cable.dynamic.v6.ziggo.nl. [2001:1c00:c32:7800:5bfa:a036:83f0:f9ec]) by smtp.gmail.com with ESMTPSA id z1-20020aa7cf81000000b0053e89721d4esm4706851edx.68.2023.11.21.04.23.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Nov 2023 04:23:21 -0800 (PST) Message-ID: <37f6aa8e-8cab-4194-8493-8e39819ed608@redhat.com> Date: Tue, 21 Nov 2023 13:23:20 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Fwd: sysfs: cannot create duplicate filename .../system76_acpi::kbd_backlight/color Content-Language: en-US, nl To: Takashi Iwai Cc: Thorsten Leemhuis , Jean-Jacques Hiblot , Bagas Sanjaya , Linux Kernel Mailing List , Linux Regressions , Linux LEDs , Tim Crawford , Jeremy Soller , System76 Product Development , Lee Jones , Pavel Machek , =?UTF-8?Q?Johannes_Pen=C3=9Fel?= References: <87sf50pm34.wl-tiwai@suse.de> <87edgjo2kr.wl-tiwai@suse.de> <874jhfo0oc.wl-tiwai@suse.de> From: Hans de Goede In-Reply-To: <874jhfo0oc.wl-tiwai@suse.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE,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 lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Tue, 21 Nov 2023 04:23:29 -0800 (PST) Hi, On 11/21/23 11:33, Takashi Iwai wrote: > On Tue, 21 Nov 2023 11:21:53 +0100, > Hans de Goede wrote: >> >> Hi, >> >> 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 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). >>>> >>>> Takashi, could you maybe do this, unless a fix shows up real soon? >>> >>> I can, but we need to decide which way to go. >>> There are several options: >>> >>> 1. Revert the commit c7d80059b086; >>> this drops led class color sysfs entries. Also the store of >>> led_cdev->color from fwnode is dropped, too. >>> >>> 2. Drop only led class color sysfs entries; >>> a partial revert of c7d80059b086 above >> >> AFAIK further up in the thread (or a related thread) there >> already was consensus to do this. Someone just needs to >> write the patch. > > 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. I honestly don't know. I've mostly just been reading along. I think there may be some future in kernel use planned (not sure at all though). If there are no current in kernel users then I agree we should just go with a full revert now to fix the regression. If some later in kernel users do come along then they can always re-introduce the change minus the sysfs attr addition. Regards, Hans