Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1203002rda; Mon, 23 Oct 2023 05:59:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFHuvo0sQyTVIpMKuXYSL+TVVF9G9nwHjKOtPYPdhxzVZE85/gPntTIFd17jjc9TxgYECSa X-Received: by 2002:a05:6a20:7345:b0:17e:70fa:3f3c with SMTP id v5-20020a056a20734500b0017e70fa3f3cmr1140392pzc.57.1698065958211; Mon, 23 Oct 2023 05:59:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698065958; cv=none; d=google.com; s=arc-20160816; b=SXe5tODUZ8JYtdWIJ3JaLOunkZZRpy3uAADQEf6bIDqxOdbm2Y3JCPawnrZJkqfYx7 yqiAlKt73hQOpNOi0c53SDkFrVTuibs1IbEuCpY5pNV+PPjY81hc5/HTNgMZ8/9eSpoj 86HnL/jWdWdHXfXmns2v7fevZuyXsS/MNuuBUy3XV8OqKDsyq3dMtvYAOHylcbi9+R38 WbUs5zfEl5XAmL3S0tPGU2KPs0ZxuWr5DX9H7w3xcRypMRe6iFFTi4pch4UZLDTUK1bU xTXRtk7Haj8wTXePMFFMBJ7Zhay9dvY80JzXr90h2wQFqiMsID+jtgoLZimh9GaJzaJc 2OvQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=pE1Crz10M4tLtetH8nbbgqnkAQnTBMnQnnDM0R6cCi8=; fh=vZfb3O80gXx+GWahWnKknQMjJZuXMRkYD83JzxokXDU=; b=SKv80fDdPAU4jHQsh9b0ty6lZtI3xcYKZm5tDyv1VTCPKDHN89gU1hvUb+j50rC+6B okE+q3QNBIuIoq1an31WTC4D70d7L4+Gc6qZBdNUFJW+Q9ihoxM1CTQ3cVfyQPmgr9f7 8AWbu7qixyfoAH6b/NKrF/fM0DcTH9zF7NK5vdUF6duuKewo5MZjAQNuXqEbvMqeaHfl rNI1MoIe8eH+DH6xld8d4017D4wd2/2v7wr44nHSTevm/aLtSbShizJg2g3OmYFDGFNs xkJd+HNxOr9NaNdMr8Q9NN4gIcaTg5Ez41oyoBnLA4cSDMCd3EIaEucGt9h9naSOEqce casA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ifWBwQhY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id y15-20020a056a00190f00b006bebc50b5c0si6605494pfi.46.2023.10.23.05.59.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 05:59:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ifWBwQhY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id EE1CE8053C71; Mon, 23 Oct 2023 05:59:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229956AbjJWM7I (ORCPT + 99 others); Mon, 23 Oct 2023 08:59:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229613AbjJWM7H (ORCPT ); Mon, 23 Oct 2023 08:59:07 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 816DCB3; Mon, 23 Oct 2023 05:59:05 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93BC2C433C8; Mon, 23 Oct 2023 12:59:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1698065945; bh=/tg5ZQeWZUyFxMOP7fdZq8yaLOE+w3tQK2RQChg72kQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ifWBwQhYL7jeodAM5aD8MOGN/QGCDnA469TGx8WsmKIDbEKEOuSkQoNUk1XPArV0T HyiyUm4NEj8Y1t1BBY7rhwLVRcK7RVhM8uGANYW8CgMYYr1Pb1xWSMNsikMV7Ra0UH 8QxjhDNndAUaNXDszogm8OYUjUr/4kjN1PtY6Xls= Date: Mon, 23 Oct 2023 14:59:02 +0200 From: Greg KH To: Florian Eckert Cc: Eckert.Florian@googlemail.com, jirislaby@kernel.org, pavel@ucw.cz, lee@kernel.org, kabel@kernel.org, u.kleine-koenig@pengutronix.de, m.brock@vanmierlo.com, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, linux-leds@vger.kernel.org Subject: Re: [PATCH v5 2/2] leds: ledtrig-tty: add new line mode evaluation Message-ID: <2023102333-skewer-reclining-8d04@gregkh> References: <20231023094205.2706812-1-fe@dev.tdt.de> <20231023094205.2706812-3-fe@dev.tdt.de> <2023102341-jogger-matching-dded@gregkh> <7e8860574413505c314bdfd0f3e10188@dev.tdt.de> <2023102320-princess-issuing-be13@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 23 Oct 2023 05:59:16 -0700 (PDT) On Mon, Oct 23, 2023 at 02:45:55PM +0200, Florian Eckert wrote: > > > On 2023-10-23 14:27, Greg KH wrote: > > On Mon, Oct 23, 2023 at 02:15:55PM +0200, Florian Eckert wrote: > > > > Again, I thought we had rx/tx already? If not, how was that controlled > > > > today? > > > > > > It could not be controlled! The LED flashed when data where > > > transferred. > > > This was the only function that the trigger supported. > > > > Ok, then maybe this needs to be a bit longer of a series. One that does > > the "tx/rx" feature, as that is needed today, and will be the more > > complex one, and then one-per-line-setting that you want to apply. > > > > That should make it much easier to review overall, right? > > Sorry for asking, but why should I split the change. > What is the added value? But if it is necessary, then I will do it. > > Before my change, the trigger could not be configured. > The LED always flashed when data was transferred. But you could configure that, right? on/off, correct? And now you are splitting this out into different "options", which are all different. > Now I can configure for which tty event the LED should flash or be on/off. Great. > So that the trigger behaves the same as before (flash on rx/tx > transmission), > I set the rx/tx bits in the function ledtrig_tty_activate() with the > following code. Nothing changes for the user of the trigger. > > /* Enable default rx/tx LED blink */ > set_bit(TRIGGER_TTY_TX, &trigger_data->ttytrigger); > set_bit(TRIGGER_TTY_RX, &trigger_data->ttytrigger); I agree, but now you are splitting this up into a much finer grained feature. Anyway, just a thought, I'll defer to the LED maintainers here as to how they want to see this, I thought it would actually be easier this way, maybe not, your call. thanks, greg k-h