Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1290899rda; Mon, 23 Oct 2023 08:12:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGuviw3WygIQIC1ILSNl7kB5FKv/Tkm4ziSiz572J3iEJJZlbtrx6KaFHYbzMzpl9A/2RCF X-Received: by 2002:a17:90a:d44e:b0:27d:9b5:f28d with SMTP id cz14-20020a17090ad44e00b0027d09b5f28dmr6646311pjb.8.1698073972247; Mon, 23 Oct 2023 08:12:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698073972; cv=none; d=google.com; s=arc-20160816; b=OvG/JQvhziqnDGUZe8HtSCNqt2yIC02NrLQb8uodE4jD5IoqugFboH/MziSSnBAjIr Exp4ktS8Jr9htpJdL5ntiNU9brsob1oHSDveJZv49odnc4nwQpIZ0veFPohUjMV07aGa HTvsTylyu2eLEilB3TilVIJI5kLvpC1HbI+zA0xMzlhcfUmGGu4XRD/OR7YjFR+PzJGq Sd2KU3UsRu7XMLxRsW7+p5UXB9RtzZtpboPXxZ7HxunU+WRFO/g7jx3WxhVrRakmmvkU bhmxiSSew1ZVuMMtU7xBnztwl6Irwga3xGuyed03x1ap5FKHECGEQirB3ni6eZHJ1/By jLqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=jNfUnbPrSgPVeO3FqDIYV+ftQuwHkc+HcuwvRGIfkJU=; fh=YEzsU+209WAE92AJOowt4hibowcaVNbTjsak2OE3qJo=; b=EMX15gqLvadPyP0baQ97KwxzKPtGD3/QZD7idUMoU2R2Ewnq9d+D+dUz9NJgg9qyy0 s2xtKmqXjL64GNXgGTCRRoFavHW+YCU8ePlcPfzeLA3Jv+yrdXdptUbcZEHjfvadQ7rs 7vWkEf3tIrMM6NX4bXMXAj53HfjVgCKkKlo9mf6XFskcYA9WmnIj6AxVGX2TOwXjaSm0 Ux7ZTwFRxQR9xdVi2JGQJr45zlTOwFc4TVkXSavPH89H2PS0g5rXbDrDxX0v0PcMVp+O T+SesvuSeTx/grpxu4M7ZlrGv7TOQcpIHvrsVxJmxkSx/pYerdN6yiD9DnHWciJYTh5S 7FQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MdGy3kRY; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id nu8-20020a17090b1b0800b0027762d380f7si9613868pjb.8.2023.10.23.08.12.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 08:12:52 -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=@kernel.org header.s=k20201202 header.b=MdGy3kRY; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 1F9DC80A22F8; Mon, 23 Oct 2023 08:12:50 -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 S231449AbjJWPMr (ORCPT + 99 others); Mon, 23 Oct 2023 11:12:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbjJWPMq (ORCPT ); Mon, 23 Oct 2023 11:12:46 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B99290; Mon, 23 Oct 2023 08:12:44 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7819C433C8; Mon, 23 Oct 2023 15:12:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698073964; bh=J9r7nlhJFffvRTO0VNXoLKm58fWmXlezqgcthHqa3e0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MdGy3kRYTvrPOsVt3U6yr74m85OydntGKdh7nkzwduKWQ0xLqzEd4m4bHv9QwYYxk Q7e3qLQMLo9O75vuto8tlDZl1Rq0t0gvXPip7obGF5r9/Sg8VCNYJcnm73sYhskdQa tc2ZJKxZcw5RI0KvuOx77VQJtDnJBU6Pig/e6xMsxzvnAYpMejAnhyNYksNpxpKeop BoLvDwJo9nEx47/Ue+t6Y+pl3QtJs9rx8n7a9PBsqyOi3WRm8rwaKovbSw3zMsmrea d6G04BL/zFlz6fd7QcG2bHgPsHMNx7WC+4ta58zZhQQLt8tGuzjtp8p0ymqSR0wW5P oWwuP4uUpAS3g== Date: Mon, 23 Oct 2023 17:12:40 +0200 From: Wolfram Sang To: Camel Guo Cc: Krzysztof Kozlowski , Alim Akhtar , linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@axis.com Subject: Re: [PATCH] i2c: exynos5: Calculate t_scl_l, t_scl_h according to i2c spec Message-ID: Mail-Followup-To: Wolfram Sang , Camel Guo , Krzysztof Kozlowski , Alim Akhtar , linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@axis.com References: <20220912085943.1098651-1-camel.guo@axis.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="NHBuWLbeQWJ0REJ9" Content-Disposition: inline In-Reply-To: <20220912085943.1098651-1-camel.guo@axis.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 23 Oct 2023 08:12:50 -0700 (PDT) --NHBuWLbeQWJ0REJ9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 12, 2022 at 10:59:43AM +0200, Camel Guo wrote: > Previously the duty cycle was divided equally into h_scl_l, t_scl_h. > This makes the low period of the SCL clock in Fast Mode is only 1.25us > which is way lower than the minimal value (1.3) specified in i2c > specification. In order to make sure t_scl_l, t_scl_h always fullfill > i2c specification, this commit calculates t_scl_l using this formula: >=20 > t_scl_l =3D clk_cycle * > ((t_low_min + (scl_clock - t_low_min - t_high_min) / 2) / scl_clock) >=20 > where: > t_low_min is the minimal value of low period of the SCL clock in us; > t_high_min is the minimal value of high period of the SCL clock in us; > scl_clock is converted from SCL clock frequency into us. >=20 > Signed-off-by: Camel Guo Applied to for-next, thanks! --NHBuWLbeQWJ0REJ9 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmU2jWgACgkQFA3kzBSg KbaidQ/+Kzl5eb4XcCOXgAi1kIsBaqIK0qMCqygYCEr0/uQi7gVIcTemI0AM86uu M1M6UwxYcVGms/5kUHiEsCBjHgDVkistUr49W1Dur4zVvHj/aPwDoDgyXwpCGL08 0H7L/aJilgj86wGiDASH8/ZLaYrkV8HKWae+ocXVJDLTOrgWlVyjLnklZpK2e0WL OCuKjD758ebaTNITimU0BaMZRS08NBXsxlunQN0IaIYdrqa48mSyHb7/EVhcKnp/ AxjWzxmJxtDakVKPCFNHjLFoeUp2NplMZ/pORRR6k6n/rfa9FWTFFxnuO7TTEDv6 lhnKqszlYAjFxyToF5prTQMfzKPqJcCVvEnskZjMdIB2/kZyvsW2v3clfx4R0RHQ cBdYtEbVeATLDMdAQ3ynh8guAW37/jUF/CnKFOIeuzeMwX3y/bZrDjEwnOmVkyeQ mli3gsQoZHAaYXYJcKmYE3/mI2gCoIOiscZfPcDbPSOzLzYV19LgZOcYfS7m2+xl qsJQgAkRVgVFFzlFS78F2iGBTEJ2tH3gInxhP9e+uFgOv6jGkMuPWg71aHcI2Eqp bLo7xevHVbVu8horeHE9L1UQ1QoxndkuWnPiDPdwaupyU9kD+Ex9u9+SaNfZN/9B GiC1taDV6hQTabImUOU9x4rME4noqFUM7pPA/LRwGj7RFwC+NiM= =0Pt+ -----END PGP SIGNATURE----- --NHBuWLbeQWJ0REJ9--