浏览代码

irqchip/irq-pruss-intc: Fix incorrect macro replacement

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>
Suman Anna 6 年之前
父节点
当前提交
3671c56b73
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/irqchip/irq-pruss-intc.c

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

@@ -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;