power: qpnp-fg-gen3: Use DMA grant interrupt efficiently

Currently, DMA grant interrupt is handled for both rising and
falling edge even though only rising edge is used for completing
the DMA grant request. Configure DMA grant interrupt only for
rising edge so that it can be used efficiently by reducing
the interrupt handling.

While at it, add support to dump registers when a DMA grant
request times out. This will be helpful for debugging when such
an event happens.

Change-Id: I7666cef6c2f0aa93dece463b905b8d7aa940be39
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
diff --git a/arch/arm64/boot/dts/qcom/pmi8998.dtsi b/arch/arm64/boot/dts/qcom/pmi8998.dtsi
index a8b826a..1ee6d51 100644
--- a/arch/arm64/boot/dts/qcom/pmi8998.dtsi
+++ b/arch/arm64/boot/dts/qcom/pmi8998.dtsi
@@ -328,7 +328,8 @@
 				reg = <0x4400 0x100>;
 				interrupts = <0x2 0x44 0x0 IRQ_TYPE_EDGE_BOTH>,
 					     <0x2 0x44 0x1 IRQ_TYPE_EDGE_BOTH>,
-					     <0x2 0x44 0x2 IRQ_TYPE_EDGE_BOTH>;
+					     <0x2 0x44 0x2
+							IRQ_TYPE_EDGE_RISING>;
 				interrupt-names = "ima-rdy",
 						  "mem-xcp",
 						  "dma-grant";