[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK=oMXetPxaQ-MeL9L9+182X220ivu2G5+i-42kqtAUjbfvg2w@mail.gmail.com>
Date: Sat, 12 Oct 2013 11:14:27 +0800
From: yi zhang <yizhang.mrvl@...il.com>
To: Mark Brown <broonie@...nel.org>
Cc: Yi Zhang <yizhang@...vell.com>, zhouqiao@...vell.com,
zhangwm@...vell.com, linux-kernel@...r.kernel.org
Subject: [Question]should we not ignore the masked interrupt in regmap?
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists