Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4367568rwj; Tue, 20 Dec 2022 09:11:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf71u5BszcPi8DwE0BNWBYtsFemlWeyEhrmDiYDghjF00zFmZ23AnUw5KoLMdHHv1FP5fUSE X-Received: by 2002:a05:6a20:43ab:b0:ac:f68:24a0 with SMTP id i43-20020a056a2043ab00b000ac0f6824a0mr63048763pzl.29.1671556284039; Tue, 20 Dec 2022 09:11:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671556284; cv=none; d=google.com; s=arc-20160816; b=X8W31CadlBwefTp9DQEeXLlsBwZOblQkdliik0Cj/dK4eZ/KUUFyFrG8OtNxrdVxi4 zQVfOzEpx8HUy3Z/qjsbMluM5yWsvuC9YV13tQq+0f9ihoFL7s/RWdid42CxCJGuFrcI INnih0Mu4mNJwbsZpa5LYa/bU9A2JV9xMTPsTqktuXNKhmEiIqMt2VRGmZgnCKLqDUmk GfxX5awD9DTAmFAFNb1uaVKHj1LPXoNEGw3YP5RjX9HN9e1HJtUv5UxIqrJaV0ylig3n gLg1zgjV3sjaa9R5govw2Limjk2iI4S3pgbDLMeAT837TiOCpf7FCC4ARFZ9M2l2NW0k //lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:user-agent:mime-version:date :message-id:subject:dkim-signature; bh=nAWCvvThSyACoXOhd7zz/i3FNA10KAOXnjZzrQOuOKE=; b=vgh03AS0dQBaTxyIDseM9XfyiRWfmPxdEKFghsCaVGeyOsNgzqMpRAeBhtdbTIMRO9 LV6tUNzEIToABB/9B7x6LQtVxC/AookeEs11napHU14YaIkAmMSKb8qmXIWvcUzl9PXB HLw1r7kUnsK/n5PYslYDHZAdY11clL34a+vpSnOSaBEQD2X3n2Ei6b81Uusy9BcylYS3 BqkT0ptqIyJ6qTE74ytTLhnrVlqYchB7xlG/664TfneZrMFkDtwrsxB4QiekSNfliRpM kNwDp2EYHJ7kuNvFWv0ZyStqspOsOymGgC1seHLPF9C023Wtz4Gc90Ty7BvDYo9VArmR /PAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=W9Za0nCH; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w7-20020a63f507000000b00476f2b0b330si14196628pgh.700.2022.12.20.09.11.15; Tue, 20 Dec 2022 09:11:24 -0800 (PST) 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=@amazon.com header.s=amazon201209 header.b=W9Za0nCH; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233845AbiLTQ0U (ORCPT + 69 others); Tue, 20 Dec 2022 11:26:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229638AbiLTQ0R (ORCPT ); Tue, 20 Dec 2022 11:26:17 -0500 Received: from smtp-fw-80006.amazon.com (smtp-fw-80006.amazon.com [99.78.197.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AAA620F; Tue, 20 Dec 2022 08:26:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1671553577; x=1703089577; h=message-id:date:mime-version:to:cc:references:from: in-reply-to:content-transfer-encoding:subject; bh=nAWCvvThSyACoXOhd7zz/i3FNA10KAOXnjZzrQOuOKE=; b=W9Za0nCHV9B9L+ZTpFQzxT2a+oQvlQM1wmFh669ltB3VpplL1Aw6uogo HxpoNpoqcuWjV+tN+huq5V8PQ2KYx6Cr1bSgJQVvoIimuH+0MgNuCM6MT O+M4MK9NwlgSrDvY1KRBYvyhwH0HemnSP5rmKU5z1usqj8oQ3JMyP55UG w=; X-IronPort-AV: E=Sophos;i="5.96,259,1665446400"; d="scan'208";a="163430472" Subject: Re: [PATCH v3 1/1] i2c: designware: use casting of u64 in clock multiplication to avoid overflow Received: from pdx4-co-svc-p1-lb2-vlan2.amazon.com (HELO email-inbound-relay-pdx-2b-m6i4x-32fb4f1a.us-west-2.amazon.com) ([10.25.36.210]) by smtp-border-fw-80006.pdx80.corp.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2022 16:26:14 +0000 Received: from EX13MTAUWA001.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan2.pdx.amazon.com [10.236.137.194]) by email-inbound-relay-pdx-2b-m6i4x-32fb4f1a.us-west-2.amazon.com (Postfix) with ESMTPS id 9439EC366F; Tue, 20 Dec 2022 16:26:11 +0000 (UTC) Received: from EX19D021UWA001.ant.amazon.com (10.13.139.24) by EX13MTAUWA001.ant.amazon.com (10.43.160.58) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 20 Dec 2022 16:26:11 +0000 Received: from EX13MTAUWA001.ant.amazon.com (10.43.160.58) by EX19D021UWA001.ant.amazon.com (10.13.139.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.1118.20; Tue, 20 Dec 2022 16:26:10 +0000 Received: from [192.168.1.158] (10.1.213.27) by mail-relay.amazon.com (10.43.160.118) with Microsoft SMTP Server id 15.0.1497.42 via Frontend Transport; Tue, 20 Dec 2022 16:26:06 +0000 Message-ID: Date: Tue, 20 Dec 2022 18:26:05 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Content-Language: en-US To: Andy Shevchenko CC: , , , , , , , , , , , , , , References: <20221219171713.10108-1-hhhawa@amazon.com> From: "Hawa, Hanna" In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-13.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_SPF_WL 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 On 12/20/2022 12:47 PM, Andy Shevchenko wrote: >> Fixes: 2373f6b9744d ("i2c-designware: split of i2c-designware.c into core and bus specific parts") > It's not clear if the second patch you sent (about unsigned long --> u32) is > required or not, can you clarify this in the changelog? > Sure will add to the changelog, it's not required to have the second change to avoid the overflow. >> Signed-off-by: Lareine Khawaly >> Signed-off-by: Hanna Hawa > This should be last part of the message body. The cutter '---' line makes it > so, currently you finish your message with a changelog and not tags. So, you > need to move the changelog after the cutter line. Thanks for the info. will update. > >> Change Log v2->v3: . . >> - return DIV_ROUND_CLOSEST(ic_clk * tSYMBOL, MICRO) - 8 + offset; >> + return DIV_ROUND_CLOSEST_ULL((u64)ic_clk * tSYMBOL, >> + MICRO) - 8 + offset; > There is still a room for 'MICRO) -' part on the previous line. > Ditto for the similar cases. Ack will be fixed