rtc: starfive: Get the interrupt status using Completion.
authorsamin <samin.guo@starfivetech.com>
Mon, 24 Jan 2022 01:40:33 +0000 (09:40 +0800)
committersamin <samin.guo@starfivetech.com>
Wed, 16 Mar 2022 01:57:15 +0000 (09:57 +0800)
commit8b570194e872b142ca27d804ee2ed1f094893ea8
tree723234742732d494f33c32df51dc440ea963274a
parent821d812d3ba552684b1657cadf1db1aadc99e548
rtc: starfive: Get the interrupt status using Completion.

starfiv rtc needs to get interrupt status when setting rtc clock and
configuring hardware calibration. Use completion to identify states in
interrupt handlers.

In addition, when clearing the interrupt, you need to pull to determine
whether to clear the state, otherwise the clearing will be unsuccessful.

Signed-off-by: samin <samin.guo@starfivetech.com>
drivers/rtc/rtc-starfive.c