* [PATCH 0/2] Fixes for the Cygnus GPIO driver
@ 2015-05-14 0:06 Ray Jui
2015-05-14 0:06 ` [PATCH 1/2] pinctrl: cygnus: fixed typo in the gpio driver Ray Jui
2015-05-14 0:06 ` [PATCH 2/2] pinctrl: cygnus: fixed incorrect GPIO-pin mapping Ray Jui
0 siblings, 2 replies; 5+ messages in thread
From: Ray Jui @ 2015-05-14 0:06 UTC (permalink / raw)
To: Linus Walleij, Alexandre Courbot
Cc: linux-kernel, linux-gpio, bcm-kernel-feedback-list, Jason Uy, Ray Jui
This patch series contains fixes for the Cygnus GPIO driver including 1) a
typo fix and 2) a fix of the GPIO-to-pin mapping
Code based on v4.1-rc3
Ray Jui (2):
pinctrl: cygnus: fixed typo in the gpio driver
pinctrl: cygnus: fixed incorrect GPIO-pin mapping
drivers/pinctrl/bcm/pinctrl-cygnus-gpio.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
--
1.7.9.5
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] pinctrl: cygnus: fixed typo in the gpio driver
2015-05-14 0:06 [PATCH 0/2] Fixes for the Cygnus GPIO driver Ray Jui
@ 2015-05-14 0:06 ` Ray Jui
2015-05-19 8:42 ` Linus Walleij
2015-05-14 0:06 ` [PATCH 2/2] pinctrl: cygnus: fixed incorrect GPIO-pin mapping Ray Jui
1 sibling, 1 reply; 5+ messages in thread
From: Ray Jui @ 2015-05-14 0:06 UTC (permalink / raw)
To: Linus Walleij, Alexandre Courbot
Cc: linux-kernel, linux-gpio, bcm-kernel-feedback-list, Jason Uy, Ray Jui
Fixed a small typo in the Cygnus GPIO driver
Signed-off-by: Jason Uy <jasonuy@broadcom.com>
Signed-off-by: Ray Jui <rjui@broadcom.com>
---
drivers/pinctrl/bcm/pinctrl-cygnus-gpio.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/pinctrl/bcm/pinctrl-cygnus-gpio.c b/drivers/pinctrl/bcm/pinctrl-cygnus-gpio.c
index 4ad5c1a..bde45ba 100644
--- a/drivers/pinctrl/bcm/pinctrl-cygnus-gpio.c
+++ b/drivers/pinctrl/bcm/pinctrl-cygnus-gpio.c
@@ -38,7 +38,7 @@
#define CYGNUS_GPIO_DATA_IN_OFFSET 0x00
#define CYGNUS_GPIO_DATA_OUT_OFFSET 0x04
#define CYGNUS_GPIO_OUT_EN_OFFSET 0x08
-#define CYGNUS_GPIO_IN_TYPE_OFFSET 0x0c
+#define CYGNUS_GPIO_INT_TYPE_OFFSET 0x0c
#define CYGNUS_GPIO_INT_DE_OFFSET 0x10
#define CYGNUS_GPIO_INT_EDGE_OFFSET 0x14
#define CYGNUS_GPIO_INT_MSK_OFFSET 0x18
@@ -264,7 +264,7 @@ static int cygnus_gpio_irq_set_type(struct irq_data *d, unsigned int type)
}
spin_lock_irqsave(&chip->lock, flags);
- cygnus_set_bit(chip, CYGNUS_GPIO_IN_TYPE_OFFSET, gpio,
+ cygnus_set_bit(chip, CYGNUS_GPIO_INT_TYPE_OFFSET, gpio,
level_triggered);
cygnus_set_bit(chip, CYGNUS_GPIO_INT_DE_OFFSET, gpio, dual_edge);
cygnus_set_bit(chip, CYGNUS_GPIO_INT_EDGE_OFFSET, gpio,
--
1.7.9.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] pinctrl: cygnus: fixed incorrect GPIO-pin mapping
2015-05-14 0:06 [PATCH 0/2] Fixes for the Cygnus GPIO driver Ray Jui
2015-05-14 0:06 ` [PATCH 1/2] pinctrl: cygnus: fixed typo in the gpio driver Ray Jui
@ 2015-05-14 0:06 ` Ray Jui
2015-05-19 8:45 ` Linus Walleij
1 sibling, 1 reply; 5+ messages in thread
From: Ray Jui @ 2015-05-14 0:06 UTC (permalink / raw)
To: Linus Walleij, Alexandre Courbot
Cc: linux-kernel, linux-gpio, bcm-kernel-feedback-list, Jason Uy, Ray Jui
This patch fixes an incorrect GPIO-to-pin mapping in the Cygnus GPIO
driver
Signed-off-by: Ray Jui <rjui@broadcom.com>
---
drivers/pinctrl/bcm/pinctrl-cygnus-gpio.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/pinctrl/bcm/pinctrl-cygnus-gpio.c b/drivers/pinctrl/bcm/pinctrl-cygnus-gpio.c
index bde45ba..e8c50f0 100644
--- a/drivers/pinctrl/bcm/pinctrl-cygnus-gpio.c
+++ b/drivers/pinctrl/bcm/pinctrl-cygnus-gpio.c
@@ -643,7 +643,9 @@ static const struct cygnus_gpio_pin_range cygnus_gpio_pintable[] = {
CYGNUS_PINRANGE(87, 104, 12),
CYGNUS_PINRANGE(99, 102, 2),
CYGNUS_PINRANGE(101, 90, 4),
- CYGNUS_PINRANGE(105, 116, 10),
+ CYGNUS_PINRANGE(105, 116, 6),
+ CYGNUS_PINRANGE(111, 100, 2),
+ CYGNUS_PINRANGE(113, 122, 4),
CYGNUS_PINRANGE(123, 11, 1),
CYGNUS_PINRANGE(124, 38, 4),
CYGNUS_PINRANGE(128, 43, 1),
--
1.7.9.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] pinctrl: cygnus: fixed typo in the gpio driver
2015-05-14 0:06 ` [PATCH 1/2] pinctrl: cygnus: fixed typo in the gpio driver Ray Jui
@ 2015-05-19 8:42 ` Linus Walleij
0 siblings, 0 replies; 5+ messages in thread
From: Linus Walleij @ 2015-05-19 8:42 UTC (permalink / raw)
To: Ray Jui
Cc: Alexandre Courbot, linux-kernel, linux-gpio,
bcm-kernel-feedback-list, Jason Uy
On Thu, May 14, 2015 at 2:06 AM, Ray Jui <rjui@broadcom.com> wrote:
> Fixed a small typo in the Cygnus GPIO driver
>
> Signed-off-by: Jason Uy <jasonuy@broadcom.com>
> Signed-off-by: Ray Jui <rjui@broadcom.com>
Patch applied.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] pinctrl: cygnus: fixed incorrect GPIO-pin mapping
2015-05-14 0:06 ` [PATCH 2/2] pinctrl: cygnus: fixed incorrect GPIO-pin mapping Ray Jui
@ 2015-05-19 8:45 ` Linus Walleij
0 siblings, 0 replies; 5+ messages in thread
From: Linus Walleij @ 2015-05-19 8:45 UTC (permalink / raw)
To: Ray Jui
Cc: Alexandre Courbot, linux-kernel, linux-gpio,
bcm-kernel-feedback-list, Jason Uy
On Thu, May 14, 2015 at 2:06 AM, Ray Jui <rjui@broadcom.com> wrote:
> This patch fixes an incorrect GPIO-to-pin mapping in the Cygnus GPIO
> driver
>
> Signed-off-by: Ray Jui <rjui@broadcom.com>
Patch applied for fixes.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-05-19 8:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-14 0:06 [PATCH 0/2] Fixes for the Cygnus GPIO driver Ray Jui
2015-05-14 0:06 ` [PATCH 1/2] pinctrl: cygnus: fixed typo in the gpio driver Ray Jui
2015-05-19 8:42 ` Linus Walleij
2015-05-14 0:06 ` [PATCH 2/2] pinctrl: cygnus: fixed incorrect GPIO-pin mapping Ray Jui
2015-05-19 8:45 ` Linus Walleij
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).