From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, URIBL_BLOCKED,USER_AGENT_SANE_2 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C860CC432BE for ; Wed, 1 Sep 2021 11:10:37 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9144360F3A for ; Wed, 1 Sep 2021 11:10:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9144360F3A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Date:CC:To:From:Subject:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=GNoqDvB87sl04ubN1pf0BYVJWpgtQjGFzfvoh0WzyGc=; b=N4vBDMwnwCwS5d HwrwaSR3lRg2d+jOkdCR2nKooSF5AaxtAQw6JPDaXe1H9eiaGocWouvfGeHtTTSVDq1Iq7AP8MFMb UGqvLuSgCAbG3E9cFSYOg50A5tmDVoEC6SQSis3eSJNCo779j0tIHquNrkcMHlhDYiKO+4PW1lcG7 uCtmQecFO7FICun7W9NY8bF7C9tD6nzuEsOxikKaPPCED6VmnUzxmHZR57xaMB+P9pOA5Ap5Aeyu/ cWv27Vg5gJBwpcDHTvQkageSk82DQRWMMClWGxzJBZn0uw3ghHTnEYHZ3E2/NojwGayOZzRGJcJAO ViksIhP+uTXOlfCU8LpA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mLO6E-005SWc-00; Wed, 01 Sep 2021 11:08:10 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mLMoO-004z3j-QD; Wed, 01 Sep 2021 09:45:43 +0000 X-UUID: d8b129dfce0b4f4d918a084e28c1c931-20210901 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=ew555gf5jExHb5Vlc3ltqdvDC2/JOgxJvsZMzh/OBuI=; b=jGH0mGrNJWU1CTIx5Qc0crw921MwO2Oj/nOxn2C8tkMDFKVffbcDm1zxehInAWcC/JxOz3FBfUuVfHF9b1dAB6wi+Lprd4t5acmsJmlu2httSYsh/n4hnBz+JRaC3BPu5CRsgDxTI2gEHvJlN9Otze6vNWrGTVub0KTjS8lwvy4=; X-UUID: d8b129dfce0b4f4d918a084e28c1c931-20210901 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 820708984; Wed, 01 Sep 2021 02:45:37 -0700 Received: from mtkmbs07n1.mediatek.inc (172.21.101.16) by MTKMBS62N1.mediatek.inc (172.29.193.41) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 1 Sep 2021 02:35:35 -0700 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 1 Sep 2021 17:35:33 +0800 Received: from [10.17.3.153] (10.17.3.153) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 1 Sep 2021 17:35:33 +0800 Message-ID: <1630488932.11251.8.camel@mhfsdcap03> Subject: Re: [PATCH v6 7/7] i2c: mediatek: modify bus speed calculation formula From: Qii Wang To: Kewei Xu CC: , , , , , , , , , , , , , Date: Wed, 1 Sep 2021 17:35:32 +0800 In-Reply-To: <1630147859-17031-8-git-send-email-kewei.xu@mediatek.com> References: <1630147859-17031-1-git-send-email-kewei.xu@mediatek.com> <1630147859-17031-8-git-send-email-kewei.xu@mediatek.com> X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210901_024540_917367_EB37BA7D X-CRM114-Status: GOOD ( 10.77 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sat, 2021-08-28 at 18:50 +0800, Kewei Xu wrote: > When clock-div is 0 or greater than 1, the bus speed > calculated by the old speed calculation formula will be > larger than the target speed. So we update the formula. > > Signed-off-by: Kewei Xu > --- > drivers/i2c/busses/i2c-mt65xx.c | 35 +++++++++++++++++++++++++---------- > 1 file changed, 25 insertions(+), 10 deletions(-) > Reviewed-by: Qii Wang _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel