Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1642665ybz; Sun, 26 Apr 2020 00:58:48 -0700 (PDT) X-Google-Smtp-Source: APiQypJWvNEm2tXil1stm/kmeiQaBoL/g8Q1GA01JHs7kSfAVX3zW+GlKBHsQ1YjK3eJfVpFpX49 X-Received: by 2002:aa7:dacc:: with SMTP id x12mr14149285eds.363.1587887928567; Sun, 26 Apr 2020 00:58:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587887928; cv=none; d=google.com; s=arc-20160816; b=dMrO9gNA2AVbSaxd+2xm9EHGdhIe8DlQniRoas/aVrn1zt63ngu94xJVt3WeC3/SrV vCI18nZxuAm1zqPsD/HcNS6PgIEPW4rMpohjh+OGxbjkuSvY+4Svl5o07yHUYRTtahrH 0gRj8gCcrN038ePQ2G8NH30GHspA3MvHv9Zy/cu5oH39T6RM6ySjXsF6ec2L6VCj7Go9 AFdyDWzVMAN9MmPtqj0Adc94/MqhU8dhJ2cMGf4cpAy89insMbIfS8prGRyUFwfzm9RZ S81mnlAb3+ZpK+snL1kq37CSbA4P4h0ljMphWuhEpIo/4/Z1uRBfaaQ3s6Dwh+1SPPzE KPHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=9QHfcIGsow9CVDxj3FS9BRLfq8cuGB/iSWvK4DEFoG0=; b=I6DBEStFEuWWceJWj3DLAJcB9N+lcyYPr/P+HKJfEVX5A0mnloSmB9Rl2pFt9z5RYh STiFmqUcVTs9OsqwRwfERtmGxAqRDw2qMUxRfFL2/Dxmd49yvu/guj8GfG/CvYbwaFYQ pVNsZ8W9j8YWJT1MC9KdvSwMDoyrVNFwvy9qQdfrWKYgeEsSk67N5qUS4wMS3fR5G7b/ UurRK0I+V0sA6kNsUSl1BD6//zz0pa9/LV0Nc6nLU0JPPJpQF1GIzzYHSTCc4hRdQC51 pgpN/2iI+dVV7j3yAZsGBFCzngj/+1kdtzZR6aOtt75E59bQsIuhJnxgup8n9/QwvBPN u+1g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j2si6217268ejs.138.2020.04.26.00.58.25; Sun, 26 Apr 2020 00:58:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726151AbgDZHy2 (ORCPT + 99 others); Sun, 26 Apr 2020 03:54:28 -0400 Received: from sauhun.de ([88.99.104.3]:42964 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726113AbgDZHy1 (ORCPT ); Sun, 26 Apr 2020 03:54:27 -0400 Received: from localhost (p54B33954.dip0.t-ipconnect.de [84.179.57.84]) by pokefinder.org (Postfix) with ESMTPSA id DADC22C01E8; Sun, 26 Apr 2020 09:54:25 +0200 (CEST) Date: Sun, 26 Apr 2020 09:54:25 +0200 From: Wolfram Sang To: Alain Volmat Cc: robh+dt@kernel.org, mark.rutland@arm.com, pierre-yves.mordret@st.com, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, fabrice.gasnier@st.com Subject: Re: [PATCH v3 2/2] i2c: i2c-stm32f7: allows for any bus frequency Message-ID: <20200426075425.GE1262@kunai> References: <1587394677-6872-1-git-send-email-alain.volmat@st.com> <1587394677-6872-3-git-send-email-alain.volmat@st.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="G6nVm6DDWH/FONJq" Content-Disposition: inline In-Reply-To: <1587394677-6872-3-git-send-email-alain.volmat@st.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --G6nVm6DDWH/FONJq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 20, 2020 at 04:57:57PM +0200, Alain Volmat wrote: > Do not limitate to the 3 (100KHz, 400KHz, 1MHz) bus frequency but > instead allows any frequency (if it matches timing requirements). > Depending on the requested frequency, use the spec data from either > Standard, Fast or Fast Plus mode. >=20 > Hardcoding of min/max bus frequencies is removed and is instead computed. >=20 > The driver do not use anymore speed identifier but instead handle > directly the frequency and figure out the spec data (necessary > for the computation of the timing register) based on the frequency. >=20 > Signed-off-by: Alain Volmat > Reviewed-by: Pierre-Yves MORDRET Fixed this checkpatch CHECK: CHECK: Macro argument 'rate' may be better as '(rate)' to avoid precedence = issues #133: FILE: drivers/i2c/busses/i2c-stm32f7.c:413: +#define RATE_MIN(rate) (rate * 8 / 10) and applied to for-next. If you could drop the 'i2c-' prefix in $subject, that would save me one step. Thanks! --G6nVm6DDWH/FONJq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl6lPjEACgkQFA3kzBSg KbZ32A//bNuNc1m8uNO3qX4GtIk7gvqICXMOsqW1gDL2FW0PlxR1D4J0jiLwYQQw PJ+FnD0Enp0TP7IgQ43/gZiZVhqJ0+vnzOYejWHcWM6PXggKVEp2R6+3GxQqcmHt 55tl6t+qDHp4gcRNq0TAT025GnKF8DtiCx35bIVrb5i4mTE18ckk4B5VsrTrhuEk t6E8aLRADTKpcM3F2FD7jc9S2KXHScNQGYAiYSAQb8eBi1f2kloG5q36lua/MenA AF/BApIxIYcaKYicSxWsOG3ngQV5EUNUKCjlPAnIYJzjhgTjzjXsBLE/G6C0q/Gb QzUhobIeFEuVbFNduir0BSF+1Aj9SeIxx5Q83Kh8QgG4bDrpBOLhvkO/ZvXvF+II 9DNyPZSQdrWjB6PWsR0fiJVPtlHWCxnv0Oq0yl182gtNudyqAXMLKl3r0w6Dyyin 20Rl5Idx5NdcBY0iSuuk29XwNVb/7tO4fiTGsUvt6c/aXyCMsm+v7nTXGxoTpP63 /x3ViqpewKGWamsIrMNTYJtFPhLa0AWyl4DLalF6/3TaC3PCJupYXR30e6+CNahk EFE6tJabxRiQ+4KRosTnWNjgYvyylfO3zt/XnHV/pPDvDR8JBu9hr58UlLzGM3/b WnzyHk67GbcvggNGpi5qzZQd37P3qSppxpG6u9Jz6Uj4Tv0RWQg= =TPJd -----END PGP SIGNATURE----- --G6nVm6DDWH/FONJq--