Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2609703rdh; Mon, 30 Oct 2023 02:25:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGZ18rGJNZ6DIfXM6udyKfQNTbFdn4MjzqwuyMo92/Wxp5iIJ7cscuhmUtGpnRdfCowxOTJ X-Received: by 2002:a17:903:25c2:b0:1c8:9d32:339e with SMTP id jc2-20020a17090325c200b001c89d32339emr6991615plb.50.1698657957832; Mon, 30 Oct 2023 02:25:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698657957; cv=none; d=google.com; s=arc-20160816; b=0oPTq1sj10yPHqmlj+jRjMShuUNeb9WigrdD3/0ZPjzTaNW/lg4z3w8Co3P55aTqWK P8hGDCAoOFZYhkseXaIczPI66aJZMJEMqZvuFEVFAK9m7WeLF8DNAHKaZ0u21DThCtNe 0F+iAD9REmujZGeNWoxXwH8/2c/aW4XPP/9jHPRKzha69X41xTl3expaYZfhLwj4mrWv j2vtD6EvMkFR7b+/xfh3Rf+gblStegEE0RWHzZnUioTKTbJ7C5T/X2mej3Ojw7h/M11u w2+Pbj1oT7uqawpQM6lpFBS06W91Jk7W00Y3ORYWsTtvx+qPI2rTeWH0Bq1tvkgjoGCm wuNw== 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=BPfJW2779mYRvsOTjLbfiFlBoyiADSGOZfBdl4yYv8w=; fh=TVriA3WmF61HiHxNd3Go3j5rvij4I44toe5dh1hsBbI=; b=yuSf1l5Of4Pl1X07tUEHnL0PUH3hKeU0lhmVf9yIDAtmYr0iVDJkukVDrjjEIdwfVB nWzolMYf9cHlqABdz2KIYAteoeUvVAXlxNvovsF9rxE7row5xhK5tD39e8RwwheNoiui re0zLfkSv8chTxosIVX/e1T3Hs+Dzw5h/RRO21TOWrvAu0jrJUPi/CSNUGzaQmHIWn3S 9GXsbDyZr9Ss8oSPCF0Jcq4tkpyeICzmL4jiTVbzmFxoWCC+8/REUJrQNfL8mUcY2apC ibgfTNViGPQ4K12J+HBcDNoy9d08jFRqwqhjPZsJ26D1sr4E7F+uHX1wpyfFv5KsLRTs Wo0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BDqKdv2o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id r1-20020a170902c60100b001bde9e8a29fsi4271359plr.183.2023.10.30.02.25.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 02:25:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BDqKdv2o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 776C08075947; Mon, 30 Oct 2023 02:25:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232402AbjJ3JZq (ORCPT + 99 others); Mon, 30 Oct 2023 05:25:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232340AbjJ3JZp (ORCPT ); Mon, 30 Oct 2023 05:25:45 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EC79EA; Mon, 30 Oct 2023 02:25:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698657942; x=1730193942; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=wTMbD+Y3gUCGRghE6+820yKHgUukE/w0guWwpnRSIoo=; b=BDqKdv2oCsjhXEcKyWweyQW77xniZj/c+3NnW5ezZnI/P9ajEwNu/TEA MzjSaBILxArq5+zI2uPwarRGouVXle0wKxi/P19hpTvy9yV0S7k8St/8m UYgewTzxTMWv64JOMHuIiwgIFE8vw8OJnNUtzoi49hmiVnH/xCfAfRPXX Qr/X9WhEHNA+/g1c+ekKvwtM8eimkuGs09AQhO/DFYwz7sj9lf+0ikWX3 t1DMRWzetbc4O3VQGNIfFh/jXT0u30L/EJA/sFx0IBAgN8plMxJS9iX3b sLXX45xv+/emFXzN4Qj1lrdcF77+wevExyXWdiKABxjI9jj3AMgIOuH07 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10878"; a="367386344" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="367386344" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Oct 2023 02:25:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10878"; a="830632658" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="830632658" Received: from sgruszka-mobl.ger.corp.intel.com ([10.252.50.181]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Oct 2023 02:25:39 -0700 Date: Mon, 30 Oct 2023 11:25:37 +0200 (EET) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: Vamshi Gajjela cc: Greg Kroah-Hartman , Jiri Slaby , ilpo.jarvinen@linux.intel.com, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, manugautam@google.com, Subhash Jadavani , Channa Kadabi Subject: Re: [PATCH v5 1/2] serial: core: Update uart_poll_timeout() function to return unsigned long In-Reply-To: <20231030073542.251281-2-vamshigajjela@google.com> Message-ID: <2ed2249-d4ce-410-17d1-b78be4a3a643@linux.intel.com> References: <20231030073542.251281-1-vamshigajjela@google.com> <20231030073542.251281-2-vamshigajjela@google.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-1516915826-1698657941=:1729" X-Spam-Status: No, score=-1.2 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 howler.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 (howler.vger.email [0.0.0.0]); Mon, 30 Oct 2023 02:25:55 -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-1516915826-1698657941=:1729 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Mon, 30 Oct 2023, Vamshi Gajjela wrote: > The function uart_fifo_timeout() returns an unsigned long value, which > is the number of jiffies. Therefore, change the variable timeout in the > function uart_poll_timeout() from int to unsigned long. > Change the return type of the function uart_poll_timeout() from int to > unsigned long to be consistent with the type of timeout values. > > Signed-off-by: Vamshi Gajjela > --- > v5: > - no change. Consistent version for series > v4: > - author name in capitals to lowercase > v3: > - updated description > v2: > - unsigned long instead of unsigned int > - added () after function name in short log > - updated description > > include/linux/serial_core.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h > index bb6f073bc159..6916a1d7e477 100644 > --- a/include/linux/serial_core.h > +++ b/include/linux/serial_core.h > @@ -773,9 +773,9 @@ static inline unsigned long uart_fifo_timeout(struct uart_port *port) > } > > /* Base timer interval for polling */ > -static inline int uart_poll_timeout(struct uart_port *port) > +static inline unsigned long uart_poll_timeout(struct uart_port *port) > { > - int timeout = uart_fifo_timeout(port); > + unsigned long timeout = uart_fifo_timeout(port); > > return timeout > 6 ? (timeout / 2 - 2) : 1; > } > Reviewed-by: Ilpo Järvinen -- i. --8323329-1516915826-1698657941=:1729--