Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp235055rdb; Thu, 30 Nov 2023 03:33:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IHCuHgNg2XJa0jHKW2cuPIHVRy54txN2+FQga1Y+SvKLeMgMYGnZszEwGS7iHj6wCf7h9kG X-Received: by 2002:a17:903:54d:b0:1cf:b413:8baa with SMTP id jo13-20020a170903054d00b001cfb4138baamr22819920plb.25.1701344032543; Thu, 30 Nov 2023 03:33:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701344032; cv=none; d=google.com; s=arc-20160816; b=PvEf0tX54TVoaBG81+6MzZCxuAlIB9MaiwcVuPk46Ns6sOdQiWsFvJJoeiJyn5GHHy mVOBUmcSv4hzJ8RaW0pew7t5lkvFf9s4UP1nhbsrGKpiaogJgURnF3/ZsEaGfZAihBB3 LGqa9dgAJjMKK3YOVhM97y86/7KiTvUkHQxxJ8N9cChtaJpoQOYvkbe4maWqRUNnfcvc eK4dZ684LWPGnapCkXrbEMsg68O0Ch29LqrRTHq3K2WqldMzOkvigP5APniY88f8AN45 36Zmf/3Ir+eaL7gkbdPmhcPkFtEf+ncw4uujgvBZAKJ1er1b3K5sur+8IbJuoH7UYZT9 VgQA== 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=PoDOSlyXK5ycyLNz+0iEhKUuP1tfK4r6UlkNvcvbbwc=; fh=/q5r2afS8Ofnssts1iMFf2WnJ6MZhlMEhsZnTPWjbxk=; b=OANzKq5oFXN7A518j1lqArs2NRF/RmpbUqVD9/rxC8w7KJ0hyk9HywlbuECQXwi5Nj gZcq71rvDO8r4Z65uHItphnRtjakbvozLhpoVd/mOxoSesvEGaVoHasc8sAo6R7tohMD D+w+8xOQ4uwNcc61EDEBzfVP65J3aS6WwpSD+PeLXT2/Bk5ESw3CocxRrCJKpgWBfI4X G7jR+MK/NxWIy4w2eK+xellOY0DRQeQ38/7SlXzmpMTrrs/deEiFtv05K+/bAWRbb/Cl B0EduRZ1F8ZpCdIQnr53BttqO9jz0Nhv4aA9Z3HjQ6PK4SI3+NVRbEATRnjyj8TmCuhO vJBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RCkfYk3B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id c3-20020a656743000000b005c621f72807si1174095pgu.593.2023.11.30.03.33.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 03:33:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RCkfYk3B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 43C31826EC6C; Thu, 30 Nov 2023 03:33:49 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345210AbjK3LdX (ORCPT + 99 others); Thu, 30 Nov 2023 06:33:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345224AbjK3LdA (ORCPT ); Thu, 30 Nov 2023 06:33:00 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29DD31716 for ; Thu, 30 Nov 2023 03:32:59 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C525DC433C9; Thu, 30 Nov 2023 11:32:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701343978; bh=qTJ5CJoxngZ864cBMLPrwV2wlcGmJbDNuq1mr3WFzDI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RCkfYk3BAuIpqcud4Kmfw1Fx39QPJWDeDBsra1dQTnHY6brJEnvEYpA6/MZ8G6Nd2 Sv2el6DGy5OpqqXy6SLuKb5C2wm3436zKFc63hJyce/JI8mYd2Xar50vEU1+5cgFBa ZpkN/J1G1wgUuo5Nyd+hMvnMwxRYCPS5JOltj34FONnRKPKPdDUjYR6jteNsS80HBA 38xz5mScgMzM+TRUy1BOTeO5oG5Pc55LLRWs+btNGkyichuFl2A1tMi/mpA1EOX2na DZdkwT2/A+I4KD1c+FSnhh0kdspa78Q6CK20bk/Vr0jtn4XIX56xkY+jjIfm0ljLI6 34IwxDWnEvM2w== Date: Thu, 30 Nov 2023 11:32:54 +0000 From: Lee Jones To: Jisheng Zhang Cc: Pavel Machek , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] leds: Expand led_colors[] array Message-ID: <20231130113254.GI1470173@google.com> References: <20231030054757.3476-1-jszhang@kernel.org> <20231123105620.GG1184245@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=-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 morse.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 (morse.vger.email [0.0.0.0]); Thu, 30 Nov 2023 03:33:49 -0800 (PST) On Mon, 27 Nov 2023, Jisheng Zhang wrote: > On Thu, Nov 23, 2023 at 10:56:20AM +0000, Lee Jones wrote: > > On Mon, 30 Oct 2023, Jisheng Zhang wrote: > > > > > commit 472d7b9e8141 ("dt-bindings: leds: Expand LED_COLOR_ID > > > definitions") expands LED_COLOR_ID definitions for dt-binding. However, > > > it doesn't expand the led_colors[] array in leds core, so if any of > > > the newly expaned LED_COLOR_ID definitions is used, the sysfs will > > > emit null in the led's name color part. Let's expand the led_colors[] > > > array too. > > > > > > Before the commit: > > > /sys/class/leds # ls > > > (null):indicator-0 > > > > > > After the commit: > > > /sys/class/leds # ls > > > orange:indicator-0 > > > > > > Signed-off-by: Jisheng Zhang > > > --- > > > drivers/leds/led-core.c | 5 +++++ > > > 1 file changed, 5 insertions(+) > > > > This already exists as: > > > > a067943129b4e leds: core: Add more colors from DT bindings to led_colors > > well, my patch was sent earlier than this one... When I sent out the > patch there's neither fix in mailist nor in your repo. What makes you think that? The applied patch was submitted 8th October. https://lore.kernel.org/all/20231008144014.1180334-1-megi@xff.cz/ Yours was submitted 30th October, 3 weeks later. https://lore.kernel.org/all/20231030054757.3476-1-jszhang@kernel.org/ -- Lee Jones [李琼斯]