mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1 1/1] i2c: nomadik: Use generic definitions for bus frequencies
@ 2026-06-18 14:17 Andy Shevchenko
  2026-06-18 19:48 ` Linus Walleij
  2026-06-23 15:10 ` Andi Shyti
  0 siblings, 2 replies; 3+ messages in thread
From: Andy Shevchenko @ 2026-06-18 14:17 UTC (permalink / raw)
  To: Andy Shevchenko, linux-arm-kernel, linux-i2c, linux-kernel
  Cc: Linus Walleij, Andi Shyti

Since we have generic definitions for bus frequencies, let's use them.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/i2c/busses/i2c-nomadik.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/i2c/busses/i2c-nomadik.c b/drivers/i2c/busses/i2c-nomadik.c
index b63ee51c1652..404709179d73 100644
--- a/drivers/i2c/busses/i2c-nomadik.c
+++ b/drivers/i2c/busses/i2c-nomadik.c
@@ -1050,9 +1050,9 @@ static int nmk_i2c_eyeq5_probe(struct nmk_i2c_dev *priv)
 	if (id >= ARRAY_SIZE(nmk_i2c_eyeq5_masks))
 		return -ENOENT;
 
-	if (priv->clk_freq <= 400000)
+	if (priv->clk_freq <= I2C_MAX_FAST_MODE_FREQ)
 		speed_mode = I2C_EYEQ5_SPEED_FAST;
-	else if (priv->clk_freq <= 1000000)
+	else if (priv->clk_freq <= I2C_MAX_FAST_MODE_PLUS_FREQ)
 		speed_mode = I2C_EYEQ5_SPEED_FAST_PLUS;
 	else
 		speed_mode = I2C_EYEQ5_SPEED_HIGH_SPEED;
-- 
2.50.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v1 1/1] i2c: nomadik: Use generic definitions for bus frequencies
  2026-06-18 14:17 [PATCH v1 1/1] i2c: nomadik: Use generic definitions for bus frequencies Andy Shevchenko
@ 2026-06-18 19:48 ` Linus Walleij
  2026-06-23 15:10 ` Andi Shyti
  1 sibling, 0 replies; 3+ messages in thread
From: Linus Walleij @ 2026-06-18 19:48 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: linux-arm-kernel, linux-i2c, linux-kernel, Andi Shyti

On Thu, Jun 18, 2026 at 4:17 PM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:

> Since we have generic definitions for bus frequencies, let's use them.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Oh, neat.
Reviewed-by: Linus Walleij <linusw@kernel.org>

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v1 1/1] i2c: nomadik: Use generic definitions for bus frequencies
  2026-06-18 14:17 [PATCH v1 1/1] i2c: nomadik: Use generic definitions for bus frequencies Andy Shevchenko
  2026-06-18 19:48 ` Linus Walleij
@ 2026-06-23 15:10 ` Andi Shyti
  1 sibling, 0 replies; 3+ messages in thread
From: Andi Shyti @ 2026-06-23 15:10 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: linux-arm-kernel, linux-i2c, linux-kernel, Linus Walleij

Hi Andy,

On Thu, Jun 18, 2026 at 04:17:30PM +0200, Andy Shevchenko wrote:
> Since we have generic definitions for bus frequencies, let's use them.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

I merged all this seriesin i2c/i2c.

Thanks,
Andi

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-06-23 15:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-18 14:17 [PATCH v1 1/1] i2c: nomadik: Use generic definitions for bus frequencies Andy Shevchenko
2026-06-18 19:48 ` Linus Walleij
2026-06-23 15:10 ` Andi Shyti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome