Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp718911rdb; Tue, 19 Sep 2023 08:15:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHKZnXqaNc/POdAVqHuCFtTWAcJyFSx8rkRpoLiEINhQ25T9a9CsJjF3u8SF7wFgObL/s8c X-Received: by 2002:a17:902:da92:b0:1c5:b1cc:fe0e with SMTP id j18-20020a170902da9200b001c5b1ccfe0emr997958plx.53.1695136509994; Tue, 19 Sep 2023 08:15:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695136509; cv=none; d=google.com; s=arc-20160816; b=Eh3rvtTahTl+XGQxSxGEY8KNhXBiY7skTo8ChzrPgGenDCPPqDGDwtinNueohHSXS/ bQidYsDP5B2eyDM2h7aU6SNqdSQwaJ9pnGmTDsdietmeMi4hyg087Usg7XHhca4ytnCY aX8NkLMQJioLkNxcVCkuyIOCif2Ra+313UyWL8N/Ay8G1x79+EV336/wudDIkoygCUoP 0JvHy+f/3p/mS8QfW513ZoFZRmvUiT3t49NSRfhLlWgeZvS+pjWo3kwdfanxiiTeD63i wSrj1RqKcwxvBXA7rPE/GtMCbtC8+2Vn4UQdBYyTuJO9oxwdiD0aFEUOTzLjJiKiBOLT mPUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-id:mime-version:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=Z8/INZOt3I/3v3DsgYqxogzNbx7n/bvB6wxfH9B/UjU=; fh=PxjcL/ZdiHiVcm76ua20Djv7HwMfZdoMlXIc51BfpOg=; b=JdiZ3DxUys9QoIkAfWQJW1MfPh6ot0ytebOx5mIwT1Xi9hZeV3Re8oeu2vwjLlk5Oo 6YmG8XVNAI3vAcNkDUfaOkA1+2zQkQngK/XcuL57oCY5nGcTpGXMhWgNprMpqciOxOWZ vbIS5Cc9QXJKQOLmzz+j93ZINuCD2DGLwWBPmntwv5eAGaDtwpPn+W71T6nithXZ/TN+ ibf4Eg23uKRtdTX1UJFxL2yhEbZSfAtiUipcJkkBooBexQQYN1k2J22cNvTodUOWdd57 fujoua5h4sNwOJGp33yc+jbf6zGqQdvMb6jUMoh8HSEx+a2PE7NuE8oRzY9E69abcoX0 6BjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cGi6L46y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id b12-20020a170902650c00b001c3e8a6748asi9485106plk.644.2023.09.19.08.14.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 08:15:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cGi6L46y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id E4F4D816468A; Tue, 19 Sep 2023 03:17:59 -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 S230287AbjISKR7 (ORCPT + 99 others); Tue, 19 Sep 2023 06:17:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229641AbjISKR6 (ORCPT ); Tue, 19 Sep 2023 06:17:58 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE824E8; Tue, 19 Sep 2023 03:17:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695118672; x=1726654672; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version:content-id; bh=05/TtXTbpaSK6G3uOTBzMjq0JajybnUaFTuIy2/oKgI=; b=cGi6L46yQmTyolfhP9gUW+NdTLhtSbrDmY4Rujxzda0YlCgcN4E26pbI koqO+37AS/9HoSKd9BB5MqLi6emG09AiyRmwZr9jW/oxgKg20qcdG9hwn GJRj1btAjwgtie+ob7IsnXUQ1w6hd9oK8p8GydMx29S6kSwSaIJsEMp+4 y60PwzvGSrepuyL1+IGr4imVMpSlQHhJX2UC/aqg6gRKC1JWZbpQlvE9J Pnl+Czwpu8pDXw7goIqkOVWwXcz/41lwjiHZRwaQIomuTfP/WTdSxW0Yy 49WRiyV1jatjqOA4nIjI6LY4R6BB6ywMgPdluAaNsZCYLgkwHFscDizcX A==; X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="410832470" X-IronPort-AV: E=Sophos;i="6.02,159,1688454000"; d="scan'208";a="410832470" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2023 03:17:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="781256036" X-IronPort-AV: E=Sophos;i="6.02,159,1688454000"; d="scan'208";a="781256036" Received: from laichele-mobl1.ger.corp.intel.com ([10.252.38.7]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2023 03:17:50 -0700 Date: Tue, 19 Sep 2023 13:17:49 +0300 (EEST) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: "Jiri Slaby (SUSE)" cc: Greg Kroah-Hartman , linux-serial , LKML Subject: Re: [PATCH 00/15] random tty fixes In-Reply-To: <20230919085156.1578-1-jirislaby@kernel.org> Message-ID: <6f7b65a8-bc9c-83d2-13c9-a56d85616b53@linux.intel.com> References: <20230919085156.1578-1-jirislaby@kernel.org> MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-85316023-1695118627=:1920" Content-ID: <8751c2-6ac4-be6-4791-191036869597@linux.intel.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,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 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, 19 Sep 2023 03:18:00 -0700 (PDT) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-85316023-1695118627=:1920 Content-Type: text/plain; CHARSET=ISO-8859-15 Content-Transfer-Encoding: 8BIT Content-ID: On Tue, 19 Sep 2023, Jiri Slaby (SUSE) wrote: > This is a collection of random fixes for tty I did while crawling > through the code. Mostly done for readability and understandability. No > behavior change intended (except for Documentation fixes). > > Jiri Slaby (SUSE) (15): > tty: n_tty: use 'retval' instead of 'c' > tty: n_tty: rename and retype 'retval' in n_tty_ioctl() > tty: n_tty: use min3() in copy_from_read_buf() > tty: n_tty: invert the condition in copy_from_read_buf() > tty: n_tty: use do-while in n_tty_check_{,un}throttle() > tty: switch tty_{,un}throttle_safe() to return a bool > tty: invert return values of tty_{,un}throttle_safe() > tty: fix up and plug in tty_ioctl kernel-doc > tty: fix kernel-doc for functions in tty.h > tty: stop using ndash in kernel-doc > tty: tty_buffer: use bool for 'restart' in > tty_buffer_unlock_exclusive() > tty: convert THROTTLE constants into enum > tty: early return from send_break() on TTY_DRIVER_HARDWARE_BREAK > tty: don't check for signal_pending() in send_break() > tty: use 'if' in send_break() instead of 'goto' > > Documentation/driver-api/tty/index.rst | 1 + > Documentation/driver-api/tty/tty_ioctl.rst | 10 + > drivers/tty/n_tty.c | 77 ++++--- > drivers/tty/tty.h | 13 +- > drivers/tty/tty_buffer.c | 5 +- > drivers/tty/tty_io.c | 36 ++-- > drivers/tty/tty_ioctl.c | 234 ++++++++++----------- > drivers/tty/tty_port.c | 6 +- > drivers/tty/vt/consolemap.c | 2 +- > drivers/tty/vt/vc_screen.c | 4 +- > drivers/tty/vt/vt.c | 4 +- > include/linux/tty.h | 25 +-- > 12 files changed, 209 insertions(+), 208 deletions(-) > create mode 100644 Documentation/driver-api/tty/tty_ioctl.rst For this whole series except the patches I commented on: Reviewed-by: Ilpo J?rvinen ...If you make the amendments I requested, please add the tag also to the patches I commented on. -- i. --8323329-85316023-1695118627=:1920--