Browse Source

Merge branch 'topic/4.19/am65x' of git://git.ti.com/rpmsg/remoteproc into rpmsg-ti-linux-4.19.y

Pull in the dedicated AM65x remoteproc topic branch that fixes up an
incorrect macro usage in the pruss_intc_irq_set_affinity() function
introduced by code added in the most recent merge that pulled in a
bug fix for the INTC mapping configuration logic.

* 'topic/4.19/am65x' of git://git.ti.com/rpmsg/remoteproc:
  irqchip/irq-pruss-intc: Fix incorrect macro replacement

Signed-off-by: Suman Anna <s-anna@ti.com>
Suman Anna 6 years ago
parent
commit
1ea002a2f1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/irqchip/irq-pruss-intc.c

+ 1 - 1
drivers/irqchip/irq-pruss-intc.c

@@ -490,7 +490,7 @@ static int pruss_intc_irq_set_affinity(struct irq_data *data,
 	ch &= CMR_EVT_MAP_MASK;
 
 	/* find programmed host interrupt */
-	host = pruss_intc_read_reg(intc, PRU_INTC_HMR(ch / HMR_CH_MAP_BITS));
+	host = pruss_intc_read_reg(intc, PRU_INTC_HMR(ch / HMR_CH_PER_REG));
 	host >>= (ch % HMR_CH_PER_REG) * HMR_CH_MAP_BITS;
 	host &= HMR_CH_MAP_MASK;