Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16402480rwd; Mon, 26 Jun 2023 09:29:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6RKPnPXGlzw6EGi7wKFWYnXAwia8jC4kODgcUlL57qeDk/wqYjJblsW2LcLBcN95aSom+y X-Received: by 2002:aa7:d94a:0:b0:51d:9c9a:73c8 with SMTP id l10-20020aa7d94a000000b0051d9c9a73c8mr1844783eds.11.1687796981957; Mon, 26 Jun 2023 09:29:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687796981; cv=none; d=google.com; s=arc-20160816; b=nIoaLPxhUOcuf4PZ1C7g7N/0AGtNC0ebpDR6Tv+OlqBvqDIuGX3xq0MclYSzYd7K4u IoNsKIkgAlO+33ZOFvMmb3eFG48tHUe7PoZFYeudbTkq6ggut+mteKEj6rKhzn0Ot0HV vcL97VPPBXuzFq/7KZyTN/jT8d2JXiTb45QX1aATGpMRIZOGwJ3aQdAPyqDx4AIMTT64 WYpQ6kAW1XaAR8oHg8KTuO4npFcVhrGcnkmTpAmKqgv3FH/9P409ek0OB65AGS2eb4/a kjkEGrBap3Ggr2BmTDD3K37L1RZJT1xD++Pm8hTPfDH4QTkI140eu0GBx+ddFR3YlC9D MvsA== 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=Nx877+F483vvfwUeYp5dI5WHdkDD+9FPbvPPM2ZpUGM=; fh=vmB+SsrmYwLg75cVys5p/QNXVKwq5mh4AlKZ21umoZk=; b=th8o706mTPjzKIo+vXDRyj7GHDeH/O3Kr2Zmg79to10PC0qb1z3pQ5/q2lCLg0qPGy /9fhZk5Sb5QsvzmiCJBS45EeV580SXfmsJoJuQvO+kCEZeYHkTs5FH/gTYdSnISr4g4u rNkNgyivKJR9qru8MFWigJbKEBWkbTmYeyfQGotGu6FzaFNRsTOCbdxsRrjgWzakwEQy nX9JJs4VGUtaXQfoMs9JAy6seDD1fO8paPdk/kIKcXIA4/n9svITH2kHECe7YU9Y/20z kpu88cV7dya/QOB7olEnlDPt8CjjIfa0i1+m8O8YMnaHqadN36b0nNsvrpmbNeKMgOeT /Dzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lKP0x47v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j4-20020aa7c0c4000000b0051da49baa4csi277064edp.566.2023.06.26.09.29.17; Mon, 26 Jun 2023 09:29:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lKP0x47v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229823AbjFZPmm (ORCPT + 99 others); Mon, 26 Jun 2023 11:42:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229729AbjFZPml (ORCPT ); Mon, 26 Jun 2023 11:42:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA5AA1700; Mon, 26 Jun 2023 08:42:33 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1B29260ECA; Mon, 26 Jun 2023 15:42:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46D61C433C8; Mon, 26 Jun 2023 15:42:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687794152; bh=qsIVCEqiEsiNMulMN2stI2PtbXCDoJyDQrPp/INSwFs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lKP0x47v5GAaPD7ycZO0BDsDgmwrgyEW2lBLCOh96m2iMPNRyIirkukHIEpucy6bi 7GBxZtAH1DOswixyxC/fYfxl2hTAM610dP7DANiFjYjwvez5qnxw6OCdgPVXwd1YtP jt2IT303/+Xrw9nflWnqp2B8nooiebuw1ekKbLCDp9xMI079PcK91bzZI/uFuGGY+9 FKuLMfgtJoeUAOIQAoTcCw0C4EDeXN5hARyx0J4wejLG8nSGUjSWjUHNr15M5Usm/0 Ao4Tx79klY8RBJmYAS5tfEkLN94d9k1PfPuC8yyq9EZO9L7yw8Gpe63+T4zrHKzk2J H1D6/SqSu35QA== Date: Mon, 26 Jun 2023 16:42:26 +0100 From: Lee Jones To: Jean-Jacques Hiblot Cc: pavel@ucw.cz, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v9 5/5] leds: Add a multicolor LED driver to group monochromatic LEDs Message-ID: <20230626154226.GE10378@google.com> References: <20230616095746.872220-1-jjhiblot@traphandler.com> <20230616095746.872220-6-jjhiblot@traphandler.com> <20230621193321.GU10378@google.com> 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=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Thu, 22 Jun 2023, Jean-Jacques Hiblot wrote: > > > On 21/06/2023 21:33, Lee Jones wrote: > > On Fri, 16 Jun 2023, Jean-Jacques Hiblot wrote: > > > > > create mode 100644 drivers/leds/rgb/leds-group-multicolor.c > > > > Sorry to do this too you, but there are too many nits that I can't pass by. > That's alright. I'll fix them in the next (hopefully last) round > > > > > + /* Restore sysfs access when the multicolor LED is released */ > > > > > Out of interest, why are we doing this? > To prevent the user to play with the individual LEDs of the group, their > sysfs interface is disabled (read-only). The interface must be re-enabled > when the group is destroyed. Please make that very clear in the code. -- Lee Jones [李琼斯]