mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [Question]should we not ignore the masked interrupt in regmap?
@ 2013-10-12  3:14 yi zhang
  2013-10-12 12:32 ` Mark Brown
  0 siblings, 1 reply; 4+ messages in thread
From: yi zhang @ 2013-10-12  3:14 UTC (permalink / raw)
  To: Mark Brown; +Cc: Yi Zhang, zhouqiao, zhangwm, linux-kernel

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 will happen;
do you think we should do a change here to handle all the interrupt here?
thanks very much;

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 not cleared;
4) in Marvell's PMIC, the interrupt line to SOC is always asserted,
then irq storm happens;

------------------------
Yi Zhang

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-10-12 15:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-12  3:14 [Question]should we not ignore the masked interrupt in regmap? yi zhang
2013-10-12 12:32 ` Mark Brown
2013-10-12 12:50   ` yi zhang
2013-10-12 15:40     ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®