Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp397027rdh; Thu, 26 Oct 2023 05:30:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGXy3J6Lf3K1fworBBWoxHSCpVECnjDAfu11sah+6FdkWM7MIlIrVfEo9Cix3UrAIytdtfW X-Received: by 2002:a05:6871:4307:b0:1e9:a8f4:879f with SMTP id lu7-20020a056871430700b001e9a8f4879fmr21039884oab.55.1698323433885; Thu, 26 Oct 2023 05:30:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698323433; cv=none; d=google.com; s=arc-20160816; b=u8ZV9o7+zvF5WlP87jwVm4tMy0+7zeiTD3yl2xlAUyiL8NmvaYleI68bcpIq9hMz2f cOFGggjJ2POY/Fc0uhl/sg51rRjHmIibsZI8/DUcSc5NuWDQu+JNiZCmWB/zU9jwUOCA Rwd+qUqBFksSdk2jLiKSADtIjBXWr13BU0fNOWSDxfRombSi2CzN/79S7TT0jzCfbJXt 461uPV+q2dyNS6ZZcOpiA221OZmpxVGdZmU9PWYdsgPz2kfrexyqkFgHXJsDWP70qZkS 4tIMzyjkmPb81BFnrVxA0Vr9uhllC8Ql2rT6mg9YwuLC2gZrML43lDtaYHT/Cwczf27l zPxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=0qhWD/wKolF9uKVlzI4nYGJUgFmTHF3AiqIVIus6VkI=; fh=S+EpTyzJVznSrHRSS8Iv+4qHl4cqbESYwOoDlsAITdk=; b=hDV9OH7aTWGeyCPwfSKh+06WkS66OsJs9/cOkaBrdkVh/JoF0MqdopCWXbwZhK8MGL h3A+nF2ckoVUfSKZxhJKp3fxvALyabDCUklkMiffYEP8ZsQPvZ7sl/AcpWtT8vc00GKp Y+9UZ+tPkh3C1oKcwzCWZ7TMadRQxdn00fx/JMcxCdURIspB9bfXbzej2oLvc1OcWx7f MhcOpilprlfVDfCDHiiHFOD0/XeGgKSKNMUC3tRikq1ZpEvQ0a+HPnSnVclkV3ld9piJ GmBu+gbVsMfFS3RSbE41LwqqvOt6sBS3o20naXiS9J1RIAJUXqQYh7QgEhfM1s69zYqq o5Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="bTgPD/Ok"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id e9-20020a256909000000b00d9c7221acfasi6591159ybc.325.2023.10.26.05.30.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 05:30:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="bTgPD/Ok"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id F375F80713F2; Thu, 26 Oct 2023 05:30:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344940AbjJZMaU (ORCPT + 99 others); Thu, 26 Oct 2023 08:30:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231168AbjJZMaR (ORCPT ); Thu, 26 Oct 2023 08:30:17 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66FBE111 for ; Thu, 26 Oct 2023 05:30:15 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-507a085efa7so3267e87.0 for ; Thu, 26 Oct 2023 05:30:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1698323413; x=1698928213; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=0qhWD/wKolF9uKVlzI4nYGJUgFmTHF3AiqIVIus6VkI=; b=bTgPD/Oky+VIhlbStwAtXE7KjxqEkhbMZN77jFSHaiK/OypjmyBKXF0ciRlRCqrogF OBTFuR4mJxyurpAYilmf8ulciK9I3SPEcHC+QGxUqltKJOgXayGBsmh3FxBIH80cUKAV eSgWCm9tEmBfRQGL7TerMB1bup9dtPqe/XXFQWj+ug42CWYJWXLpj4i5rqeUa65Swjym Hw07JeR/ooI1YiU8cNctKjbc8L/AzNJEktoa9o+58+O59UoCKP42LgS4q4Szb0cy2A6o bSX/mw1Pxr0zlmHpODKkgs6fTIkXEHIUnN9Qfv9Gj0qJAMUbS9ts1B73Xy1fDn0mkoN/ cDqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698323413; x=1698928213; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0qhWD/wKolF9uKVlzI4nYGJUgFmTHF3AiqIVIus6VkI=; b=iToPY7NzlV7cUBcVwoHYGWM79ccHSwNgUyd+pEvPR14YQw1fgx8l4I4mSyQ/ZhMAnt xfM/OI21jIA6tMCoYQmhc1kQ7gtU9w0qf5myerx51aRA14Iw5pmUqva9t2wxmemT5qh1 njfT14sO/5YtNg8WN3qYYFKeo2DkjJrifQkVA7SFo0IG3/7bUuB7nL0VrvxTWoinxqoG SFPFG9DnREfLoEBGw/+72vdSqRZTrUCrUKZ2gjg/z/3uaZy0ZKpDSdzXBoL/cgzTyJCC 9zzsEPaYt6/yGglIzu2WwysSd4jloEQdOn+lot3AsR+yNwCk++0dri+9oxd/FsE9JhIt u1MA== X-Gm-Message-State: AOJu0YwMo/QzOz1d13o1Na0YrE2Q55zw+RymdvMn7J4hnyIDfyCCydhd a8v5Y3O88UvcGxRtOcUhy4fTyTiBn0JXQR+gyc5AKw== X-Received: by 2002:ac2:4e90:0:b0:504:7b50:ec9a with SMTP id o16-20020ac24e90000000b005047b50ec9amr156584lfr.1.1698323413398; Thu, 26 Oct 2023 05:30:13 -0700 (PDT) MIME-Version: 1.0 References: <20231025142609.2869769-1-vamshigajjela@google.com> <7e7eb495-8e54-49f3-bab7-0de72b2cf7b6@kernel.org> <3bd3d362-94c5-4d50-9404-0e4f6a3dec21@kernel.org> In-Reply-To: <3bd3d362-94c5-4d50-9404-0e4f6a3dec21@kernel.org> From: VAMSHI GAJJELA Date: Thu, 26 Oct 2023 18:00:01 +0530 Message-ID: Subject: Re: [PATCH v2 3/3] serial: core: Update uart_poll_timeout() function to return unsigned long To: Jiri Slaby Cc: =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , Greg Kroah-Hartman , linux-serial , LKML , manugautam@google.com, Subhash Jadavani , Channa Kadabi Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 26 Oct 2023 05:30:31 -0700 (PDT) On Thu, Oct 26, 2023 at 3:19=E2=80=AFPM Jiri Slaby w= rote: > > On 26. 10. 23, 11:24, Ilpo J=C3=A4rvinen wrote: > > On Thu, 26 Oct 2023, Jiri Slaby wrote: > > > >> On 25. 10. 23, 16:26, Vamshi Gajjela wrote: > >>> From: VAMSHI GAJJELA > >>> > >>> The function uart_fifo_timeout() returns an unsigned long value, whic= h is > >>> the number of jiffies. Therefore, the function uart_poll_timeout() ha= s been > >>> modified to use an unsigned long type for timeout values instead of a= n int > >>> and to avoid truncation. > >> > >> Hi, > >> > >> there is no truncation possible, right? > > > > That's very likely true (I didn't run the calculations), thus it's corr= ect > > to not have Fixes tag. > > Good. I would remove that "and to avoid truncation" completely from the > commit log. I would only say that we are getting things consistent. > > "avoid truncation" can lead to -> we should backport it to stable. And > neither is true. I will drop "and to avoid truncation". > > > It's more about having consistent typing since > > we're talking about jiffies, so unsigned long as usual. > > Yeah and that's of course fine by me. > > thanks, > -- > js > suse labs >