Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp1023346rdf; Wed, 22 Nov 2023 03:44:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IGW1d2N6ucwXqFd3FDSkwpDbHrAP2I9wf1cm2igquqzSCDQqNSZhgQOuRQxPJk3vckYF8fi X-Received: by 2002:a05:6a20:6f8e:b0:187:1ea7:9509 with SMTP id gv14-20020a056a206f8e00b001871ea79509mr2270353pzb.32.1700653487257; Wed, 22 Nov 2023 03:44:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700653486; cv=none; d=google.com; s=arc-20160816; b=vTMbWsCx4lJrC2zSC0E4MfZDwIk63Lg6HzNhIwW+OnCqjaGd84pi+ZMgYMQsQ+hsg9 vehQn34X+q2ER04FL/hN8RO5z5hnaRsCN63hP5Jml+P4cdj7m0DaUrv4gUjsBVh0RBch vRV0uaO7rRh8X1DPNld18rCBuugVd7wN2UWMdt7i7HugEi8S7c0OUNa3F9ezp2UuRvcN NB0pA3rC4mRnA3MjjnnxO8tMZY4++744tvHvpe+WJGYb8tCDpOw54j8uo7LgM6Md8qd8 CnxmdYCosXdwUJR7V3tJVgyXboeMHvBVR8zWG1CJ2rYmHAp6/AyQw+lVVdq72rT6lFoH 20ww== 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=bpQMC7HIybSTJIYFzaVhcMtYI3GV5W5iuAKM9i+qbCM=; fh=9F6+JCb2laKNS6euIWk/q9+TnySPplW3Vc1lA49tQVA=; b=foyclptWJ2mvMEu/X1xTfM70G/eVEae0FH88e0ESpOf7MliQR7fLOn0LGbmf1AIFe3 KNGNfbyVzTgEvarm4Q2oQmDVHoZ5VuADcBLpacMQJfEnFa9tHFwxoAuqccfxB1xpSm7j 6lJ3jvMAdg6MulnbOS6Ro8wr201ilEMttaw+RZnJj2dEUZlmZtTnXXv5C0UQEW9CtqAH iw2Cy5X/GDS/rAMT6wuUyWnVPhcdM7PrKpFDL2lmEMgT75zraEWbqZ6ALjl0vOXCAuJm U+hL4FUcWAr9aEFoQ77yTVwZ3eYKH25AYve6OTgCL4XnTGU7viDd6XQbjwAMQIBNkb0K MvIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LeWAAWB2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id t14-20020a170902e84e00b001cc4107a515si13036594plg.48.2023.11.22.03.44.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 03:44:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LeWAAWB2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 6AE3180725F6; Wed, 22 Nov 2023 03:44:44 -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 S1343781AbjKVLoo (ORCPT + 99 others); Wed, 22 Nov 2023 06:44:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343633AbjKVLon (ORCPT ); Wed, 22 Nov 2023 06:44:43 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 279681A4 for ; Wed, 22 Nov 2023 03:44:40 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA249C433C8; Wed, 22 Nov 2023 11:44:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700653479; bh=7SCLZMf84i/qdLRLpb12nwODAA5V91JB6qPLNeOI4r8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LeWAAWB2FZYRKX72WUi+YzRnAWVj0km31wIJTRJ2a6Qo8HKK6/560QJjqhLYlLWTt 14N/F4CcIe6hhXj8L2cB+SM5EDF6OQnerLOdVfj1Mlz2BWXaOzAzbmsTghFQLFPVXD oMAWM1p78QSfttqadhHzOV3OUnHeHi4NmgXuVJXbp8rBllrkoa/a58F9ylxGE78mol RKm/dKV/eBH1CShSSsFbbVxQycuLkVNmMxyL4GpPrcib2Zzyej5PPcFnnNGcr6PoP5 YOQhtlROB1mGhvbVPEzNQ3oehlvNPrq78Ph52N8ZSWeo6xIVUgpMRpudfMl4QHmNkJ nLrvbW5AboP/w== Date: Wed, 22 Nov 2023 11:44:34 +0000 From: Lee Jones To: Takashi Iwai Cc: Pavel Machek , Jean-Jacques Hiblot , linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, Johannes =?iso-8859-1?Q?Pen=DFel?= , Jeremy Soller , Hans de Goede , Bagas Sanjaya Subject: Re: [PATCH] Revert "leds: class: Store the color index in struct led_classdev" Message-ID: <20231122114434.GI173820@google.com> References: <20231121142629.27083-1-tiwai@suse.de> <170057941222.880794.5199112193553712244.b4-ty@kernel.org> <87v89v9j9t.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: <87v89v9j9t.wl-tiwai@suse.de> X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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]); Wed, 22 Nov 2023 03:44:44 -0800 (PST) On Tue, 21 Nov 2023, Takashi Iwai wrote: > On Tue, 21 Nov 2023 16:10:12 +0100, > Lee Jones wrote: > > > > On Tue, 21 Nov 2023 15:26:29 +0100, Takashi Iwai wrote: > > > This reverts commit c7d80059b086c4986cd994a1973ec7a5d75f8eea. > > > > > > The commit caused regressions to a few drivers (such as Logitech > > > keyboard or System76 ACPI) that already had "color" leds sysfs entry; > > > now they conflict with the commonly created sysfs of led class. > > > > > > For addressing the regression, we revert the commit, so that the > > > conflicting "color" sysfs entry is removed. > > > > > > [...] > > > > Applied, thanks! > > > > [1/1] Revert "leds: class: Store the color index in struct led_classdev" > > commit: 17e1ad377bb1d39260e0594ee284d8e03f64fdfb > > It turned out that drivers/leds/rgb/leds-group-multicolor.c > initializes the cdev->color, and this revert breaks it. Indeed: linux/leds-fixes/drivers/leds/rgb/leds-group-multicolor.c: In function ‘leds_gmc_probe’: linux/leds-fixes/drivers/leds/rgb/leds-group-multicolor.c:109:49: error: ‘struct led_classdev’ has no member named ‘color’ linux/leds-fixes/drivers/leds/rgb/leds-group-multicolor.c:120:13: error: ‘struct led_classdev’ has no member named ‘color’ > So please scratch my previous revert patch. > I'm going to submit a partial revert instead. Sure. -- Lee Jones [李琼斯]