Re: [Question]should we not ignore the masked interrupt in regmap?

2013-10-12 Thread Mark Brown
On Sat, Oct 12, 2013 at 08:50:57PM +0800, yi zhang wrote: > As I understand it, this "init_ack_masked" is used in initialization > (please correct me if I'm wrong); > but if the sequence above happens not in the initialization, then what > should we do to handle this? > could you please give us

Re: [Question]should we not ignore the masked interrupt in regmap?

2013-10-12 Thread yi zhang
2013/10/12 Mark Brown : > On Sat, Oct 12, 2013 at 11:14:27AM +0800, yi zhang wrote: > >> 1) interrupt is triggered; >> 2) a thread disables it(then the mask bit is set); >> 3) _Then_ the interrupt thread is executed, it _ignore _ and doesn’t >> handle this interrupt; >>because the interrupt is

Re: [Question]should we not ignore the masked interrupt in regmap?

2013-10-12 Thread Mark Brown
On Sat, Oct 12, 2013 at 11:14:27AM +0800, yi zhang wrote: > 1) interrupt is triggered; > 2) a thread disables it(then the mask bit is set); > 3) _Then_ the interrupt thread is executed, it _ignore _ and doesn’t > handle this interrupt; >because the interrupt is not ACKed, the interrupt status

Re: [Question]should we not ignore the masked interrupt in regmap?

2013-10-12 Thread Mark Brown
On Sat, Oct 12, 2013 at 11:14:27AM +0800, yi zhang wrote: 1) interrupt is triggered; 2) a thread disables it(then the mask bit is set); 3) _Then_ the interrupt thread is executed, it _ignore _ and doesn’t handle this interrupt; because the interrupt is not ACKed, the interrupt status is

Re: [Question]should we not ignore the masked interrupt in regmap?

2013-10-12 Thread yi zhang
2013/10/12 Mark Brown broo...@kernel.org: On Sat, Oct 12, 2013 at 11:14:27AM +0800, yi zhang wrote: 1) interrupt is triggered; 2) a thread disables it(then the mask bit is set); 3) _Then_ the interrupt thread is executed, it _ignore _ and doesn’t handle this interrupt; because the

Re: [Question]should we not ignore the masked interrupt in regmap?

2013-10-12 Thread Mark Brown
On Sat, Oct 12, 2013 at 08:50:57PM +0800, yi zhang wrote: As I understand it, this init_ack_masked is used in initialization (please correct me if I'm wrong); but if the sequence above happens not in the initialization, then what should we do to handle this? could you please give us advice?

[Question]should we not ignore the masked interrupt in regmap?

2013-10-11 Thread yi zhang
Hi, Mark: Sorry to trouble you, I have a question about the interrupt handling of regmap framework; in the regmap_irq_thread(), from the following code, we only handle the unmasked interrupt; 256 data->status_buf[i] &= ~data->mask_buf[i]; but in the following sequence, irq

[Question]should we not ignore the masked interrupt in regmap?

2013-10-11 Thread yi zhang
Hi, Mark: Sorry to trouble you, I have a question about the interrupt handling of regmap framework; in the regmap_irq_thread(), from the following code, we only handle the unmasked interrupt; 256 data-status_buf[i] = ~data-mask_buf[i]; but in the following sequence, irq storm