Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp466466rdb; Fri, 17 Nov 2023 04:13:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IFCcn32pE+g5/SuN+RO4CTueg7YViIoK3Pryh/G8XLnrn9RxPeLxMZnMYnGqdrEHIL82PTI X-Received: by 2002:a17:903:228e:b0:1ca:505:8c86 with SMTP id b14-20020a170903228e00b001ca05058c86mr14074366plh.20.1700223197101; Fri, 17 Nov 2023 04:13:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700223197; cv=none; d=google.com; s=arc-20160816; b=EzEGVkiLDJP67oOFQBDXoShIR3YNGmp8wz4mpWvHjAdLptXNgHldM1T8z5/X5lK5H6 potcK1ifN4J36EEjzCUzx5TnsMTyyCwEa/7Onefilgl+T0O6JG/6LWYAXu0V/6zg4Ce8 3BTDL5I9QfUqn650JV9VG0nwOZp4Z/UiMBd7tcZrnH3nr3FtgJbpB6/BMEcfXk4c5GBK ZQfOHOgdgpUzJNh8Zf3KDLVGRp5dtBYWLShniDZ/q7bvxWekjlDFtPw5kdtOf+GXsnoe Sq0SbuSWr0b/3JOqLowXWm0fW2AUyMi54KvHIN+TvsJWT6QRyH+Pjj9getIzuUhQPCvL sB3Q== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=fGrDrj4H8ySbo1s1CD2KygxsuN3xgI3PwXWMr5N8f7Q=; fh=PA99t/jam7d8guGCDXELxMUzMhuBdde/iI/nAm6gR9w=; b=cs22CGtcSd34VQYYvIZCCgaTZoG4jkxFYKqfov5BuwVUM9cdPGFq7VT1+B6DMWzskV VTAjITrTXR5ipuH9Cm3RJYiCoF8oTe6Z/yvRFMOA+ynaMMMaMzfosLrWh5nARN2fotRq 5J/WP07QlWLPulGBsETWon3bbqzH1w+FVxbnZ0FURHdxhEC6FndS5bXZHOU+AtudFyqf /YC70HhlXnyoWe+2w7+7FKv7IoYqYHnKbn+TYrxCOR31mxf4YbQ0hUubVDZIU7gLAa2w DnFKXRhHl7EkL9As0WqJ/DiqPmbkwp7eAxBNdhQ+vXG2iMoO7MhTkJ2E4oRSKakUZMXI Aijw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Z0Y+HWF2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id h13-20020a170902f54d00b001ca4ad8635esi1792656plf.240.2023.11.17.04.13.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 04:13:17 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Z0Y+HWF2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 64E2582F8756; Fri, 17 Nov 2023 04:13:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345821AbjKQMNE (ORCPT + 99 others); Fri, 17 Nov 2023 07:13:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230377AbjKQMND (ORCPT ); Fri, 17 Nov 2023 07:13:03 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 228F3BC; Fri, 17 Nov 2023 04:13:00 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 180DAC433C8; Fri, 17 Nov 2023 12:12:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700223179; bh=C590OJebVU4qBEXhA2RorWT4HoNvqypanlNedX24PIM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Z0Y+HWF2pYzZazMd/GaNQbB0xyU5VjxQ5CdF208121mUkqwOrW+oXlhEJ+1qQl170 I1Zswhq1FdFQoKDzXr6nvYNFD1WWyNZxIYH4plzE/l5C38YYVkaBW4c7fF/hFBMPSY WzpL2J0JpcrzzsfHHcLTGISZT7c3f/ev1nBqhCGgCWglINqQEmqrmYnWBaTEN74OJ/ aY22RtYc/mJLObb6kPMvp71Rxl54rWqz8Ca3d/5Viez2snbHIFb88kZJJwi4JMH9qk ksJYANuM6JJG1DIMEKoHENIsbyYeLYGH2AUmhezoK50fBDKdf+oDA/rJxR3OMpWxKz ldeT6IQJ2ojmA== Date: Fri, 17 Nov 2023 12:12:53 +0000 From: Lee Jones To: m.brock@vanmierlo.com Cc: Florian Eckert , Eckert.Florian@googlemail.com, gregkh@linuxfoundation.org, jirislaby@kernel.org, pavel@ucw.cz, kabel@kernel.org, u.kleine-koenig@pengutronix.de, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, linux-leds@vger.kernel.org Subject: Re: [Patch v8 6/6] leds: ledtrig-tty: add additional line state evaluation Message-ID: <20231117121253.GB137434@google.com> References: <20231109085038.371977-1-fe@dev.tdt.de> <20231109085038.371977-7-fe@dev.tdt.de> <39e7c892299c74821b1105a0967063ca@vanmierlo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <39e7c892299c74821b1105a0967063ca@vanmierlo.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Fri, 17 Nov 2023 04:13:12 -0800 (PST) On Thu, 09 Nov 2023, m.brock@vanmierlo.com wrote: > Florian Eckert schreef op 2023-11-09 09:50: > > The serial tty interface also supports additional input signals, that > > can also be evaluated within this trigger. This change is adding the > > following additional input sources, which could be controlled > > via the '/sys/class//' sysfs interface. > > > > Explanation: > > DCE = Data Communication Equipment (Modem) > > DTE = Data Terminal Equipment (Computer) > > > > - cts: > > DCE is ready to accept data from the DTE (CTS = Clear To Send). If > > the line state is detected, the LED is switched on. > > If set to 0 (default), the LED will not evaluate CTS. > > If set to 1, the LED will evaluate CTS. > > > > - dsr: > > DCE is ready to receive and send data (DSR = Data Set Ready). If the > > line state is detected, the LED is switched on. > > If set to 0 (default), the LED will not evaluate DSR. > > If set to 1, the LED will evaluate DSR. > > > > - dcd: > > DTE is receiving a carrier from the DCE (DCD = Data Carrier Detect). > > If the line state is detected, the LED is switched on. > > If set to 0 (default), the LED will not evaluate DCD. > > If set to 1, the LED will evaluate DCD. > > > > - rng: > > DCE has detected an incoming ring signal on the telephone line > > (RNG = Ring Indicator). If the line state is detected, the LED is > > switched on. > > If set to 0 (default), the LED will not evaluate RNG. > > If set to 1, the LED will evaluate RNG. > > > > Also add an invert flag on LED blink, so that the LED blinks in the > > correct order. > > > > * If one off the new enabled input signals are evaluatet as 'enabled', > > and data are transmitted, then the LED should first blink 'off' and > > then 'on' (invert). > > * If all the new enabled input signals are evaluatet as 'disabled', > > and data are transmitted, then the LED should first blink 'on' and > > then 'off'. > > > > Signed-off-by: Florian Eckert > > --- > > .../ABI/testing/sysfs-class-led-trigger-tty | 40 ++++++++++ > > drivers/leds/trigger/ledtrig-tty.c | 77 ++++++++++++++++++- > > 2 files changed, 116 insertions(+), 1 deletion(-) [...] > Reviewed-by: Maarten Brock Please snip your replies. -- Lee Jones [李琼斯]