Fixes for the Cygnus GPIO driver
Subsystems (3)
Ray Jui
maintainercover Fixes for the Cygnus GPIO driver
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(-)
Signature · 1 line
1.7.9.5
Ray Jui
maintainerPATCH 1/2 pinctrl: cygnus: fixed typo in the gpio driver
Fixed a small typo in the Cygnus GPIO driver
--- drivers/pinctrl/bcm/pinctrl-cygnus-gpio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/pinctrl/bcm/pinctrl-cygnus-gpio.c +2 -2
@@ -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,
Signature · 1 line
1.7.9.5
Re: [PATCH 1/2] pinctrl: cygnus: fixed typo in the gpio driver
Quoted 4 lines · Ray Jui
Fixed a small typo in the Cygnus GPIO driver
Signed-off-by Jason Uy <[email protected]>Signed-off-by Ray Jui <[email protected]>
Patch applied.
Yours,
Linus Walleij
Ray Jui
maintainerPATCH 2/2 pinctrl: cygnus: fixed incorrect GPIO-pin mapping
In reply to Ray JuiThis patch fixes an incorrect GPIO-to-pin mapping in the Cygnus GPIO driver
--- drivers/pinctrl/bcm/pinctrl-cygnus-gpio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/pinctrl/bcm/pinctrl-cygnus-gpio.c +3 -1
@@ -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),
Signature · 1 line
1.7.9.5
Re: [PATCH 2/2] pinctrl: cygnus: fixed incorrect GPIO-pin mapping
Quoted 4 lines · Ray Jui
This patch fixes an incorrect GPIO-to-pin mapping in the Cygnus GPIO driver
Signed-off-by Ray Jui <[email protected]>
Patch applied for fixes.
Yours,
Linus Walleij