Skip to contentSkip to conversation

pxa2xx-ac97: fix reset gpio mode setting

PATCH Applied Mike Rapoport 5 participants 7 messages May 11, 2009 – May 12, 2009

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

PATCH 1/1 pxa2xx-ac97: fix reset gpio mode setting

---
 sound/arm/pxa2xx-ac97-lib.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/arm/pxa2xx-ac97-lib.c +1 -1
index a2c12d1..6fdca97 100644
@@ -65,7 +65,7 @@ static void set_resetgpio_mode(int resetgpio_action)
 		switch (resetgpio_action) {
 		case RESETGPIO_NORMAL_ALTFUNC:
 			if (reset_gpio == 113)
-				mode = 113 | GPIO_OUT | GPIO_DFLT_LOW;
+				mode = 113 | GPIO_ALT_FN_2_OUT;
 			if (reset_gpio == 95)
 				mode = 95 | GPIO_ALT_FN_1_OUT;
 			break;
Signature · 1 line
1.5.6.4
Acked-by on v1 1/1
#1 lore raw
Quoted 1 line · Mike Rapoport

Just curious, this didn't cause any issue in the past :)

Quoted 25 lines

---
 sound/arm/pxa2xx-ac97-lib.c |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
sound/arm/pxa2xx-ac97-lib.c +0 -0
index a2c12d1..6fdca97 100644
@@ -65,7 +65,7 @@ static void set_resetgpio_mode(int resetgpio_action)
                switch (resetgpio_action) {

               case RESETGPIO_NORMAL_ALTFUNC:
                       if (reset_gpio == 113)
-                               mode = 113 | GPIO_OUT | GPIO_DFLT_LOW;
+                               mode = 113 | GPIO_ALT_FN_2_OUT; if (reset_gpio == 95)
                               mode = 95 | GPIO_ALT_FN_1_OUT; break;
--
1.5.6.4

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

Signature · 6 lines
Cheers
- eric
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#2 lore raw
Quoted 6 lines · Eric Miao
Quoted 1 line · Mike Rapoport

Just curious, this didn't cause any issue in the past :)

It's 2.6.30 material so there's not much past :)

Quoted 28 lines
Quoted 25 lines
---
 sound/arm/pxa2xx-ac97-lib.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/arm/pxa2xx-ac97-lib.c +1 -2
index a2c12d1..6fdca97 100644
@@ -65,7 +65,7 @@ static void set_resetgpio_mode(int resetgpio_action)
               switch (resetgpio_action) {
               case RESETGPIO_NORMAL_ALTFUNC:
                       if (reset_gpio == 113)
-                               mode = 113 | GPIO_OUT | GPIO_DFLT_LOW;
+                               mode = 113 | GPIO_ALT_FN_2_OUT;
                       if (reset_gpio == 95)
                               mode = 95 | GPIO_ALT_FN_1_OUT;
                       break;
--

1.5.6.4

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

Signature · 2 lines
Sincerely yours,
Mike.
#3 lore raw
In reply to Eric Miao

Dne pondělí 11 Květen 2009 12:51:14 Eric Miao napsal(a):

Quoted 7 lines · Mike Rapoport
Quoted 1 line

Just curious, this didn't cause any issue in the past :)

It's probably because all machines set AFN with pxa2xx_mfp_config in start-up. I have seen this when I tried to locate Palm AC97 problem after resume...

Tomas Cech

-------------------------------------------------------------------

List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php
maintainer Acked-by
#4 lore raw
In reply to Eric Miao
Quoted 4 lines · Eric Miao
Quoted 1 line · Mike Rapoport

Argh, that was my screw up ... Let's forward that to Mark, and see if that can make it into the 2.6.30 fixes.

--
Robert

Quoted 22 lines

Just curious, this didn't cause any issue in the past :)

Quoted 20 lines

---
 sound/arm/pxa2xx-ac97-lib.c |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
sound/arm/pxa2xx-ac97-lib.c +0 -0
index a2c12d1..6fdca97 100644
@@ -65,7 +65,7 @@ static void set_resetgpio_mode(int resetgpio_action)
                switch (resetgpio_action) {

               case RESETGPIO_NORMAL_ALTFUNC:
                       if (reset_gpio == 113)
-                               mode = 113 | GPIO_OUT | GPIO_DFLT_LOW;
+                               mode = 113 | GPIO_ALT_FN_2_OUT; if (reset_gpio == 95)
                               mode = 95 | GPIO_ALT_FN_1_OUT; break;
--
1.5.6.4

Quoted 15 lines
Quoted 5 lines

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

Signature · 6 lines
Cheers
- eric
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel