Skip to contentSkip to conversation

GPIO: Samsung: fix broken configuration for Exynos4 GPIO banks

PATCH In review Marek Szyprowski 3 participants 3 messages Sep 22, 2011 – Sep 26, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 GPIO: Samsung: fix broken configuration for Exynos4 GPIO banks

Commit 1b39d5f2cc introduced new common gpio driver for all Samsung GPIO SoCs. The new driver doesn't work correctly on Samsung Exynos4 SoC. It fails to set configuration for all but external interrupt pins. This patch fixes this issue.

---
 drivers/gpio/gpio-samsung.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/gpio/gpio-samsung.c +2 -0
index 36f3675..be13580 100644
@@ -446,6 +446,8 @@ static struct samsung_gpio_cfg s3c24xx_gpiocfg_banka = {
 static struct samsung_gpio_cfg exynos4_gpio_cfg = {
 	.set_pull	= exynos4_gpio_setpull,
 	.get_pull	= exynos4_gpio_getpull,
+	.set_config	= samsung_gpio_setcfg_4bit,
+	.get_config	= samsung_gpio_getcfg_4bit,
 };
 
 static struct samsung_gpio_cfg s5p64x0_gpio_cfg_rbank = {
Signature · 1 line
1.7.1.569.g6f426
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Marek Szyprowski

Commit 1b39d5f2cc introduced new common gpio driver for all Samsung GPIO SoCs. The new driver doesn't work correctly on Samsung Exynos4 SoC. It fails to set configuration for all but external interrupt pins. This patch fixes this issue.

Quoted 20 lines
---
 drivers/gpio/gpio-samsung.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/gpio/gpio-samsung.c +2 -0
index 36f3675..be13580 100644
@@ -446,6 +446,8 @@ static struct samsung_gpio_cfg s3c24xx_gpiocfg_banka = {
 static struct samsung_gpio_cfg exynos4_gpio_cfg = {
 	.set_pull	= exynos4_gpio_setpull,
 	.get_pull	= exynos4_gpio_getpull,
+	.set_config	= samsung_gpio_setcfg_4bit,
+	.get_config	= samsung_gpio_getcfg_4bit,
 };
 
 static struct samsung_gpio_cfg s5p64x0_gpio_cfg_rbank = {
Signature · 1 line
1.7.1.569.g6f426
#2 lore raw
Quoted 29 lines · Grant Likely
Quoted 7 lines · Marek Szyprowski

Commit 1b39d5f2cc introduced new common gpio driver for all Samsung GPIO SoCs. The new driver doesn't work correctly on Samsung Exynos4 SoC. It fails to set configuration for all but external interrupt pins. This patch fixes this issue.

drivers/gpio/gpio-samsung.c static struct samsung_gpio_cfg s3c24xx_gpiocfg_banka

Quoted 9 lines
---
 drivers/gpio/gpio-samsung.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/gpio/gpio-samsung.c +0 -0
index 36f3675..be13580 100644
@@ -446,6 +446,8 @@ static struct samsung_gpio_cfg s3c24xx_gpiocfg_banka

= {

Quoted 7 lines
drivers/gpio/gpio-samsung.c +2 -0
 static struct samsung_gpio_cfg exynos4_gpio_cfg = {
 	.set_pull	= exynos4_gpio_setpull,
 	.get_pull	= exynos4_gpio_getpull,
+	.set_config	= samsung_gpio_setcfg_4bit,
+	.get_config	= samsung_gpio_getcfg_4bit,
 };
 
Quoted 4 lines
Quoted 4 lines
drivers/gpio/gpio-samsung.c +0 -1
 static struct samsung_gpio_cfg s5p64x0_gpio_cfg_rbank = {
--

1.7.1.569.g6f426

Oops :(
You're right, applied.

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.