]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - rpmsg/rpmsg.git/commitdiff
irqchip/irq-pruss-intc: Fix incorrect macro replacement
authorSuman Anna <s-anna@ti.com>
Mon, 1 Jul 2019 19:11:13 +0000 (14:11 -0500)
committerSuman Anna <s-anna@ti.com>
Mon, 1 Jul 2019 19:18:23 +0000 (14:18 -0500)
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>
drivers/irqchip/irq-pruss-intc.c

index fe4dc776fb2af991bd05df3e262e1a9a056d310f..b99ccaa6a06b67d49a7286d7115f34e161f017a6 100644 (file)
@@ -447,7 +447,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;