linux-renesas-soc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] clk: vc5: Fix .driver_data content in i2c_device_id
@ 2023-05-07 13:39 Marek Vasut
  2023-05-07 13:39 ` [PATCH 2/3] clk: vc7: " Marek Vasut
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Marek Vasut @ 2023-05-07 13:39 UTC (permalink / raw)
  To: linux-clk
  Cc: Marek Vasut, Alex Helms, Geert Uytterhoeven, Luca Ceresoli,
	Magnus Damm, Michael Turquette, Nathan Chancellor,
	Nick Desaulniers, Stephen Boyd, Tom Rix, linux-renesas-soc

The .driver_data content in i2c_device_id table must match the
.data content in of_device_id table, else device_get_match_data()
would return bogus value on i2c_device_id match. Align the two
tables.

The i2c_device_id table is now converted from of_device_id using
's@.compatible = "idt,\([^"]\+"\), .data = \(.*\)@"\1, .driver_data = (kernel_ulong_t)\2@'

Fixes: 9adddb01ce5f ("clk: vc5: Add structure to describe particular chip features")
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
---
Cc: Alex Helms <alexander.helms.jy@renesas.com>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Luca Ceresoli <luca.ceresoli@bootlin.com>
Cc: Magnus Damm <magnus.damm@gmail.com>
Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Tom Rix <trix@redhat.com>
Cc: linux-clk@vger.kernel.org
Cc: linux-renesas-soc@vger.kernel.org
---
 drivers/clk/clk-versaclock5.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/drivers/clk/clk-versaclock5.c b/drivers/clk/clk-versaclock5.c
index fa71a57875ce..5452471b7ba5 100644
--- a/drivers/clk/clk-versaclock5.c
+++ b/drivers/clk/clk-versaclock5.c
@@ -1271,14 +1271,14 @@ static const struct vc5_chip_info idt_5p49v6975_info = {
 };
 
 static const struct i2c_device_id vc5_id[] = {
-	{ "5p49v5923", .driver_data = IDT_VC5_5P49V5923 },
-	{ "5p49v5925", .driver_data = IDT_VC5_5P49V5925 },
-	{ "5p49v5933", .driver_data = IDT_VC5_5P49V5933 },
-	{ "5p49v5935", .driver_data = IDT_VC5_5P49V5935 },
-	{ "5p49v60", .driver_data = IDT_VC6_5P49V60 },
-	{ "5p49v6901", .driver_data = IDT_VC6_5P49V6901 },
-	{ "5p49v6965", .driver_data = IDT_VC6_5P49V6965 },
-	{ "5p49v6975", .driver_data = IDT_VC6_5P49V6975 },
+	{ "5p49v5923", .driver_data = (kernel_ulong_t)&idt_5p49v5923_info },
+	{ "5p49v5925", .driver_data = (kernel_ulong_t)&idt_5p49v5925_info },
+	{ "5p49v5933", .driver_data = (kernel_ulong_t)&idt_5p49v5933_info },
+	{ "5p49v5935", .driver_data = (kernel_ulong_t)&idt_5p49v5935_info },
+	{ "5p49v60", .driver_data = (kernel_ulong_t)&idt_5p49v60_info },
+	{ "5p49v6901", .driver_data = (kernel_ulong_t)&idt_5p49v6901_info },
+	{ "5p49v6965", .driver_data = (kernel_ulong_t)&idt_5p49v6965_info },
+	{ "5p49v6975", .driver_data = (kernel_ulong_t)&idt_5p49v6975_info },
 	{ }
 };
 MODULE_DEVICE_TABLE(i2c, vc5_id);
-- 
2.39.2


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

* [PATCH 2/3] clk: vc7: Fix .driver_data content in i2c_device_id
  2023-05-07 13:39 [PATCH 1/3] clk: vc5: Fix .driver_data content in i2c_device_id Marek Vasut
@ 2023-05-07 13:39 ` Marek Vasut
  2023-05-08 13:05   ` Geert Uytterhoeven
  2023-05-10 21:27   ` Stephen Boyd
  2023-05-07 13:39 ` [PATCH 3/3] clk: rs9: " Marek Vasut
                   ` (3 subsequent siblings)
  4 siblings, 2 replies; 10+ messages in thread
From: Marek Vasut @ 2023-05-07 13:39 UTC (permalink / raw)
  To: linux-clk
  Cc: Marek Vasut, Alex Helms, Geert Uytterhoeven, Luca Ceresoli,
	Magnus Damm, Michael Turquette, Nathan Chancellor,
	Nick Desaulniers, Stephen Boyd, Tom Rix, linux-renesas-soc

The .driver_data content in i2c_device_id table must match the
.data content in of_device_id table, else device_get_match_data()
would return bogus value on i2c_device_id match. Align the two
tables.

The i2c_device_id table is now converted from of_device_id using
's@.compatible = "renesas,\([^"]\+"\), .data = \(.*\)@"\1, .driver_data = (kernel_ulong_t)\2@'

Fixes: 48c5e98fedd9 ("clk: Renesas versaclock7 ccf device driver")
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
---
Cc: Alex Helms <alexander.helms.jy@renesas.com>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Luca Ceresoli <luca.ceresoli@bootlin.com>
Cc: Magnus Damm <magnus.damm@gmail.com>
Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Tom Rix <trix@redhat.com>
Cc: linux-clk@vger.kernel.org
Cc: linux-renesas-soc@vger.kernel.org
---
 drivers/clk/clk-versaclock7.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/clk-versaclock7.c b/drivers/clk/clk-versaclock7.c
index 8e4f86e852aa..0ae191f50b4b 100644
--- a/drivers/clk/clk-versaclock7.c
+++ b/drivers/clk/clk-versaclock7.c
@@ -1282,7 +1282,7 @@ static const struct regmap_config vc7_regmap_config = {
 };
 
 static const struct i2c_device_id vc7_i2c_id[] = {
-	{ "rc21008a", VC7_RC21008A },
+	{ "rc21008a", .driver_data = (kernel_ulong_t)&vc7_rc21008a_info },
 	{}
 };
 MODULE_DEVICE_TABLE(i2c, vc7_i2c_id);
-- 
2.39.2


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

* [PATCH 3/3] clk: rs9: Fix .driver_data content in i2c_device_id
  2023-05-07 13:39 [PATCH 1/3] clk: vc5: Fix .driver_data content in i2c_device_id Marek Vasut
  2023-05-07 13:39 ` [PATCH 2/3] clk: vc7: " Marek Vasut
@ 2023-05-07 13:39 ` Marek Vasut
  2023-05-08 13:05   ` Geert Uytterhoeven
  2023-05-10 21:27   ` Stephen Boyd
  2023-05-08 12:39 ` [PATCH 1/3] clk: vc5: " Luca Ceresoli
                   ` (2 subsequent siblings)
  4 siblings, 2 replies; 10+ messages in thread
From: Marek Vasut @ 2023-05-07 13:39 UTC (permalink / raw)
  To: linux-clk
  Cc: Marek Vasut, Alex Helms, Geert Uytterhoeven, Luca Ceresoli,
	Magnus Damm, Michael Turquette, Nathan Chancellor,
	Nick Desaulniers, Stephen Boyd, Tom Rix, linux-renesas-soc

The .driver_data content in i2c_device_id table must match the
.data content in of_device_id table, else device_get_match_data()
would return bogus value on i2c_device_id match. Align the two
tables.

The i2c_device_id table is now converted from of_device_id using
's@.compatible = "renesas,\([^"]\+"\), .data = \(.*\)@"\1, .driver_data = (kernel_ulong_t)\2@'

Fixes: 892e0ddea1aa ("clk: rs9: Add Renesas 9-series PCIe clock generator driver")
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
---
Cc: Alex Helms <alexander.helms.jy@renesas.com>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Luca Ceresoli <luca.ceresoli@bootlin.com>
Cc: Magnus Damm <magnus.damm@gmail.com>
Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Tom Rix <trix@redhat.com>
Cc: linux-clk@vger.kernel.org
Cc: linux-renesas-soc@vger.kernel.org
---
 drivers/clk/clk-renesas-pcie.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/clk/clk-renesas-pcie.c b/drivers/clk/clk-renesas-pcie.c
index 10d31c222a1c..6060cafe1aa2 100644
--- a/drivers/clk/clk-renesas-pcie.c
+++ b/drivers/clk/clk-renesas-pcie.c
@@ -392,8 +392,8 @@ static const struct rs9_chip_info renesas_9fgv0441_info = {
 };
 
 static const struct i2c_device_id rs9_id[] = {
-	{ "9fgv0241", .driver_data = RENESAS_9FGV0241 },
-	{ "9fgv0441", .driver_data = RENESAS_9FGV0441 },
+	{ "9fgv0241", .driver_data = (kernel_ulong_t)&renesas_9fgv0241_info },
+	{ "9fgv0441", .driver_data = (kernel_ulong_t)&renesas_9fgv0441_info },
 	{ }
 };
 MODULE_DEVICE_TABLE(i2c, rs9_id);
-- 
2.39.2


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

* Re: [PATCH 1/3] clk: vc5: Fix .driver_data content in i2c_device_id
  2023-05-07 13:39 [PATCH 1/3] clk: vc5: Fix .driver_data content in i2c_device_id Marek Vasut
  2023-05-07 13:39 ` [PATCH 2/3] clk: vc7: " Marek Vasut
  2023-05-07 13:39 ` [PATCH 3/3] clk: rs9: " Marek Vasut
@ 2023-05-08 12:39 ` Luca Ceresoli
  2023-05-08 13:01 ` Geert Uytterhoeven
  2023-05-10 21:27 ` Stephen Boyd
  4 siblings, 0 replies; 10+ messages in thread
From: Luca Ceresoli @ 2023-05-08 12:39 UTC (permalink / raw)
  To: Marek Vasut
  Cc: linux-clk, Alex Helms, Geert Uytterhoeven, Magnus Damm,
	Michael Turquette, Nathan Chancellor, Nick Desaulniers,
	Stephen Boyd, Tom Rix, linux-renesas-soc

Hi Marek,

On Sun,  7 May 2023 15:39:04 +0200
Marek Vasut <marek.vasut+renesas@mailbox.org> wrote:

> The .driver_data content in i2c_device_id table must match the
> .data content in of_device_id table, else device_get_match_data()
> would return bogus value on i2c_device_id match. Align the two
> tables.
> 
> The i2c_device_id table is now converted from of_device_id using
> 's@.compatible = "idt,\([^"]\+"\), .data = \(.*\)@"\1, .driver_data = (kernel_ulong_t)\2@'
> 
> Fixes: 9adddb01ce5f ("clk: vc5: Add structure to describe particular chip features")
> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
> ---
> Cc: Alex Helms <alexander.helms.jy@renesas.com>
> Cc: Geert Uytterhoeven <geert+renesas@glider.be>
> Cc: Luca Ceresoli <luca.ceresoli@bootlin.com>
> Cc: Magnus Damm <magnus.damm@gmail.com>
> Cc: Michael Turquette <mturquette@baylibre.com>
> Cc: Nathan Chancellor <nathan@kernel.org>
> Cc: Nick Desaulniers <ndesaulniers@google.com>
> Cc: Stephen Boyd <sboyd@kernel.org>
> Cc: Tom Rix <trix@redhat.com>
> Cc: linux-clk@vger.kernel.org
> Cc: linux-renesas-soc@vger.kernel.org
> ---
>  drivers/clk/clk-versaclock5.c | 16 ++++++++--------
>  1 file changed, 8 insertions(+), 8 deletions(-)
> 
> diff --git a/drivers/clk/clk-versaclock5.c b/drivers/clk/clk-versaclock5.c
> index fa71a57875ce..5452471b7ba5 100644
> --- a/drivers/clk/clk-versaclock5.c
> +++ b/drivers/clk/clk-versaclock5.c
> @@ -1271,14 +1271,14 @@ static const struct vc5_chip_info idt_5p49v6975_info = {
>  };
>  
>  static const struct i2c_device_id vc5_id[] = {
> -	{ "5p49v5923", .driver_data = IDT_VC5_5P49V5923 },
> -	{ "5p49v5925", .driver_data = IDT_VC5_5P49V5925 },
> -	{ "5p49v5933", .driver_data = IDT_VC5_5P49V5933 },
> -	{ "5p49v5935", .driver_data = IDT_VC5_5P49V5935 },
> -	{ "5p49v60", .driver_data = IDT_VC6_5P49V60 },
> -	{ "5p49v6901", .driver_data = IDT_VC6_5P49V6901 },
> -	{ "5p49v6965", .driver_data = IDT_VC6_5P49V6965 },
> -	{ "5p49v6975", .driver_data = IDT_VC6_5P49V6975 },
> +	{ "5p49v5923", .driver_data = (kernel_ulong_t)&idt_5p49v5923_info },
> +	{ "5p49v5925", .driver_data = (kernel_ulong_t)&idt_5p49v5925_info },
> +	{ "5p49v5933", .driver_data = (kernel_ulong_t)&idt_5p49v5933_info },
> +	{ "5p49v5935", .driver_data = (kernel_ulong_t)&idt_5p49v5935_info },
> +	{ "5p49v60", .driver_data = (kernel_ulong_t)&idt_5p49v60_info },
> +	{ "5p49v6901", .driver_data = (kernel_ulong_t)&idt_5p49v6901_info },
> +	{ "5p49v6965", .driver_data = (kernel_ulong_t)&idt_5p49v6965_info },
> +	{ "5p49v6975", .driver_data = (kernel_ulong_t)&idt_5p49v6975_info },

Apparently nobody even used i2c device ids, otherwise this would have
gone loudly bad!

Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>

-- 
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

* Re: [PATCH 1/3] clk: vc5: Fix .driver_data content in i2c_device_id
  2023-05-07 13:39 [PATCH 1/3] clk: vc5: Fix .driver_data content in i2c_device_id Marek Vasut
                   ` (2 preceding siblings ...)
  2023-05-08 12:39 ` [PATCH 1/3] clk: vc5: " Luca Ceresoli
@ 2023-05-08 13:01 ` Geert Uytterhoeven
  2023-05-10 21:27 ` Stephen Boyd
  4 siblings, 0 replies; 10+ messages in thread
From: Geert Uytterhoeven @ 2023-05-08 13:01 UTC (permalink / raw)
  To: Marek Vasut
  Cc: linux-clk, Alex Helms, Luca Ceresoli, Magnus Damm,
	Michael Turquette, Nathan Chancellor, Nick Desaulniers,
	Stephen Boyd, Tom Rix, linux-renesas-soc

On Sun, May 7, 2023 at 3:39 PM Marek Vasut
<marek.vasut+renesas@mailbox.org> wrote:
> The .driver_data content in i2c_device_id table must match the
> .data content in of_device_id table, else device_get_match_data()
> would return bogus value on i2c_device_id match. Align the two
> tables.
>
> The i2c_device_id table is now converted from of_device_id using
> 's@.compatible = "idt,\([^"]\+"\), .data = \(.*\)@"\1, .driver_data = (kernel_ulong_t)\2@'
>
> Fixes: 9adddb01ce5f ("clk: vc5: Add structure to describe particular chip features")
> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH 2/3] clk: vc7: Fix .driver_data content in i2c_device_id
  2023-05-07 13:39 ` [PATCH 2/3] clk: vc7: " Marek Vasut
@ 2023-05-08 13:05   ` Geert Uytterhoeven
  2023-05-10 21:27   ` Stephen Boyd
  1 sibling, 0 replies; 10+ messages in thread
From: Geert Uytterhoeven @ 2023-05-08 13:05 UTC (permalink / raw)
  To: Marek Vasut
  Cc: linux-clk, Alex Helms, Luca Ceresoli, Magnus Damm,
	Michael Turquette, Nathan Chancellor, Nick Desaulniers,
	Stephen Boyd, Tom Rix, linux-renesas-soc

On Sun, May 7, 2023 at 3:39 PM Marek Vasut
<marek.vasut+renesas@mailbox.org> wrote:
> The .driver_data content in i2c_device_id table must match the
> .data content in of_device_id table, else device_get_match_data()
> would return bogus value on i2c_device_id match. Align the two
> tables.
>
> The i2c_device_id table is now converted from of_device_id using
> 's@.compatible = "renesas,\([^"]\+"\), .data = \(.*\)@"\1, .driver_data = (kernel_ulong_t)\2@'
>
> Fixes: 48c5e98fedd9 ("clk: Renesas versaclock7 ccf device driver")
> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH 3/3] clk: rs9: Fix .driver_data content in i2c_device_id
  2023-05-07 13:39 ` [PATCH 3/3] clk: rs9: " Marek Vasut
@ 2023-05-08 13:05   ` Geert Uytterhoeven
  2023-05-10 21:27   ` Stephen Boyd
  1 sibling, 0 replies; 10+ messages in thread
From: Geert Uytterhoeven @ 2023-05-08 13:05 UTC (permalink / raw)
  To: Marek Vasut
  Cc: linux-clk, Alex Helms, Luca Ceresoli, Magnus Damm,
	Michael Turquette, Nathan Chancellor, Nick Desaulniers,
	Stephen Boyd, Tom Rix, linux-renesas-soc

On Sun, May 7, 2023 at 3:39 PM Marek Vasut
<marek.vasut+renesas@mailbox.org> wrote:
> The .driver_data content in i2c_device_id table must match the
> .data content in of_device_id table, else device_get_match_data()
> would return bogus value on i2c_device_id match. Align the two
> tables.
>
> The i2c_device_id table is now converted from of_device_id using
> 's@.compatible = "renesas,\([^"]\+"\), .data = \(.*\)@"\1, .driver_data = (kernel_ulong_t)\2@'
>
> Fixes: 892e0ddea1aa ("clk: rs9: Add Renesas 9-series PCIe clock generator driver")
> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH 1/3] clk: vc5: Fix .driver_data content in i2c_device_id
  2023-05-07 13:39 [PATCH 1/3] clk: vc5: Fix .driver_data content in i2c_device_id Marek Vasut
                   ` (3 preceding siblings ...)
  2023-05-08 13:01 ` Geert Uytterhoeven
@ 2023-05-10 21:27 ` Stephen Boyd
  4 siblings, 0 replies; 10+ messages in thread
From: Stephen Boyd @ 2023-05-10 21:27 UTC (permalink / raw)
  To: Marek Vasut, linux-clk
  Cc: Marek Vasut, Alex Helms, Geert Uytterhoeven, Luca Ceresoli,
	Magnus Damm, Michael Turquette, Nathan Chancellor,
	Nick Desaulniers, Tom Rix, linux-renesas-soc

Quoting Marek Vasut (2023-05-07 06:39:04)
> The .driver_data content in i2c_device_id table must match the
> .data content in of_device_id table, else device_get_match_data()
> would return bogus value on i2c_device_id match. Align the two
> tables.
> 
> The i2c_device_id table is now converted from of_device_id using
> 's@.compatible = "idt,\([^"]\+"\), .data = \(.*\)@"\1, .driver_data = (kernel_ulong_t)\2@'
> 
> Fixes: 9adddb01ce5f ("clk: vc5: Add structure to describe particular chip features")
> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
> ---

Applied to clk-next

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

* Re: [PATCH 2/3] clk: vc7: Fix .driver_data content in i2c_device_id
  2023-05-07 13:39 ` [PATCH 2/3] clk: vc7: " Marek Vasut
  2023-05-08 13:05   ` Geert Uytterhoeven
@ 2023-05-10 21:27   ` Stephen Boyd
  1 sibling, 0 replies; 10+ messages in thread
From: Stephen Boyd @ 2023-05-10 21:27 UTC (permalink / raw)
  To: Marek Vasut, linux-clk
  Cc: Marek Vasut, Alex Helms, Geert Uytterhoeven, Luca Ceresoli,
	Magnus Damm, Michael Turquette, Nathan Chancellor,
	Nick Desaulniers, Tom Rix, linux-renesas-soc

Quoting Marek Vasut (2023-05-07 06:39:05)
> The .driver_data content in i2c_device_id table must match the
> .data content in of_device_id table, else device_get_match_data()
> would return bogus value on i2c_device_id match. Align the two
> tables.
> 
> The i2c_device_id table is now converted from of_device_id using
> 's@.compatible = "renesas,\([^"]\+"\), .data = \(.*\)@"\1, .driver_data = (kernel_ulong_t)\2@'
> 
> Fixes: 48c5e98fedd9 ("clk: Renesas versaclock7 ccf device driver")
> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
> ---

Applied to clk-next

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

* Re: [PATCH 3/3] clk: rs9: Fix .driver_data content in i2c_device_id
  2023-05-07 13:39 ` [PATCH 3/3] clk: rs9: " Marek Vasut
  2023-05-08 13:05   ` Geert Uytterhoeven
@ 2023-05-10 21:27   ` Stephen Boyd
  1 sibling, 0 replies; 10+ messages in thread
From: Stephen Boyd @ 2023-05-10 21:27 UTC (permalink / raw)
  To: Marek Vasut, linux-clk
  Cc: Marek Vasut, Alex Helms, Geert Uytterhoeven, Luca Ceresoli,
	Magnus Damm, Michael Turquette, Nathan Chancellor,
	Nick Desaulniers, Tom Rix, linux-renesas-soc

Quoting Marek Vasut (2023-05-07 06:39:06)
> The .driver_data content in i2c_device_id table must match the
> .data content in of_device_id table, else device_get_match_data()
> would return bogus value on i2c_device_id match. Align the two
> tables.
> 
> The i2c_device_id table is now converted from of_device_id using
> 's@.compatible = "renesas,\([^"]\+"\), .data = \(.*\)@"\1, .driver_data = (kernel_ulong_t)\2@'
> 
> Fixes: 892e0ddea1aa ("clk: rs9: Add Renesas 9-series PCIe clock generator driver")
> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
> ---

Applied to clk-next

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

end of thread, other threads:[~2023-05-10 21:28 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-07 13:39 [PATCH 1/3] clk: vc5: Fix .driver_data content in i2c_device_id Marek Vasut
2023-05-07 13:39 ` [PATCH 2/3] clk: vc7: " Marek Vasut
2023-05-08 13:05   ` Geert Uytterhoeven
2023-05-10 21:27   ` Stephen Boyd
2023-05-07 13:39 ` [PATCH 3/3] clk: rs9: " Marek Vasut
2023-05-08 13:05   ` Geert Uytterhoeven
2023-05-10 21:27   ` Stephen Boyd
2023-05-08 12:39 ` [PATCH 1/3] clk: vc5: " Luca Ceresoli
2023-05-08 13:01 ` Geert Uytterhoeven
2023-05-10 21:27 ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).