Skip to contentSkip to conversation

ARM: S5P64X0: fix gpio rbank support

PATCH In review Sangbeom Kim 2 participants 3 messages Oct 7, 2010 – Oct 8, 2010

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

PATCH 1/1 ARM: S5P64X0: fix gpio rbank support

From: Atul Dahiya <[email protected]>

The patch removes s3c_gpio_lock/unlock to avoid acquiring the lock recursively as lock is already acquired by calling function.

---
 arch/arm/mach-s5p64x0/gpio.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
arch/arm/mach-s5p64x0/gpio.c +0 -4
index 3073ed0..533c1a3 100644
@@ -158,15 +158,11 @@ int s5p64x0_gpio_setcfg_4bit_rbank(struct s3c_gpio_chip *chip,
 		cfg <<= shift;
 	}
 
-	s3c_gpio_lock(chip, flags);
-
 	con = __raw_readl(reg);
 	con &= ~(0xf << shift);
 	con |= cfg;
 	__raw_writel(con, reg);
 
-	s3c_gpio_unlock(chip, flags);
-
 	return 0;
 }
 
Signature · 1 line
1.6.6.1
#1 lore raw
Quoted 24 lines · Sangbeom Kim

From: Atul Dahiya <[email protected]>

The patch removes s3c_gpio_lock/unlock to avoid acquiring the lock recursively as lock is already acquired by calling function.

---
 arch/arm/mach-s5p64x0/gpio.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
arch/arm/mach-s5p64x0/gpio.c +0 -2
index 3073ed0..533c1a3 100644
@@ -158,15 +158,11 @@ int s5p64x0_gpio_setcfg_4bit_rbank(struct
 s3c_gpio_chip *chip,
 		cfg <<= shift;
 	}
 
-	s3c_gpio_lock(chip, flags);
-
 	con = __raw_readl(reg);

arch/arm/mach-s5p64x0/gpio.c int s5p64x0_gpio_setcfg_4bit_rbank(struct

Quoted 10 lines
arch/arm/mach-s5p64x0/gpio.c +0 -3
 	con &= ~(0xf << shift);
 	con |= cfg;
 	__raw_writel(con, reg);
 
-	s3c_gpio_unlock(chip, flags);
-
 	return 0;
 }
 
--

Right...will apply.

Thanks.

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

#2 lore raw
In reply to Sangbeom Kim
Quoted 24 lines · Sangbeom Kim

From: Atul Dahiya <[email protected]>

The patch removes s3c_gpio_lock/unlock to avoid acquiring the lock recursively as lock is already acquired by calling function.

---
 arch/arm/mach-s5p64x0/gpio.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
arch/arm/mach-s5p64x0/gpio.c +0 -2
index 3073ed0..533c1a3 100644
@@ -158,15 +158,11 @@ int s5p64x0_gpio_setcfg_4bit_rbank(struct
 s3c_gpio_chip *chip,
 		cfg <<= shift;
 	}
 
-	s3c_gpio_lock(chip, flags);
-
 	con = __raw_readl(reg);

arch/arm/mach-s5p64x0/gpio.c int s5p64x0_gpio_setcfg_4bit_rbank(struct

Quoted 10 lines
arch/arm/mach-s5p64x0/gpio.c +0 -3
 	con &= ~(0xf << shift);
 	con |= cfg;
 	__raw_writel(con, reg);
 
-	s3c_gpio_unlock(chip, flags);
-
 	return 0;
 }
 
--

We don't need to define the variable 'flags' with this too.

arch/arm/mach-s5p64x0/gpio.c: In function 's5p64x0_gpio_setcfg_4bit_rbank':
arch/arm/mach-s5p64x0/gpio.c:135: warning: unused variable 'flags'

Thanks.

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