[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200426075425.GE1262@kunai>
Date: Sun, 26 Apr 2020 09:54:25 +0200
From: Wolfram Sang <wsa@...-dreams.de>
To: Alain Volmat <alain.volmat@...com>
Cc: robh+dt@...nel.org, mark.rutland@....com,
pierre-yves.mordret@...com, mcoquelin.stm32@...il.com,
alexandre.torgue@...com, linux-i2c@...r.kernel.org,
devicetree@...r.kernel.org,
linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
fabrice.gasnier@...com
Subject: Re: [PATCH v3 2/2] i2c: i2c-stm32f7: allows for any bus frequency
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.
>
> Hardcoding of min/max bus frequencies is removed and is instead computed.
>
> 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.
>
> Signed-off-by: Alain Volmat <alain.volmat@...com>
> Reviewed-by: Pierre-Yves MORDRET <pierre-yves.mordret@...com>
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!
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists