Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp749864iog; Fri, 24 Jun 2022 13:15:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sOyqzSSZuN9xkJrQWKuW7q9OvF3OtbhIirBBUGVccdWkGxLl8P8oScsy7jY0WSByWvnjXy X-Received: by 2002:a17:907:608d:b0:722:ebcc:b108 with SMTP id ht13-20020a170907608d00b00722ebccb108mr765548ejc.94.1656101711678; Fri, 24 Jun 2022 13:15:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656101711; cv=none; d=google.com; s=arc-20160816; b=0SWxtF8LF/sY5j/I8R/NB4bPIWC0s9eemY0cZCKPpb7o6fTl9mNTbq0xrmhxxgQ75i r6gluburqwE9kmS569zkL6b+XQYMgo6nP2xKh81tscaftkEOikONsozCMFiZNYsrl6Ml Js4dLXyYhZzzwrId4hqNKoaKpmmuLHV1ztEtff5QZqjjiXGE4fxJU4c27Pkfh5bOzCYP 6Dzx0kZmuB0SrW4G8DNDc2Vuryp6NYcQ8WPk9h/jZOJKNrpsDL/enJ63ZsAzqOvKmBDM uk6HsQCpTjhogS5PzTe1Xkp4CHodYnXQ51+MjRMM5zbA+mnksyQ4IppXPhwTcZDJIcAx PhHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=vlrXIBTDjCLyClHJ66wtu6uFKc7dX4yTPVXf5MZ4JRE=; b=FDy6QyHTUrgke8ORFuAPfcs8hS9bGZo61Tq2xMzNqdBgb/FfAAPyWXvMt84yWPbwmp z53yqUEIrh6VHRZp/uKs1cMcuPMfiE2znEK+8dH9gRn2/98TlfGxDQ7VCM+G3D+HMqO9 c4PoDYiULwi7el7ySUUntFczbLVsyVgzjx2WsuEGFVrSdLcuLIYO8pFJhukB0k6TKv4i uXdPFjYQVWWEooOfNO6o2InkPd7lEzs3E1T2Q1VTh7Y4jD/KC2ksz4UVzkc2dk4fZ13K PDeEahcowAKJUeE/lgfp1VNWUyM8x2WZDXdF12Fyxq3AFXC9SaV+/RYIjop8o/bQUPZk BhwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Jfr+zA2Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dz17-20020a0564021d5100b00435705f2c71si5258551edb.439.2022.06.24.13.14.43; Fri, 24 Jun 2022 13:15:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Jfr+zA2Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231583AbiFXUA3 (ORCPT + 99 others); Fri, 24 Jun 2022 16:00:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbiFXUA2 (ORCPT ); Fri, 24 Jun 2022 16:00:28 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E24F1823B0; Fri, 24 Jun 2022 13:00:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656100828; x=1687636828; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=aPeFMT2xLIQ7Nk30nxXxTOVKrUtn7QWE8ufSym4FWP4=; b=Jfr+zA2Zi+S6r861UZJbOj+bH7MuRgSGignG6tHCcP8/+Noy0ARcyitk 4FXV13wtRyUB9+T5xE9WQyrCB8s9Veo5Ljv1wpOSEXHqkMMvBWyIfQH1o zAzVKwj784ejMcOkDdfxEydUJx8Hz/D2YglnKAnVqC26t25brcVfFcVy3 CShItkdTUY9uaJW5vKhUxblSXxMDj+ywI+WPJntwMkq+00wSVyjs2PGGy fsSXFlYFkvxo4JQpHQKuFuVxCJ3KLEDNYQxVYpoBY1/77ltpc2qmDEmnj +vRWEnkd5WRV6lzMkcXhFFstLGmi4tTZeCeZhKAL/nXRhYvYWcU8sYDne w==; X-IronPort-AV: E=McAfee;i="6400,9594,10388"; a="264122718" X-IronPort-AV: E=Sophos;i="5.92,220,1650956400"; d="scan'208";a="264122718" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2022 13:00:27 -0700 X-IronPort-AV: E=Sophos;i="5.92,220,1650956400"; d="scan'208";a="645421660" Received: from vhavel-mobl.ger.corp.intel.com ([10.251.216.91]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2022 13:00:22 -0700 Date: Fri, 24 Jun 2022 23:00:13 +0300 (EEST) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: Jiri Slaby cc: linux-serial , Greg KH , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , =?ISO-8859-15?Q?Andreas_F=E4rber?= , Manivannan Sadhasivam , LKML , linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-actions@lists.infradead.org, linux-unisoc@lists.infradead.org Subject: Re: [PATCH v2 5/6] serial: Use UART_XMIT_SIZE In-Reply-To: Message-ID: <6fb33489-946f-ad92-df35-7f608420bc7@linux.intel.com> References: <20220621124958.3342-1-ilpo.jarvinen@linux.intel.com> <20220621124958.3342-6-ilpo.jarvinen@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-120668389-1656100826=:2099" X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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-120668389-1656100826=:2099 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Thu, 23 Jun 2022, Jiri Slaby wrote: > On 21. 06. 22, 14:49, Ilpo Järvinen wrote: > > --- a/include/linux/serial.h > > +++ b/include/linux/serial.h > > @@ -9,7 +9,6 @@ > > #ifndef _LINUX_SERIAL_H > > #define _LINUX_SERIAL_H > > -#include > > #include > > /* Helper for dealing with UART_LCR_WLEN* defines */ > > @@ -25,11 +24,6 @@ struct async_icount { > > __u32 buf_overrun; > > }; > > -/* > > - * The size of the serial xmit buffer is 1 page, or 4096 bytes > > - */ > > -#define SERIAL_XMIT_SIZE PAGE_SIZE > > - > > #include > > #endif /* _LINUX_SERIAL_H */ > > diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h > > index 5518b70177b3..1767dee98021 100644 > > --- a/include/linux/serial_core.h > > +++ b/include/linux/serial_core.h > > @@ -296,6 +296,7 @@ struct uart_state { > > struct uart_port *uart_port; > > }; > > +/* The size of the serial xmit buffer is 1 page, or 4096 bytes */ > > That is not completely true, I'd remove the "or" part. Hmm, but then the > comment is somehow superfluous as it says what we can see below. So maybe > don't add it at all? > > > #define UART_XMIT_SIZE PAGE_SIZE Yeah, the comment is probably not that useful. I managed to get into an "autopilot mode" with a sole goal to preserve the comment rather than thinking/reading it through whether it's worth preserving. -- i. --8323329-120668389-1656100826=:2099--