Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2497899ybh; Mon, 9 Mar 2020 07:06:46 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu4NFv0v/f85863z1vSXGLvE71PFuewkrZyxj1JIS+7gydOg8hih9wWb5hUJM+1kB4up5Rp X-Received: by 2002:a9d:67c3:: with SMTP id c3mr4790008otn.340.1583762806503; Mon, 09 Mar 2020 07:06:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583762806; cv=none; d=google.com; s=arc-20160816; b=MDZjq49vqkrQxQl+6IFkaVxQm0o+i8N+K/Sqe+G0GV5SUw8+6w8QAwvJFhQVm6rdl4 KiIBL+eKLrLvMbhdV0Scnk6eJNxjMHL8firqw5eh/d8JXaKtE4+OGJ7g8L1KMW2ipsZe jN8cH18XyuwGf85GOOlBnPCW4jqeQZfL259BuOpwWyh5se9qpUk7esJlPyWiRPJVna8f G87yZ5OSt/eWirTi2DSdFQSoL1ECHMmhCqU7iHXDYBMjPXp1/A/QWPkzNdQC41hncVVE ELYdMv2eok2lG/dUJPIeJRG4svfWzgA9zIojLEQLsAjOf2idk49jmyJDwQChQpGLDn+z sjfQ== 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:date:message-id:from :references:cc:to:subject; bh=AqrBUIultYOrholZkGHyhSoGV2GztsHbp6lYr4AuaQc=; b=IwF0HlGYa/ZDj2t4ShJB+EandI5TvaBn4/QcmuUEs6tvMzbTFyoCN2FQskl0JzgJbs aBcQXB4rarrIiSjf3fDM5EKE2IS19kC4TeId9s21E4K8w1tmnoH/eUf13QR9K7y7fRtT OkB452k/6ejJlIRjtMkHmm5ltfq3ozDLrrUiq2cncJUK99hU8fudlVDRK+l3ysdI++4i 1TOK/ns8BAsSnNZQ5Y1uumr9q+IgnRvVGtnAo/3kkWA4jeYlfTvnt/EuhEoWjJIBBrmO qvkrySuRWkPe90yoIsYYTfIO3sSmVcpniZxv9bM50DxbwEz+Svn0BPR9Xqn9SJ59IQ+8 s+Ww== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c2si7044625ots.130.2020.03.09.07.06.25; Mon, 09 Mar 2020 07:06:46 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726736AbgCIOEs (ORCPT + 99 others); Mon, 9 Mar 2020 10:04:48 -0400 Received: from mail.manjaro.org ([176.9.38.148]:60532 "EHLO mail.manjaro.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726275AbgCIOEs (ORCPT ); Mon, 9 Mar 2020 10:04:48 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.manjaro.org (Postfix) with ESMTP id 37BE937022D3; Mon, 9 Mar 2020 15:04:47 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at manjaro.org Received: from mail.manjaro.org ([127.0.0.1]) by localhost (manjaro.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id l9v5AQ1gEZNV; Mon, 9 Mar 2020 15:04:45 +0100 (CET) Subject: Re: [RFC PATCH 0/1] Add generic inverted led triggers To: Pavel Machek , Tobias Schramm Cc: Jacek Anaszewski , Dan Murphy , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org References: <20200308142722.1199260-1-t.schramm@manjaro.org> <20200308212649.GA31247@amd> From: Tobias Schramm Message-ID: <10a57ef4-e8a3-2aea-ee28-2c3bb187c17a@manjaro.org> Date: Mon, 9 Mar 2020 15:05:49 +0100 MIME-Version: 1.0 In-Reply-To: <20200308212649.GA31247@amd> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US-large 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 feedback. > Not a big fan (sorry). > > We have already _way_ too many triggers, we don't want to have twice > that much. True. Doubling the amount of triggers is probably not a good idea. > > Better implementation might be to have a trigger attribute doing the > inverting. I agree. Especially since Jacek pointed out that some triggers do that already. > > Inverting really does not work with all the triggers; numlock-inverted > will not get too many > users. always-on-inverted... blink-inverted.... I guess it does make > sense for disk activity (but be warned disk can be continuously active > for quite a while). > > What triggers do you think make sense inverted? I think all kinds of activity indicators (disk-activity, mmc, usb, ide, nand, cpu, network, etc.) make sense. Guess I'll add a flags field to the led_trigger struct and have an invertible flag that specifies whether a trigger should be invertible or not. Thanks again, Tobias