summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4022d12)
raw | patch | inline | side by side (parent: 4022d12)
author | Suman Anna <s-anna@ti.com> | |
Mon, 1 Jul 2019 19:11:13 +0000 (14:11 -0500) | ||
committer | Suman 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>
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 | patch | blob | history |
index fe4dc776fb2af991bd05df3e262e1a9a056d310f..b99ccaa6a06b67d49a7286d7115f34e161f017a6 100644 (file)
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;