Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3837674rdg; Wed, 18 Oct 2023 07:29:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEU0DyQ7sA0ahVSzVsukFzVUxsjgoN9PGrr9JUAAmEOs6a/acvkMgKOjlfPudIOWywjwL2A X-Received: by 2002:a17:90b:1e4f:b0:27d:549b:3e6f with SMTP id pi15-20020a17090b1e4f00b0027d549b3e6fmr5022993pjb.46.1697639372646; Wed, 18 Oct 2023 07:29:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697639372; cv=none; d=google.com; s=arc-20160816; b=bmLOj7D+hEanLtKiDXBGqrW/vR5QbQ1T3mdcb5dnSBRVNWv7xzeTkzxaWiSgeEQsP4 oQcePhieeBu/JA+IfqjE/OC8thB3BWH/2iMPUYLRi1z23OABnKhGt7bHOJwqePWp+sPi JA9lsst4AVkyd/b0yO/cXzMLs7n+HBEuJALlRmcrNTQNgCnGlvAt//ojlK6siglM2PSV 2Nj/Rw7Mhhk4gbISqgZlg6sWh5Y4IejSgrmct+znfTfyp5K+Y0rBgUI3E6ESOAQICa+9 bcxyBw4FuvsYcNWAKpJURQrcahdI73ZQiAT2MMo1HmKcXfi7i6Pkh204wS8LsTSVlj9r wbGA== 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=QOE/HwXbjXBM8pvrHd8gpMB/9CB4hrW/MzpGagoB2q0=; fh=ACFbZ3OhxEHXZbwdXqJTZT9c9puDtV55AlXhiteIQsY=; b=cAC4FwloJ1Yz5rxb65SFkzE+76G57HNmQ4UNdqo8+r8kitxWJboltzeD04RPijRNNZ 9WDY63IwCahGPL2aZcKugMP9AkbWOfQPJke/ldpAouhEr+tfvjPj/pwRftR30mmM+nPO O9A7OoVIsN67KxF1eIf1zqpp5tNa9Cdkezl2PWMsIlkfN3HCA4pcNfu4bAJOBom7LwZA 0/A4Ay0ACdB1AjLPSmvazaxofMWabWrnA+ACGX4M8pjUEfT89Kq+UJ1HBlnohRphkUMG l+VafidUJtcCDWE7utjGx7BDvm/jRJu/aUhclF2K7w4+QN10bowGL7bIfk65CRSTZeUd 6zjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=0t0nAVvH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id em16-20020a17090b015000b00262e3c1c1efsi1653092pjb.79.2023.10.18.07.29.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 07:29:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=0t0nAVvH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 816B880E5BB6; Wed, 18 Oct 2023 07:29:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345009AbjJRO3W (ORCPT + 99 others); Wed, 18 Oct 2023 10:29:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345095AbjJRO3I (ORCPT ); Wed, 18 Oct 2023 10:29:08 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C5993C22 for ; Wed, 18 Oct 2023 07:17:17 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-53f34f2718cso12084a12.1 for ; Wed, 18 Oct 2023 07:17:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1697638633; x=1698243433; 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=QOE/HwXbjXBM8pvrHd8gpMB/9CB4hrW/MzpGagoB2q0=; b=0t0nAVvHIAmh1ekQB8kNEH/ekimf1bdP9TqJyMJMAzlrC/61akbCcHKl2FTG8Ggyt7 2bRwZf31LtuYyaql30L3t1pXyfqqXdhMfNFLu5l0T7ERcNUin+BSJzGulJnr6s3G4hvS i6JQmCdj+DtnvG7ltbNybrfYyAy0A4T/rXWv7iJSaN93/S6EzTJU1KWyEDcaejjQ8kOJ vlK5vwPMGmkg/6IblukKn6PQRwP+D5WPfyTTCQ2F16NEAC5DDzD4il7/3bef/xlz9GmX iMbyD9o9Lp4dINnTAdl76MFT8FEs1aVv0oG0RlHq3uuA2F/Is56JzQk6pi8tFkGWQXRO GxKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697638633; x=1698243433; 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=QOE/HwXbjXBM8pvrHd8gpMB/9CB4hrW/MzpGagoB2q0=; b=FUCa0TBrWr5uc6uS7KYSjqhIMWgakqYiIjZNm8oDJzzu7tqPteQuRAcmboCoVg5vfe +KyVplFu1qCD1IZXGgY8weRomq8c6mAsp3oTFbJrAXukTnDQlgsnXvRYCna6MAlIC8AI F0Aiz53pSqzAGQhGdxW9LcG6LJstnWp4+MKPE7t4WYHfjP//Mg0UkjgpNz5isOWgRPs6 j7JNfW1W1ejA4bXXW5C0/3Y75xFuZxbY1eVfGO9apdI0cLVd9WihdLe8yBB9W7Ag6x65 kxStHCiTWDbvTYq6YtkrHtxvRXl1mxEmkpGC9a04OuLeifuO+AH4bbTN4/hfFy6plEHX NXXA== X-Gm-Message-State: AOJu0Yxhe9pcfFH7+1J+YqQSIU367sElJhXhMtW7ZMit0rDF9KCxxbAl W+NM3qUKVlF21YZtq4OGdafVjiv3GkdyFN4NOKsIpA== X-Received: by 2002:a50:9f03:0:b0:52e:f99a:b5f8 with SMTP id b3-20020a509f03000000b0052ef99ab5f8mr99470edf.7.1697638632991; Wed, 18 Oct 2023 07:17:12 -0700 (PDT) MIME-Version: 1.0 References: <20231014104942.856152-1-vamshigajjela@google.com> <20231014104942.856152-3-vamshigajjela@google.com> In-Reply-To: From: VAMSHI GAJJELA Date: Wed, 18 Oct 2023 19:46:59 +0530 Message-ID: Subject: Re: [PATCH 2/3] serial: core: Make local variable size to u64 To: =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= Cc: Greg Kroah-Hartman , Jiri Slaby , 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=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Wed, 18 Oct 2023 07:29:29 -0700 (PDT) On Mon, Oct 16, 2023 at 5:09=E2=80=AFPM Ilpo J=C3=A4rvinen wrote: > > On Sat, 14 Oct 2023, Vamshi Gajjela wrote: > > > From: VAMSHI GAJJELA > > > > The variable size has been changed from u32 to u64 to accommodate a > > larger range of values without the need for explicit typecasting. > > Don't use too broad/generic terminology in shortlog (on [PATCH] line in > subject) or changelog but explicitly mention the variable names please. name of the variable is "size", may be now I will rename the variable to "frame_size" in v2 > > > Signed-off-by: VAMSHI GAJJELA > > --- > > drivers/tty/serial/serial_core.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/seri= al_core.c > > index 7bdc21d5e13b..fb4696d17a8b 100644 > > --- a/drivers/tty/serial/serial_core.c > > +++ b/drivers/tty/serial/serial_core.c > > @@ -410,10 +410,10 @@ void > > uart_update_timeout(struct uart_port *port, unsigned int cflag, > > unsigned int baud) > > { > > - unsigned int size =3D tty_get_frame_size(cflag); > > + u64 size =3D tty_get_frame_size(cflag); > > u64 frame_time; > > > > - frame_time =3D (u64)size * NSEC_PER_SEC; > > + frame_time =3D size * NSEC_PER_SEC; > > port->frame_time =3D DIV64_U64_ROUND_UP(frame_time, baud); > > } > > EXPORT_SYMBOL(uart_update_timeout); > > This is actually a good cleanup all by itself unrelated to the other > change but you need to adapt the changelog to reflect why this is helpful > instead wording it based on the other change. I shall submit this as a separate patch. As mentioned in 1/3 patch I will also add a cast u32 before assigning the value to port->frametime along with variable name and size change. > > -- > i. >