remoteproc: zynqMP_a53: Do not clear IPI irq when it is probed
authorWendy Liang <jliang@xilinx.com>
Fri, 13 Jan 2017 18:53:47 +0000 (10:53 -0800)
committerWendy Liang <jliang@xilinx.com>
Fri, 3 Feb 2017 21:41:22 +0000 (13:41 -0800)
Do not clear IPI irq when it is probed as it is possible for the other
end has already kicked IPI when it is probed.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
lib/remoteproc/drivers/zynqmp_remoteproc_a53.c

index 92a7fa1b7bebb7fc6069767eb8ff06c10ab74c64..52823d69013c0077ef12b2bc4b4551af04bea205 100644 (file)
@@ -186,7 +186,6 @@ static int _initialize(struct hil_proc *proc)
        int ret;
        struct proc_intr *intr_info;
        struct ipi_info *ipi;
-       unsigned int ipi_intr_status;
        int i;
 
        if (!proc)
@@ -215,11 +214,6 @@ static int _initialize(struct hil_proc *proc)
                }
 
                if (ipi->io) {
-                       ipi_intr_status = (unsigned int)metal_io_read32(
-                               ipi->io, IPI_ISR_OFFSET);
-                       if (ipi_intr_status & ipi->ipi_chn_mask)
-                               metal_io_write32(ipi->io, IPI_ISR_OFFSET,
-                                       ipi->ipi_chn_mask);
                        metal_io_write32(ipi->io, IPI_IDR_OFFSET,
                                ipi->ipi_chn_mask);
                        atomic_store(&ipi->sync, 1);