Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1218448rda; Mon, 23 Oct 2023 06:19:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHVGp0dbzpmDfgDH4lzueB+n203nFOm/NUAJNBdfm7Fad4lRg9zvCW+u9Eh+fo6i9DyJZ/k X-Received: by 2002:a17:90a:bf12:b0:27d:73e5:c2c7 with SMTP id c18-20020a17090abf1200b0027d73e5c2c7mr5787774pjs.3.1698067165710; Mon, 23 Oct 2023 06:19:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698067165; cv=none; d=google.com; s=arc-20160816; b=xZNywqf/+10FKYc1WGPR4kkYVjwU7zVoWwFcDuB0JT1u5SoNshBFv01bXQre7e2I2C p6ExCvmNrTVUqQ9zWdaGL+oW2pBRuW90PahL+11RBPLSu4hKxM9df8qA77J6LUINGvM4 8vInCBphGbCLcG7LLgP+VzXDadOjZYSMJBMYeI5cG8gggNtTVKZmZO7lFW1iCAZF6w5P qpMCA/mQtDfH/fzORcj1frZvpFCA2wlcXm1asbfu3HjMzKsfqp16K092E9K3TD7Ilbte pZJ++wCy5hCKijt2OLpnZix6UHaE5WRRjORPh+GCwVbfEFGVvf+3kmSgfX1c7wOP2Wqb DCpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version; bh=RWQuVksAUl7X3O9CKX9TwlcyA0aSP8fykAz6Q17OFB8=; fh=mP5kyvj1RuZKzZOjR6pnX/1muXKtxpjKqd1FRxlYo8Q=; b=WtvN6Gg+VUa8BqZLFn+0tJ3BoHZagM9HA3JcHpGktrPzBQZ12q9to05lTt9G1tfTgV bej6enJ4Sk3hMzG8qGOWlOXoPKsk8s1DUDSCXLAT2+1dz7FAiaaNRvgo3XVDZ9r1RtCn 8TzP4Okgckva9Q4eOjgV/LOnlnOsijblitu4MVNv2F5hqbE9c7qSwtQqFlCaTLhVN4n6 Tzx+/a5mikUA+GjOrtsQQZVrI90aNufgEbSZ6ONcXhoUx/4BqVOBYe6bRCqwd1C7x+i6 pZ3IxQCvD3v7iXnp8hBzDcfpB58A+5cIAIFvTxjP3wGW4C8uv5rN6jONgp4L3EYMwO+N 02mw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id mu2-20020a17090b388200b0027cde7f5860si6708663pjb.30.2023.10.23.06.19.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 06:19:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 110DF80A4AD2; Mon, 23 Oct 2023 06:19:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230438AbjJWNTR (ORCPT + 99 others); Mon, 23 Oct 2023 09:19:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230327AbjJWNTQ (ORCPT ); Mon, 23 Oct 2023 09:19:16 -0400 Received: from mxout70.expurgate.net (mxout70.expurgate.net [194.37.255.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F1DDE5; Mon, 23 Oct 2023 06:19:14 -0700 (PDT) Received: from [127.0.0.1] (helo=localhost) by relay.expurgate.net with smtp (Exim 4.92) (envelope-from ) id 1quupl-001Btl-JW; Mon, 23 Oct 2023 15:19:05 +0200 Received: from [195.243.126.94] (helo=securemail.tdt.de) by relay.expurgate.net with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1quupk-0000u5-LJ; Mon, 23 Oct 2023 15:19:04 +0200 Received: from securemail.tdt.de (localhost [127.0.0.1]) by securemail.tdt.de (Postfix) with ESMTP id 3D494240049; Mon, 23 Oct 2023 15:19:04 +0200 (CEST) Received: from mail.dev.tdt.de (unknown [10.2.4.42]) by securemail.tdt.de (Postfix) with ESMTP id 9128B240040; Mon, 23 Oct 2023 15:19:03 +0200 (CEST) Received: from mail.dev.tdt.de (localhost [IPv6:::1]) by mail.dev.tdt.de (Postfix) with ESMTP id 30A0F2112C; Mon, 23 Oct 2023 15:19:03 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 23 Oct 2023 15:19:03 +0200 From: Florian Eckert To: Greg KH 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 In-Reply-To: <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> <2023102333-skewer-reclining-8d04@gregkh> Message-ID: X-Sender: fe@dev.tdt.de User-Agent: Roundcube Webmail/1.3.17 X-Spam-Status: No, score=-0.8 required=5.0 tests=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 fry.vger.email X-purgate-ID: 151534::1698067145-D2E9A639-B61EDC45/0/0 X-purgate: clean X-purgate-type: clean 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 (fry.vger.email [0.0.0.0]); Mon, 23 Oct 2023 06:19:23 -0700 (PDT) On 2023-10-23 14:59, Greg KH wrote: > 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? No, this could not be configured before. It always flashed as soon as data went through the configured tty. It couldn't even be switched off, only if I change the tty interface via sysfs >> 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. Thank you for your review. I will incorporate your comments and split the changes. :+1: --- Florian