Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1831623rdh; Tue, 26 Sep 2023 05:07:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEQ3ARbukdtQ5bZCRi4x3Nzd/KAgo1GTIRWdatcUYhMpNArEKmTsJh4D9I+QTYy/2JQ6t4D X-Received: by 2002:a17:90a:ba95:b0:277:37fc:6e89 with SMTP id t21-20020a17090aba9500b0027737fc6e89mr5439816pjr.0.1695730071777; Tue, 26 Sep 2023 05:07:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695730071; cv=none; d=google.com; s=arc-20160816; b=TP83WITwdxdneesdEf1DnEo60ITo+VUy8YO782RdbZC44JN6FcM0mlYlyiLaxHiFxw ogasyV6Rp/y5/g/5o2OtV589knIjr0AlVvaQ08XSHzlRiJ+QEw3ExvvcFzSiDdMWCuWl MAguqjWswJIJd6uutji0NdJsW/w68q+oNOgfL4nb264+0onmaz8cXxrCrFlf6wHWG6V4 O++kyJhtmY+FlM1EiuXlzbd3Qr8zcTtmnv0QTxsBxQrxprnkoBkvkkg4Dx4X2QNqHQNU JxW0vcDJ4xLf5y/mmPbuG5V0iSyXEuk1JfKq2TFsg9ZeOO8b8fR7+QgFcGiXejbx40C3 rEJA== 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=oHOjzhblmzOFVOzgtyhDWU/R+mA0rywOhQvQrvziNEI=; fh=J6PWgFPSQBm3jE0RVQFtFueHAdY1NQmwfi7D9JVCd6k=; b=DgMIJgYZcgtVzJD4T5KRPAIb6x0ArnqA5hrWImryDh3C5tcvR5irqqkBB1QwTd4uWb NP+VIktzbgfeIXeSRbeYm8fPCPOz8enmXVePq8sT4p2mm+OPutFMJ9LhBDdJyqmck5Bi MCmhlCK2EwnGT0xpmgHuKP1Ctw+uYDPGqhcxBFjACrYLgsRG2KUx+vIgmY1N2TXli5Dg ncXVZyCxFzApN5xYU9uC3eu01d6nNtm0uWKKQ88TPXTAKASCAPeHM7WX2M3yev5ztg0n e1auIoar13pA+1788FK0ulCPwcKMT4DaZqbTDccKwvQBV7eO5AdRbep4Ro2TahzEP3rj jXyw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id lb13-20020a17090b4a4d00b00262f798b614si14125739pjb.51.2023.09.26.05.07.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 05:07:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 6D8AC826BB82; Tue, 26 Sep 2023 05:04:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234518AbjIZMEV (ORCPT + 99 others); Tue, 26 Sep 2023 08:04:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233899AbjIZMEU (ORCPT ); Tue, 26 Sep 2023 08:04:20 -0400 Received: from mxout70.expurgate.net (mxout70.expurgate.net [194.37.255.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2BE5E6; Tue, 26 Sep 2023 05:04:08 -0700 (PDT) Received: from [127.0.0.1] (helo=localhost) by relay.expurgate.net with smtp (Exim 4.92) (envelope-from ) id 1ql6nJ-00DGsF-TT; Tue, 26 Sep 2023 14:04:01 +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 1ql6nJ-00FZfF-0r; Tue, 26 Sep 2023 14:04:01 +0200 Received: from securemail.tdt.de (localhost [127.0.0.1]) by securemail.tdt.de (Postfix) with ESMTP id 90A63240049; Tue, 26 Sep 2023 14:04:00 +0200 (CEST) Received: from mail.dev.tdt.de (unknown [10.2.4.42]) by securemail.tdt.de (Postfix) with ESMTP id E4C63240040; Tue, 26 Sep 2023 14:03:59 +0200 (CEST) Received: from mail.dev.tdt.de (localhost [IPv6:::1]) by mail.dev.tdt.de (Postfix) with ESMTP id 83F0E2EFEB; Tue, 26 Sep 2023 14:03:59 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 26 Sep 2023 14:03:59 +0200 From: Florian Eckert To: Jiri Slaby Cc: Eckert.Florian@googlemail.com, gregkh@linuxfoundation.org, pavel@ucw.cz, lee@kernel.org, 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 1/2] tty: add new helper function tty_get_mget In-Reply-To: References: <20230926093607.59536-1-fe@dev.tdt.de> <20230926093607.59536-2-fe@dev.tdt.de> Message-ID: <2c36a83654942416cfdcb2e40ecb539d@dev.tdt.de> 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 lipwig.vger.email X-purgate-ID: 151534::1695729841-26600C1B-B82AB986/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 (lipwig.vger.email [0.0.0.0]); Tue, 26 Sep 2023 05:04:20 -0700 (PDT) Thanks for your fast respond! >> @@ -2494,6 +2494,25 @@ static int send_break(struct tty_struct *tty, >> unsigned int duration) >> return retval; >> } >> +/** >> + * tty_get_mget - get modem status > > Heh, the naming is funny. It apparently comes from tiocmget. But that > comes from: > tty ioctl modem get (TIOCMGET) > tty ioctl modem set (TIOCMSET) > > So you should name it like tty_get_modem() not get_mget(). I didn't like the name too, but I couldn't think of another. The function is returning the state of serial control and status signals. From your suggestion for the name, however, you can not deduce that at all. How would it be then with the following name? tty_tioctl_state() ? > > Also those extra spaces around "-" caused some issues in the generated > output and should be removed (everywhere). Ok, I will change this in an own commit throughout the file. Thanks Florian @jirislaby: Forgot to send this message to the mailing list as well!