Re: Panda ES board hang when using GPIO as interrupt

2012-06-29 Thread Jon Hunter
On 06/28/2012 11:07 PM, DebBarma, Tarun Kanti wrote: > On Fri, Jun 29, 2012 at 6:29 AM, Franky Lin wrote: >> 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 w

Re: Panda ES board hang when using GPIO as interrupt

2012-06-28 Thread DebBarma, Tarun Kanti
On Fri, Jun 29, 2012 at 6:29 AM, Franky Lin wrote: > 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 r

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 ban

Re: Panda ES board hang when using GPIO as interrupt

2012-06-28 Thread Jon Hunter
On 06/28/2012 06:10 PM, Franky Lin wrote: > 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

Re: Panda ES board hang when using GPIO as interrupt

2012-06-28 Thread Jon Hunter
On 06/28/2012 06:10 PM, Franky Lin wrote: > 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

Re: Panda ES board hang when using GPIO as interrupt

2012-06-28 Thread Jon Hunter
On 06/28/2012 06:10 PM, Franky Lin wrote: > 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

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 hack

Re: Panda ES board hang when using GPIO as interrupt

2012-06-28 Thread Jon Hunter
On 06/28/2012 05:53 PM, Franky Lin wrote: > 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 so

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 t

Re: Panda ES board hang when using GPIO as interrupt

2012-06-28 Thread Jon Hunter
On 06/28/2012 04:24 PM, Franky Lin wrote: > 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" writes: > I noticed Kevin raised some similar cases on other platforms and also > provide

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" writes: I noticed Kevin raised some similar cases on other platforms and also provided two patches in the patch mail thread. But unfortunately those tw

Re: Panda ES board hang when using GPIO as interrupt

2012-06-28 Thread Jon Hunter
On 06/27/2012 07:41 PM, Franky Lin wrote: > On 06/26/2012 08:37 PM, Kevin Hilman wrote: >> "Franky Lin" 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

Re: Panda ES board hang when using GPIO as interrupt

2012-06-28 Thread Jon Hunter
Hi Franky, On 06/27/2012 08:03 PM, Franky Lin wrote: > 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 tri

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-27 Thread Franky Lin
On 06/26/2012 08:37 PM, Kevin Hilman wrote: "Franky Lin" 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 mainline kernel an

Re: Panda ES board hang when using GPIO as interrupt

2012-06-27 Thread Jon Hunter
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 3.5 rc1. The board hang randomly >

Re: Panda ES board hang when using GPIO as interrupt

2012-06-27 Thread DebBarma, Tarun Kanti
On Tue, Jun 26, 2012 at 11:50 PM, Franky Lin wrote: > On 06/26/2012 12:21 AM, DebBarma, Tarun Kanti wrote: >> >> On Tue, Jun 26, 2012 at 2:22 AM, Franky Lin wrote: >>> >>> Hi Kevin, Tarun, >>> >>> We are using the expansion connector A on Panda board to mount a SDIO >>> WiFi >>> dongle on MMC2 wi

Re: Panda ES board hang when using GPIO as interrupt

2012-06-26 Thread Kevin Hilman
Hello, "Franky Lin" writes: > 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 3.5 rc1. The board hang > randomly within 5 mins during a n

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 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 fi

Re: Panda ES board hang when using GPIO as interrupt

2012-06-26 Thread DebBarma, Tarun Kanti
On Tue, Jun 26, 2012 at 2:22 AM, 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 3.5 rc1. The board hang randomly withi

Panda ES board hang when using GPIO as interrupt

2012-06-25 Thread Franky Lin
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 3.5 rc1. The board hang randomly within 5 mins during a network traffic test. After bisecting w