提交 04d80dbe 编写于 作者: H Heyi Guo 提交者: Marc Zyngier

irqchip/gic-v3-its: Fix access width for gicr_syncr

GICR_SYNCR is a 32bit register, so it is better to access it with
32bit access width, though we have not seen any real problem.
Signed-off-by: NHeyi Guo <guoheyi@huawei.com>
Signed-off-by: NMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200225090023.28020-1-guoheyi@huawei.com
上级 47beed51
...@@ -1321,7 +1321,7 @@ static void lpi_write_config(struct irq_data *d, u8 clr, u8 set) ...@@ -1321,7 +1321,7 @@ static void lpi_write_config(struct irq_data *d, u8 clr, u8 set)
static void wait_for_syncr(void __iomem *rdbase) static void wait_for_syncr(void __iomem *rdbase)
{ {
while (gic_read_lpir(rdbase + GICR_SYNCR) & 1) while (readl_relaxed(rdbase + GICR_SYNCR) & 1)
cpu_relax(); cpu_relax();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册