All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] MIPS: pb44: Fix i2c-gpio GPIO descriptor table
@ 2018-05-26 17:12 Linus Walleij
  2018-05-31 23:27   ` Paul Burton
  2018-06-04 20:12 ` James Hogan
  0 siblings, 2 replies; 4+ messages in thread
From: Linus Walleij @ 2018-05-26 17:12 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: linux-mips, Linus Walleij, Wolfram Sang, Simon Guinot

I used bad names in my clumsiness when rewriting many board
files to use GPIO descriptors instead of platform data. A few
had the platform_device ID set to -1 which would indeed give
the device name "i2c-gpio".

But several had it set to >=0 which gives the names
"i2c-gpio.0", "i2c-gpio.1" ...

Fix the one affected board in the MIPS tree. Sorry.

Fixes: b2e63555592f ("i2c: gpio: Convert to use descriptors")
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Wolfram Sang <wsa@the-dreams.de>
Cc: Simon Guinot <simon.guinot@sequanux.org>
Reported-by: Simon Guinot <simon.guinot@sequanux.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
Ralf can you please apply this for MIPS fixes?
---
 arch/mips/ath79/mach-pb44.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/ath79/mach-pb44.c b/arch/mips/ath79/mach-pb44.c
index 6b2c6f3baefa..75fb96ca61db 100644
--- a/arch/mips/ath79/mach-pb44.c
+++ b/arch/mips/ath79/mach-pb44.c
@@ -34,7 +34,7 @@
 #define PB44_KEYS_DEBOUNCE_INTERVAL	(3 * PB44_KEYS_POLL_INTERVAL)
 
 static struct gpiod_lookup_table pb44_i2c_gpiod_table = {
-	.dev_id = "i2c-gpio",
+	.dev_id = "i2c-gpio.0",
 	.table = {
 		GPIO_LOOKUP_IDX("ath79-gpio", PB44_GPIO_I2C_SDA,
 				NULL, 0, GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN),
-- 
2.17.0

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

* Re: [PATCH] MIPS: pb44: Fix i2c-gpio GPIO descriptor table
@ 2018-05-31 23:27   ` Paul Burton
  0 siblings, 0 replies; 4+ messages in thread
From: Paul Burton @ 2018-05-31 23:27 UTC (permalink / raw)
  To: Linus Walleij; +Cc: Ralf Baechle, linux-mips, Wolfram Sang, Simon Guinot

Hi Linus,

On Sat, May 26, 2018 at 07:12:51PM +0200, Linus Walleij wrote:
> I used bad names in my clumsiness when rewriting many board
> files to use GPIO descriptors instead of platform data. A few
> had the platform_device ID set to -1 which would indeed give
> the device name "i2c-gpio".
> 
> But several had it set to >=0 which gives the names
> "i2c-gpio.0", "i2c-gpio.1" ...
> 
> Fix the one affected board in the MIPS tree. Sorry.

Reviewed-by: Paul Burton <paul.burton@mips.com>

Thanks,
    Paul

> Fixes: b2e63555592f ("i2c: gpio: Convert to use descriptors")
> Cc: Ralf Baechle <ralf@linux-mips.org>
> Cc: Wolfram Sang <wsa@the-dreams.de>
> Cc: Simon Guinot <simon.guinot@sequanux.org>
> Reported-by: Simon Guinot <simon.guinot@sequanux.org>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> Ralf can you please apply this for MIPS fixes?
> ---
>  arch/mips/ath79/mach-pb44.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/mips/ath79/mach-pb44.c b/arch/mips/ath79/mach-pb44.c
> index 6b2c6f3baefa..75fb96ca61db 100644
> --- a/arch/mips/ath79/mach-pb44.c
> +++ b/arch/mips/ath79/mach-pb44.c
> @@ -34,7 +34,7 @@
>  #define PB44_KEYS_DEBOUNCE_INTERVAL	(3 * PB44_KEYS_POLL_INTERVAL)
>  
>  static struct gpiod_lookup_table pb44_i2c_gpiod_table = {
> -	.dev_id = "i2c-gpio",
> +	.dev_id = "i2c-gpio.0",
>  	.table = {
>  		GPIO_LOOKUP_IDX("ath79-gpio", PB44_GPIO_I2C_SDA,
>  				NULL, 0, GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN),
> -- 
> 2.17.0
> 
> 

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

* Re: [PATCH] MIPS: pb44: Fix i2c-gpio GPIO descriptor table
@ 2018-05-31 23:27   ` Paul Burton
  0 siblings, 0 replies; 4+ messages in thread
From: Paul Burton @ 2018-05-31 23:27 UTC (permalink / raw)
  To: Linus Walleij; +Cc: Ralf Baechle, linux-mips, Wolfram Sang, Simon Guinot

Hi Linus,

On Sat, May 26, 2018 at 07:12:51PM +0200, Linus Walleij wrote:
> I used bad names in my clumsiness when rewriting many board
> files to use GPIO descriptors instead of platform data. A few
> had the platform_device ID set to -1 which would indeed give
> the device name "i2c-gpio".
> 
> But several had it set to >=0 which gives the names
> "i2c-gpio.0", "i2c-gpio.1" ...
> 
> Fix the one affected board in the MIPS tree. Sorry.

Reviewed-by: Paul Burton <paul.burton@mips.com>

Thanks,
    Paul

> Fixes: b2e63555592f ("i2c: gpio: Convert to use descriptors")
> Cc: Ralf Baechle <ralf@linux-mips.org>
> Cc: Wolfram Sang <wsa@the-dreams.de>
> Cc: Simon Guinot <simon.guinot@sequanux.org>
> Reported-by: Simon Guinot <simon.guinot@sequanux.org>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> Ralf can you please apply this for MIPS fixes?
> ---
>  arch/mips/ath79/mach-pb44.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/mips/ath79/mach-pb44.c b/arch/mips/ath79/mach-pb44.c
> index 6b2c6f3baefa..75fb96ca61db 100644
> --- a/arch/mips/ath79/mach-pb44.c
> +++ b/arch/mips/ath79/mach-pb44.c
> @@ -34,7 +34,7 @@
>  #define PB44_KEYS_DEBOUNCE_INTERVAL	(3 * PB44_KEYS_POLL_INTERVAL)
>  
>  static struct gpiod_lookup_table pb44_i2c_gpiod_table = {
> -	.dev_id = "i2c-gpio",
> +	.dev_id = "i2c-gpio.0",
>  	.table = {
>  		GPIO_LOOKUP_IDX("ath79-gpio", PB44_GPIO_I2C_SDA,
>  				NULL, 0, GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN),
> -- 
> 2.17.0
> 
> 

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

* Re: [PATCH] MIPS: pb44: Fix i2c-gpio GPIO descriptor table
  2018-05-26 17:12 [PATCH] MIPS: pb44: Fix i2c-gpio GPIO descriptor table Linus Walleij
  2018-05-31 23:27   ` Paul Burton
@ 2018-06-04 20:12 ` James Hogan
  1 sibling, 0 replies; 4+ messages in thread
From: James Hogan @ 2018-06-04 20:12 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Ralf Baechle, linux-mips, Wolfram Sang, Simon Guinot, Paul Burton

[-- Attachment #1: Type: text/plain, Size: 881 bytes --]

On Sat, May 26, 2018 at 07:12:51PM +0200, Linus Walleij wrote:
> I used bad names in my clumsiness when rewriting many board
> files to use GPIO descriptors instead of platform data. A few
> had the platform_device ID set to -1 which would indeed give
> the device name "i2c-gpio".
> 
> But several had it set to >=0 which gives the names
> "i2c-gpio.0", "i2c-gpio.1" ...
> 
> Fix the one affected board in the MIPS tree. Sorry.
> 
> Fixes: b2e63555592f ("i2c: gpio: Convert to use descriptors")
> Cc: Ralf Baechle <ralf@linux-mips.org>
> Cc: Wolfram Sang <wsa@the-dreams.de>
> Cc: Simon Guinot <simon.guinot@sequanux.org>
> Reported-by: Simon Guinot <simon.guinot@sequanux.org>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> Ralf can you please apply this for MIPS fixes?

Thanks (and sorry this missed 4.17). Now applied.

Cheers
James

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

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

end of thread, other threads:[~2018-06-04 20:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-26 17:12 [PATCH] MIPS: pb44: Fix i2c-gpio GPIO descriptor table Linus Walleij
2018-05-31 23:27 ` Paul Burton
2018-05-31 23:27   ` Paul Burton
2018-06-04 20:12 ` James Hogan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.