diff options
author | Doug Berger <opendmb@gmail.com> | 2023-08-30 15:47:47 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-11-20 11:59:30 +0100 |
commit | e5a8fc34283e6488c000c33bbcf186f2ec254fd0 (patch) | |
tree | a657f69921d631da59ad28dd5d677af54ca3a46c /drivers/cxl | |
parent | e49a51a96b531f1b4bcd8d358e645b6c74ef67e6 (diff) | |
download | linux-stable-e5a8fc34283e6488c000c33bbcf186f2ec254fd0.tar.gz linux-stable-e5a8fc34283e6488c000c33bbcf186f2ec254fd0.tar.bz2 linux-stable-e5a8fc34283e6488c000c33bbcf186f2ec254fd0.zip |
rtc: brcmstb-waketimer: support level alarm_irq
[ Upstream commit e005a9b35b464be5b2e0194f717e90e7e496785d ]
Some devices (e.g. BCM72112) use an alarm_irq interrupt that is
connected to a level interrupt controller rather than an edge
interrupt controller. In this case, the interrupt cannot be left
enabled by the irq handler while preserving the hardware wake-up
signal on wake capable devices or an interrupt storm will occur.
The alarm_expired flag is introduced to allow the disabling of
the interrupt when an alarm expires and to support balancing the
calls to disable_irq() and enable_irq() in accordance with the
existing design.
Fixes: 24304a87158a ("rtc: brcmstb-waketimer: allow use as non-wake alarm")
Signed-off-by: Doug Berger <opendmb@gmail.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://lore.kernel.org/r/20230830224747.1663044-1-opendmb@gmail.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/cxl')
0 files changed, 0 insertions, 0 deletions