Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3307951imu; Sun, 11 Nov 2018 12:04:19 -0800 (PST) X-Google-Smtp-Source: AJdET5ch6zx4cbUwU6MmgcHn90cRatQGjLYpy9zGKg5KAo5OWFarzmcSrwfaaRTvtK6EeYWQ6SUX X-Received: by 2002:a62:7a92:: with SMTP id v140-v6mr17350021pfc.46.1541966659830; Sun, 11 Nov 2018 12:04:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541966659; cv=none; d=google.com; s=arc-20160816; b=TId2N9I5FCW7Nni7IaLWKoUBztLI4cP3EfxL1F0XPg4NlS0UoZYeKVEiCFS3I+bcYw /eEJFbnVQChf8FMXqIA4ndp4HJxUEqGK9SepJal09Z9F/5edc1AoAyS2Vuw78PL5Mzkp 8DyKe4OJw8xwbJ00SfY+SrkSPa82xWpyHKGZeU8uNHSw9ogHyBNN+kemTbi0Oon5fJo7 2usH1cnsU2+h4FnaETeYTjFNTsTjALGHZrNB+9ipnJZ62sEfoYNViOTBoqFAVbIVmOuz vnBoyv+M0tMROe++8ZLO46IH8Aem0ZAZbZQ+UUP/SaKi8/FQSYn5ZPOrRhLaANNxvCN9 h5Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=dDszItsRtiD12XGE4UD85I07IoLyBorkN/gdUm+VTX0=; b=l7LBYaGCISTjYBEtNyo0l+LtqqFzZYHW9QNT9MMEoZ+5fXooVWpQ3mqmsoOJ8CeWCA SIQrmtrS9//8D9FQnanbWG/CocI4Bq89eznoAk0uP54Ao5kcnmPbhuxxV7EnPQjrqWJu DhIAw9VHB1S5Bg2kq/panbcCt6Hiz0mp0zccPxeArfeHCaDMBtEpFTutBy1u2itrWp4z Q3sAMyWv9ay4i2Cq5S7j6W0JhXBn2Fwls4LLVmY1553CNVxX3217ADjFMcYylt45eRBl AUU962cr/nB/gfs5zhXwXArls/Jx+89z89bbYpMzqobvNwomDxD/yEXjx1mbAweYvsKz J+YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RbgR3kSy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l20-v6si4769994pff.126.2018.11.11.12.04.04; Sun, 11 Nov 2018 12:04:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RbgR3kSy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730922AbeKLFwR (ORCPT + 99 others); Mon, 12 Nov 2018 00:52:17 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:40713 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725905AbeKLFwQ (ORCPT ); Mon, 12 Nov 2018 00:52:16 -0500 Received: by mail-lj1-f195.google.com with SMTP id t22-v6so5761369lji.7; Sun, 11 Nov 2018 12:02:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=dDszItsRtiD12XGE4UD85I07IoLyBorkN/gdUm+VTX0=; b=RbgR3kSyIMG/O9om5mBTa3QsHDG8R8NM/Y3dlOtksM/ur1ZA9bsjTEruLe4HYPzmZ8 3J2ciXJ4/iE30qXA2Omnu2yK82tzRWs/sFnKOjjNubgAEyjiLtcOIE7kEDJC6vf0nXfX HNCr5UKno7K9E0dzMjLces4msYSNA7H8+9kTEQHcVlvZ7nbtXYdBfuaOfcYIK6MFODN1 DYJgvkKBnk1wHSn+2zMNhUt1LLYelxhfIImUM1ihjyZAqc+hE7xMuRFWMyjFMrd/agOc MPwheOY4ZiJltVay4pAMvj5DrqKCCTlOq1dTUi7S0QtsLwUz3O8BkZSintHhDZZz4Htp 0V/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=dDszItsRtiD12XGE4UD85I07IoLyBorkN/gdUm+VTX0=; b=IZQjBTd+5HpvvtOrpJG8hWAlUDFk6oiEBU1HoyEWswQU6VHCFHpB1KDLQMhodEK59G PWkziRf2SAenER+/pKYrzBo1vnW/1OROJqPLVRtjg4OjR88sL2bgAtFLiuRzptRtQObt xWFlz1shR4VoVLQvyE5DcLrxBYe99evuD0fOSS6jQkFp/Gq0kdkmv12sgLEHjlRrTvwB eZmkJwl/HDW3FkKU/ouW6fgC0gpw6ZVQhMeERG2Rknjpe4FSthApSw5PnPbsbjuCdBpm I4HG0/DgGR4CRXnkPFu+GxnWgwCK8fKu1qsQHBMrxB535zA1ks8KimSj7FbMHrVv8Pdy o11A== X-Gm-Message-State: AGRZ1gJo4e1WTOwz5rwOqLEh+QbBAJx4LX4OL90qqaM9/PtksZ0xzTXX IGxq8roxlLwhgkl8Qp74lvY= X-Received: by 2002:a2e:4745:: with SMTP id u66-v6mr9944475lja.37.1541966565371; Sun, 11 Nov 2018 12:02:45 -0800 (PST) Received: from [192.168.1.18] (cjk171.neoplus.adsl.tpnet.pl. [83.31.60.171]) by smtp.gmail.com with ESMTPSA id 65sm2669564lfp.55.2018.11.11.12.02.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Nov 2018 12:02:44 -0800 (PST) Subject: Re: [PATCH 03/24] leds: dt-bindings: Add LED_FUNCTION definitions To: Pavel Machek Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, robh@kernel.org, Baolin Wang , Daniel Mack , Dan Murphy , Linus Walleij , Oleh Kravchenko , Sakari Ailus , Simon Shields , Xiaotong Lu References: <1541542052-10081-1-git-send-email-jacek.anaszewski@gmail.com> <1541542052-10081-4-git-send-email-jacek.anaszewski@gmail.com> <20181111113157.GK27666@amd> From: Jacek Anaszewski Message-ID: <96296b4d-d49e-2b08-4306-196605a9f5dc@gmail.com> Date: Sun, 11 Nov 2018 21:02:41 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181111113157.GK27666@amd> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Pavel, Thanks for the review. On 11/11/2018 12:31 PM, Pavel Machek wrote: > Hi! > >> Add common LED function definitions for use in Device Tree. >> The function names were extracted from existing dts files >> after eliminating oddities. > > Thanks for doing this. > >> diff --git a/include/dt-bindings/leds/functions.h b/include/dt-bindings/leds/functions.h >> new file mode 100644 >> index 0000000..3f94e09 >> --- /dev/null >> +++ b/include/dt-bindings/leds/functions.h >> @@ -0,0 +1,101 @@ >> +// SPDX-License-Identifier: GPL-2.0 >> + > >> +#define LED_FUNCTION_2G "2g" >> +#define LED_FUNCTION_ACTIVITY "activity" >> +#define LED_FUNCTION_ADSL "adsl" >> +#define LED_FUNCTION_ALARM "alarm" >> +#define LED_FUNCTION_ALIVE "alive" >> +#define LED_FUNCTION_ALL "all" >> +#define LED_FUNCTION_APP "app" >> +#define LED_FUNCTION_AUX "aux" >> +#define LED_FUNCTION_BACKUP "backup" >> +#define LED_FUNCTION_BACKLIGHT "backlight" >> +#define LED_FUNCTION_BACKLIGHT_CLUSTER "backlight_cluster" > > Sounds like one of backlight and backlight_cluster should be deprecated? I think so. >> +#define LED_FUNCTION_BEEP "beep" >> +#define LED_FUNCTION_BLUETOOTH "bluetooth" >> +#define LED_FUNCTION_BOOT "boot" >> +#define LED_FUNCTION_BOTTOM "bottom" > > I believe some of these should get comments. For example what does > "all" and "bottom" LEDs do? It would be best to ask the author, but for now, I'd just remove all of "bottom", "up", "left", "right" etc. >> +#define LED_FUNCTION_BRICK_STATUS "brick-status" >> +#define LED_FUNCTION_CEL "cel" >> +#define LED_FUNCTION_CEL_PWR "cel-pwr" >> +#define LED_FUNCTION_CEL_RESET "cel-reset" >> +#define LED_FUNCTION_CHRG "chrg" >> +#define LED_FUNCTION_COM "com" >> +#define LED_FUNCTION_COPY "copy" >> +#define LED_FUNCTION_CPU "cpu" >> +#define LED_FUNCTION_DEBUG "debug" >> +#define LED_FUNCTION_DIA "dia" > > What does this one do? I'd opt for something like "diagnostics", but this is a blind shot. Let's remove it then and, and let people add more meaningful definition in case it is needed. >> +#define LED_FUNCTION_DISK "disk" > > We have disk, hd, hdd and sata. Deprecate some? Disk should be the best choice, especially given that we have identically named trigger. >> +#define LED_FUNCTION_DISPLAY_CLUSTER "display_cluster" >> +#define LED_FUNCTION_DOWN "down" >> +#define LED_FUNCTION_DSL "dsl" >> +#define LED_FUNCTION_ENOCEAN "enocean" >> +#define LED_FUNCTION_ENTER "enter" >> +#define LED_FUNCTION_ERROR "error" >> +#define LED_FUNCTION_ESATA "esata" >> +#define LED_FUNCTION_ETHERNET_STATUS "ethernet-status" >> +#define LED_FUNCTION_FAIL "fail" >> +#define LED_FUNCTION_FAULT "fault" >> +#define LED_FUNCTION_FLASH "flash" >> +#define LED_FUNCTION_FRONT "front" >> +#define LED_FUNCTION_FUNC "func" >> +#define LED_FUNCTION_GPIO "gpio" >> +#define LED_FUNCTION_GSM "gsm" > >> +#define LED_FUNCTION_HD "hd" >> +#define LED_FUNCTION_HDD "hdd" >> +#define LED_FUNCTION_HDDERR "hdderr" > > Ok, I'll Hmm? > >> +#define LED_FUNCTION_HEALTH "health" >> +#define LED_FUNCTION_HEARTBEAT "heartbeat" > > Sounds same as alive, deprecate alive? Heartbeat may be designated specifically for registration for events from the trigger with the same name. >> +#define LED_FUNCTION_WIFI "wifi" >> +#define LED_FUNCTION_WIRELESS "wireless" >> +#define LED_FUNCTION_WLAN "wlan" > > Same as wifi and wireless, I guess, deprecate some? I'd remove "wireless" and "wlan". > I'll touch same subject in another email. > Pavel > -- Best regards, Jacek Anaszewski