Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1769620rdh; Tue, 26 Sep 2023 03:06:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHM7b0flwWQO3M8uMaHRxpJjIJ2P4ynDaAzXPggfBnPt8RZ1p6WkGgp7lVJBlf5NXAu/MJD X-Received: by 2002:a05:6870:3126:b0:1b0:db2:189e with SMTP id v38-20020a056870312600b001b00db2189emr12867449oaa.17.1695722782819; Tue, 26 Sep 2023 03:06:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695722782; cv=none; d=google.com; s=arc-20160816; b=VB9Q4433MPf1UK/c2KIbTePno5Z3N8xl4jUgTC1f4WZraaDvgkyO1l/SYvPsj+UbB7 NJRDlQ9X158pQKoCWLqlR8I35SuNOfMhKWVl+W7mR+1RTH89HYDGv79cXS52Vw0oABMG qVb0forWVMFvQJVrUMnV0PL+/OGwM7NUBkFuvywwG2eKSx/aMdO3T0DngTUg0yRZ+Qfr 4a4yVORLcyuNddKWXc6tDJoqFWpYCTuGDugf3Vq1pkyuZs8eqpfaDyXc0cx2mdKTGsnd F+/dDKGqqu+KgF7jBmqApOz8WuGBVg+C4eLugsbHG5oFvp1isefrFt/3+/yPhJwZFdXP 7lYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=oinaBQVKz8gTukDoTn9CfjOCdtwm0LzOsAp3Bu5buAc=; fh=DWsu+nphnXaftKgW3nlltk1unhQS9IMzmZZBp0Uyh98=; b=weHvIRzGrPQPud8TULkCRUHTthqtL4rUx3gYkjZVM+RJdx8QlJXDapAinlbcnxCL9g fGxknJvy+q6WkP4kAuZoEACZ2UOy1VzNxdkzh5J0bIEQaCOhdwk7wFMHTxepaf5G1if/ 5u2sBG6GqxWBT2BvAsQ2tSh7d68MYZEvnaKtxujNDoX/XKWgovFZo1jcWvDAMge3TBnM gjOJHUzjCLWt1zfxbgf1EcZmMSZCBY8+KJWsnrs+VeCqbG4ELyIet5fv4FKOdBKEjnLi LHLoaxJAFCnNmlYEGwQf+JdECI9izYr3VrWWWlI6uaFUa+3PKTRpl7/FDlx06/aLEPm+ l+bg== 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:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id z19-20020a63e113000000b0057768a32896si12086989pgh.365.2023.09.26.03.06.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 03:06:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 758E980A3672; Tue, 26 Sep 2023 02:56:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233739AbjIZJ4r convert rfc822-to-8bit (ORCPT + 99 others); Tue, 26 Sep 2023 05:56:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234219AbjIZJ4o (ORCPT ); Tue, 26 Sep 2023 05:56:44 -0400 Received: from mxout70.expurgate.net (mxout70.expurgate.net [194.37.255.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCA5A126; Tue, 26 Sep 2023 02:56:37 -0700 (PDT) Received: from [127.0.0.1] (helo=localhost) by relay.expurgate.net with smtp (Exim 4.92) (envelope-from ) id 1ql4UJ-008Nk3-1J; Tue, 26 Sep 2023 11:36:15 +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 1ql4UI-008Ngh-2b; Tue, 26 Sep 2023 11:36:14 +0200 Received: from securemail.tdt.de (localhost [127.0.0.1]) by securemail.tdt.de (Postfix) with ESMTP id 996AB24004B; Tue, 26 Sep 2023 11:36:13 +0200 (CEST) Received: from mail.dev.tdt.de (unknown [10.2.4.42]) by securemail.tdt.de (Postfix) with ESMTP id ED4C4240040; Tue, 26 Sep 2023 11:36:12 +0200 (CEST) Received: from localhost.localdomain (unknown [10.2.3.40]) by mail.dev.tdt.de (Postfix) with ESMTPSA id 9B33532747; Tue, 26 Sep 2023 11:36:12 +0200 (CEST) From: Florian Eckert To: Eckert.Florian@googlemail.com, gregkh@linuxfoundation.org, jirislaby@kernel.org, pavel@ucw.cz, lee@kernel.org, kabel@kernel.org, u.kleine-koenig@pengutronix.de Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, linux-leds@vger.kernel.org Subject: [PATCH 0/2] ledtrig-tty: add new state evaluation Date: Tue, 26 Sep 2023 11:36:05 +0200 Message-ID: <20230926093607.59536-1-fe@dev.tdt.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 groat.vger.email Content-Transfer-Encoding: 8BIT X-purgate-ID: 151534::1695720974-520A685C-EFD57BF8/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 (groat.vger.email [0.0.0.0]); Tue, 26 Sep 2023 02:56:51 -0700 (PDT) This is a follow-up patchset, based on the mailing list discussion from March 2023 based on the old patchset v7 [1]. I have changed, the LED trigger handling via the sysfs interfaces as suggested by Uwe Kleine-König. [1] https://lore.kernel.org/linux-leds/20230306093524.amm7o4ppa7gon4ew@pengutronix.de/ Florian Eckert (2): tty: add new helper function tty_get_mget trigger: ledtrig-tty: add new line mode to triggers .../ABI/testing/sysfs-class-led-trigger-tty | 54 ++++ drivers/leds/trigger/ledtrig-tty.c | 272 +++++++++++++++++- drivers/tty/tty_io.c | 29 +- include/linux/tty.h | 1 + 4 files changed, 339 insertions(+), 17 deletions(-) -- 2.30.2