linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] ARM: davinci: set GPIO base to 0 manually
@ 2018-11-20 12:31 Bartosz Golaszewski
  2018-11-20 12:31 ` [PATCH 1/5] ARM: davinci: dm365: set the GPIO base to 0 Bartosz Golaszewski
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Bartosz Golaszewski @ 2018-11-20 12:31 UTC (permalink / raw)
  To: Sekhar Nori, Kevin Hilman
  Cc: linux-arm-kernel, linux-kernel, Bartosz Golaszewski

From: Bartosz Golaszewski <bgolaszewski@baylibre.com>

This is a follow-up to the series that fixes a problem with ethernet
on da850-evm. All DaVinci boards in legacy mode were broken by commit
587f7a694f01 ("gpio: davinci: Use dev name for label and automatic
base selection"). This series sets the GPIO base to 0 manually for all
DaVinci SoCs.

Bartosz Golaszewski (5):
  ARM: davinci: dm365: set the GPIO base to 0
  ARM: davinci: dm646x: set the GPIO base to 0
  ARM: davinci: dm355: set the GPIO base to 0
  ARM: davinci: da830: set the GPIO base to 0
  ARM: davinci: dm644x: set the GPIO base to 0

 arch/arm/mach-davinci/da830.c  | 2 ++
 arch/arm/mach-davinci/dm355.c  | 2 ++
 arch/arm/mach-davinci/dm365.c  | 2 ++
 arch/arm/mach-davinci/dm644x.c | 2 ++
 arch/arm/mach-davinci/dm646x.c | 2 ++
 5 files changed, 10 insertions(+)

-- 
2.19.1


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

* [PATCH 1/5] ARM: davinci: dm365: set the GPIO base to 0
  2018-11-20 12:31 [PATCH 0/5] ARM: davinci: set GPIO base to 0 manually Bartosz Golaszewski
@ 2018-11-20 12:31 ` Bartosz Golaszewski
  2018-11-20 12:31 ` [PATCH 2/5] ARM: davinci: dm646x: " Bartosz Golaszewski
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Bartosz Golaszewski @ 2018-11-20 12:31 UTC (permalink / raw)
  To: Sekhar Nori, Kevin Hilman
  Cc: linux-arm-kernel, linux-kernel, Bartosz Golaszewski, stable

From: Bartosz Golaszewski <bgolaszewski@baylibre.com>

Commit 587f7a694f01 ("gpio: davinci: Use dev name for label and
automatic base selection") broke the GPIO support on DaVinci boards
in legacy mode by allowing gpiolib to set the GPIO base automatically.

DaVinci board files use the legacy GPIO API with hard-coded GPIO line
numbers. Use the new fields in struct davinci_gpio_platform_data to
manually set the GPIO base to 0.

Fixes: 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection")
Cc: stable@vger.kernel.org
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
---
 arch/arm/mach-davinci/dm365.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/mach-davinci/dm365.c b/arch/arm/mach-davinci/dm365.c
index abcf2a5ed89b..c8e66d8745b7 100644
--- a/arch/arm/mach-davinci/dm365.c
+++ b/arch/arm/mach-davinci/dm365.c
@@ -273,6 +273,8 @@ static struct resource dm365_gpio_resources[] = {
 };
 
 static struct davinci_gpio_platform_data dm365_gpio_platform_data = {
+	.no_auto_base	= true,
+	.base		= 0,
 	.ngpio		= 104,
 	.gpio_unbanked	= 8,
 };
-- 
2.19.1


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

* [PATCH 2/5] ARM: davinci: dm646x: set the GPIO base to 0
  2018-11-20 12:31 [PATCH 0/5] ARM: davinci: set GPIO base to 0 manually Bartosz Golaszewski
  2018-11-20 12:31 ` [PATCH 1/5] ARM: davinci: dm365: set the GPIO base to 0 Bartosz Golaszewski
@ 2018-11-20 12:31 ` Bartosz Golaszewski
  2018-11-20 12:31 ` [PATCH 3/5] ARM: davinci: dm355: " Bartosz Golaszewski
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Bartosz Golaszewski @ 2018-11-20 12:31 UTC (permalink / raw)
  To: Sekhar Nori, Kevin Hilman
  Cc: linux-arm-kernel, linux-kernel, Bartosz Golaszewski, stable

From: Bartosz Golaszewski <bgolaszewski@baylibre.com>

Commit 587f7a694f01 ("gpio: davinci: Use dev name for label and
automatic base selection") broke the GPIO support on DaVinci boards
in legacy mode by allowing gpiolib to set the GPIO base automatically.

DaVinci board files use the legacy GPIO API with hard-coded GPIO line
numbers. Use the new fields in struct davinci_gpio_platform_data to
manually set the GPIO base to 0.

Fixes: 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection")
Cc: stable@vger.kernel.org
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
---
 arch/arm/mach-davinci/dm646x.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/mach-davinci/dm646x.c b/arch/arm/mach-davinci/dm646x.c
index 6bd2ed069d0d..158f5908a0f0 100644
--- a/arch/arm/mach-davinci/dm646x.c
+++ b/arch/arm/mach-davinci/dm646x.c
@@ -448,6 +448,8 @@ static struct resource dm646x_gpio_resources[] = {
 };
 
 static struct davinci_gpio_platform_data dm646x_gpio_platform_data = {
+	.no_auto_base	= true,
+	.base		= 0,
 	.ngpio		= 43,
 };
 
-- 
2.19.1


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

* [PATCH 3/5] ARM: davinci: dm355: set the GPIO base to 0
  2018-11-20 12:31 [PATCH 0/5] ARM: davinci: set GPIO base to 0 manually Bartosz Golaszewski
  2018-11-20 12:31 ` [PATCH 1/5] ARM: davinci: dm365: set the GPIO base to 0 Bartosz Golaszewski
  2018-11-20 12:31 ` [PATCH 2/5] ARM: davinci: dm646x: " Bartosz Golaszewski
@ 2018-11-20 12:31 ` Bartosz Golaszewski
  2018-11-20 12:31 ` [PATCH 4/5] ARM: davinci: da830: " Bartosz Golaszewski
  2018-11-20 12:31 ` [PATCH 5/5] ARM: davinci: dm644x: " Bartosz Golaszewski
  4 siblings, 0 replies; 6+ messages in thread
From: Bartosz Golaszewski @ 2018-11-20 12:31 UTC (permalink / raw)
  To: Sekhar Nori, Kevin Hilman
  Cc: linux-arm-kernel, linux-kernel, Bartosz Golaszewski, stable

From: Bartosz Golaszewski <bgolaszewski@baylibre.com>

Commit 587f7a694f01 ("gpio: davinci: Use dev name for label and
automatic base selection") broke the GPIO support on DaVinci boards
in legacy mode by allowing gpiolib to set the GPIO base automatically.

DaVinci board files use the legacy GPIO API with hard-coded GPIO line
numbers. Use the new fields in struct davinci_gpio_platform_data to
manually set the GPIO base to 0.

Fixes: 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection")
Cc: stable@vger.kernel.org
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
---
 arch/arm/mach-davinci/dm355.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/mach-davinci/dm355.c b/arch/arm/mach-davinci/dm355.c
index 9f7d38d12c88..73f2f70ce729 100644
--- a/arch/arm/mach-davinci/dm355.c
+++ b/arch/arm/mach-davinci/dm355.c
@@ -554,6 +554,8 @@ static struct resource dm355_gpio_resources[] = {
 };
 
 static struct davinci_gpio_platform_data dm355_gpio_platform_data = {
+	.no_auto_base	= true,
+	.base		= 0,
 	.ngpio		= 104,
 };
 
-- 
2.19.1


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

* [PATCH 4/5] ARM: davinci: da830: set the GPIO base to 0
  2018-11-20 12:31 [PATCH 0/5] ARM: davinci: set GPIO base to 0 manually Bartosz Golaszewski
                   ` (2 preceding siblings ...)
  2018-11-20 12:31 ` [PATCH 3/5] ARM: davinci: dm355: " Bartosz Golaszewski
@ 2018-11-20 12:31 ` Bartosz Golaszewski
  2018-11-20 12:31 ` [PATCH 5/5] ARM: davinci: dm644x: " Bartosz Golaszewski
  4 siblings, 0 replies; 6+ messages in thread
From: Bartosz Golaszewski @ 2018-11-20 12:31 UTC (permalink / raw)
  To: Sekhar Nori, Kevin Hilman
  Cc: linux-arm-kernel, linux-kernel, Bartosz Golaszewski, stable

From: Bartosz Golaszewski <bgolaszewski@baylibre.com>

Commit 587f7a694f01 ("gpio: davinci: Use dev name for label and
automatic base selection") broke the GPIO support on DaVinci boards
in legacy mode by allowing gpiolib to set the GPIO base automatically.

DaVinci board files use the legacy GPIO API with hard-coded GPIO line
numbers. Use the new fields in struct davinci_gpio_platform_data to
manually set the GPIO base to 0.

Fixes: 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection")
Cc: stable@vger.kernel.org
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
---
 arch/arm/mach-davinci/da830.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/mach-davinci/da830.c b/arch/arm/mach-davinci/da830.c
index 0bc5bd2665df..822d2590fbc9 100644
--- a/arch/arm/mach-davinci/da830.c
+++ b/arch/arm/mach-davinci/da830.c
@@ -759,6 +759,8 @@ static struct davinci_id da830_ids[] = {
 };
 
 static struct davinci_gpio_platform_data da830_gpio_platform_data = {
+	.no_auto_base = true,
+	.base = 0,
 	.ngpio = 128,
 };
 
-- 
2.19.1


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

* [PATCH 5/5] ARM: davinci: dm644x: set the GPIO base to 0
  2018-11-20 12:31 [PATCH 0/5] ARM: davinci: set GPIO base to 0 manually Bartosz Golaszewski
                   ` (3 preceding siblings ...)
  2018-11-20 12:31 ` [PATCH 4/5] ARM: davinci: da830: " Bartosz Golaszewski
@ 2018-11-20 12:31 ` Bartosz Golaszewski
  4 siblings, 0 replies; 6+ messages in thread
From: Bartosz Golaszewski @ 2018-11-20 12:31 UTC (permalink / raw)
  To: Sekhar Nori, Kevin Hilman
  Cc: linux-arm-kernel, linux-kernel, Bartosz Golaszewski, stable

From: Bartosz Golaszewski <bgolaszewski@baylibre.com>

Commit 587f7a694f01 ("gpio: davinci: Use dev name for label and
automatic base selection") broke the GPIO support on DaVinci boards
in legacy mode by allowing gpiolib to set the GPIO base automatically.

DaVinci board files use the legacy GPIO API with hard-coded GPIO line
numbers. Use the new fields in struct davinci_gpio_platform_data to
manually set the GPIO base to 0.

Fixes: 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection")
Cc: stable@vger.kernel.org
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
---
 arch/arm/mach-davinci/dm644x.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/mach-davinci/dm644x.c b/arch/arm/mach-davinci/dm644x.c
index 0720da7809a6..f25b508a831b 100644
--- a/arch/arm/mach-davinci/dm644x.c
+++ b/arch/arm/mach-davinci/dm644x.c
@@ -498,6 +498,8 @@ static struct resource dm644_gpio_resources[] = {
 };
 
 static struct davinci_gpio_platform_data dm644_gpio_platform_data = {
+	.no_auto_base	= true,
+	.base		= 0,
 	.ngpio		= 71,
 };
 
-- 
2.19.1


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

end of thread, other threads:[~2018-11-20 12:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-20 12:31 [PATCH 0/5] ARM: davinci: set GPIO base to 0 manually Bartosz Golaszewski
2018-11-20 12:31 ` [PATCH 1/5] ARM: davinci: dm365: set the GPIO base to 0 Bartosz Golaszewski
2018-11-20 12:31 ` [PATCH 2/5] ARM: davinci: dm646x: " Bartosz Golaszewski
2018-11-20 12:31 ` [PATCH 3/5] ARM: davinci: dm355: " Bartosz Golaszewski
2018-11-20 12:31 ` [PATCH 4/5] ARM: davinci: da830: " Bartosz Golaszewski
2018-11-20 12:31 ` [PATCH 5/5] ARM: davinci: dm644x: " Bartosz Golaszewski

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).