Re: [PATCH] gpio: dwapb: fix missing first irq for edgeboth irq type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 12 Jun 2017 13:05:30 +0800 Jisheng Zhang wrote:

> On Fri, 9 Jun 2017 11:26:19 +0200 Linus Walleij wrote:
> 
> > 
> > On Fri, Jun 2, 2017 at 1:27 AM,  <xgchenshy@xxxxxxxxx> wrote:  
> > > From: Xiaoguang Chen <xgchenshy@xxxxxxxxx>
> > >
> > > dwapb_irq_set_type overwrites polarity register value for
> > > IRQ_TYPE_EDGE_BOTH case. If the polarity of one gpio is 0
> > > by default, then it will set falling edge irq trigger.
> > > and the gpio may requires rising edge irq for the first time,
> > > and it will be missed.
> > >
> > > Do not overwrite polarity register for IRQ_TYPE_EDGE_BOTH case
> > > can solve this issue.  
> 
> I think this is a correct fix.
> 
> > >
> > > Signed-off-by: Xiaoguang Chen <xgchenshy@xxxxxxxxx>  
> 
> Tested-by: Jisheng Zhang <jszhang@xxxxxxxxxxx>

Per my test, this patch fixes the following bug:

make use of CD-GPIO mechanism. Cold boot with sdcard inserted, hot-unplug
the sdcard, sometimes, kernel won't get the remove interrupt.

Thanks
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux