All of lore.kernel.org
 help / color / mirror / Atom feed
* [3.14 FIX][PATCH] MIPS: BCM47XX: Check all (32) GPIOs when looking for a pin
@ 2014-02-13 16:48 Rafał Miłecki
  2014-02-28  6:27 ` Rafał Miłecki
  2014-03-14 21:30 ` Hauke Mehrtens
  0 siblings, 2 replies; 6+ messages in thread
From: Rafał Miłecki @ 2014-02-13 16:48 UTC (permalink / raw)
  To: linux-mips, Ralf Baechle; +Cc: Hauke Mehrtens, Rafał Miłecki

Broadcom boards support 32 GPIOs and NVRAM may have entires for higher
ones too. Example:
gpio23=wombo_reset

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
---
Preferably this should go as a fix for 3.14. It's really trivial and
allows support for some devices that require reset by GPIO after boot.
---
 arch/mips/bcm47xx/nvram.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/bcm47xx/nvram.c b/arch/mips/bcm47xx/nvram.c
index 6decb27..2bed73a 100644
--- a/arch/mips/bcm47xx/nvram.c
+++ b/arch/mips/bcm47xx/nvram.c
@@ -196,7 +196,7 @@ int bcm47xx_nvram_gpio_pin(const char *name)
 	char nvram_var[10];
 	char buf[30];
 
-	for (i = 0; i < 16; i++) {
+	for (i = 0; i < 32; i++) {
 		err = snprintf(nvram_var, sizeof(nvram_var), "gpio%i", i);
 		if (err <= 0)
 			continue;
-- 
1.8.4.5

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

end of thread, other threads:[~2014-03-19  8:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-13 16:48 [3.14 FIX][PATCH] MIPS: BCM47XX: Check all (32) GPIOs when looking for a pin Rafał Miłecki
2014-02-28  6:27 ` Rafał Miłecki
2014-03-13 15:22   ` Rafał Miłecki
2014-03-14 21:30 ` Hauke Mehrtens
2014-03-19  6:43   ` Rafał Miłecki
2014-03-19  8:47     ` Ralf Baechle

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.