aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuman Anna2019-07-01 14:11:13 -0500
committerSuman Anna2019-07-01 14:18:23 -0500
commit3671c56b7309f45f9a8a668af1616bf1980b9aea (patch)
treea4576f80149dc261059b69b6d037fd71570976a1
parent4022d1222efe82fb17ccf271af352b1206b012e0 (diff)
downloadremoteproc-3671c56b7309f45f9a8a668af1616bf1980b9aea.tar.gz
remoteproc-3671c56b7309f45f9a8a668af1616bf1980b9aea.tar.xz
remoteproc-3671c56b7309f45f9a8a668af1616bf1980b9aea.zip
irqchip/irq-pruss-intc: Fix incorrect macro replacementtopic/4.19/pruss
The commit 57c76b3f2804 ("irqchip/irq-pruss-intc: Use macros for operations on CMR and HMR") mistakenly replaced the number of channels per Host Interrupt Map Register (4) with the wrong macro HMR_CH_MAP_BITS which is the number of shift-bits to be used per channel. Use the correct macro to fix this typo. Fixes: 57c76b3f2804 ("irqchip/irq-pruss-intc: Use macros for operations on CMR and HMR") Signed-off-by: Suman Anna <s-anna@ti.com>
-rw-r--r--drivers/irqchip/irq-pruss-intc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-pruss-intc.c b/drivers/irqchip/irq-pruss-intc.c
index fe4dc776fb2a..b99ccaa6a06b 100644
--- a/drivers/irqchip/irq-pruss-intc.c
+++ b/drivers/irqchip/irq-pruss-intc.c
@@ -447,7 +447,7 @@ static int pruss_intc_irq_set_affinity(struct irq_data *data,
447 ch &= CMR_EVT_MAP_MASK; 447 ch &= CMR_EVT_MAP_MASK;
448 448
449 /* find programmed host interrupt */ 449 /* find programmed host interrupt */
450 host = pruss_intc_read_reg(intc, PRU_INTC_HMR(ch / HMR_CH_MAP_BITS)); 450 host = pruss_intc_read_reg(intc, PRU_INTC_HMR(ch / HMR_CH_PER_REG));
451 host >>= (ch % HMR_CH_PER_REG) * HMR_CH_MAP_BITS; 451 host >>= (ch % HMR_CH_PER_REG) * HMR_CH_MAP_BITS;
452 host &= HMR_CH_MAP_MASK; 452 host &= HMR_CH_MAP_MASK;
453 453