Re: [PATCH] gpio/omap: fix invalid context restore of gpio bank-0

2012-06-29 Thread Franky Lin
grant.lik...@secretlab.ca Cc: Linus Walleij linus.wall...@stericsson.com Cc: Kevin Hilman khil...@ti.com Cc: Tarun Kanti DebBarma tarun.ka...@ti.com Cc: Franky Lin fran...@broadcom.com Reported-by: Franky Lin fran...@broadcom.com Signed-off-by: Jon Hunter jon-hun...@ti.com --- Tested-by: Franky Lin

Re: Panda ES board hang when using GPIO as interrupt

2012-06-28 Thread Franky Lin
On 06/28/2012 08:42 AM, Jon Hunter wrote: On 06/27/2012 07:41 PM, Franky Lin wrote: On 06/26/2012 08:37 PM, Kevin Hilman wrote: Franky Lin fran...@broadcom.com writes: I noticed Kevin raised some similar cases on other platforms and also provided two patches in the patch mail thread

Re: Panda ES board hang when using GPIO as interrupt

2012-06-28 Thread Franky Lin
On 06/28/2012 02:55 PM, Jon Hunter wrote: Ok. Any way to manually reset the wlan module to deactivate the gpio when it is hung? I am wondering if the gpio is deactivated if the board comes back to life, indicating it is stuck in the interrupt somewhere. The only way I can think of is removing

Re: Panda ES board hang when using GPIO as interrupt

2012-06-28 Thread Franky Lin
On 06/28/2012 03:59 PM, Jon Hunter wrote: On 06/28/2012 05:53 PM, Franky Lin wrote: I found one interesting thing. When I added the print info to see when runtime_suspend/resume get called, it seems like the suspend/resume is unbalance during boot. Resume got called more than suspend. So I

Re: Panda ES board hang when using GPIO as interrupt

2012-06-28 Thread Franky Lin
On 06/28/2012 04:54 PM, Jon Hunter wrote: I am wondering if this could be the bug ... on start-up I see that we do a context restore on bank1 during the probe which is before we have done the first suspend! In other words, we could restore a bad/uninitialised context for bank1. In the case of

Re: Panda ES board hang when using GPIO as interrupt

2012-06-27 Thread Franky Lin
On 06/26/2012 08:37 PM, Kevin Hilman wrote: Franky Lin fran...@broadcom.com writes: I noticed Kevin raised some similar cases on other platforms and also provided two patches in the patch mail thread. But unfortunately those two patches doesn't help in our case. I tested the driver with 3.5-rc3

Re: Panda ES board hang when using GPIO as interrupt

2012-06-27 Thread Franky Lin
On 06/27/2012 04:43 PM, Jon Hunter wrote: Hi Franky, On 06/25/2012 03:52 PM, Franky Lin wrote: Hi Kevin, Tarun, We are using the expansion connector A on Panda board to mount a SDIO WiFi dongle on MMC2 with a level triggered interrupt signal connected to GPIO 138. It's been working fine until

Re: Panda ES board hang when using GPIO as interrupt

2012-06-26 Thread Franky Lin
On 06/26/2012 12:21 AM, DebBarma, Tarun Kanti wrote: On Tue, Jun 26, 2012 at 2:22 AM, Franky Lin fran...@broadcom.com wrote: Hi Kevin, Tarun, We are using the expansion connector A on Panda board to mount a SDIO WiFi dongle on MMC2 with a level triggered interrupt signal connected to GPIO 138