소스 검색

gpio: dwapb: use dwapb_read instead of readl_relaxed

Commit 67809b974a07 ("GPIO: gpio-dwapb: Change readl&writel to
dwapb_read&dwapb_write") missed this readl_relaxed() usage, I'm not
sure the reason, maybe for performance reason? But if we do care
the performance, we could use the relaxed io in dwapb_read and
dwapb_write.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Jisheng Zhang 8 년 전
부모
커밋
5664aa1c9e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      drivers/gpio/gpio-dwapb.c

+ 1 - 1
drivers/gpio/gpio-dwapb.c

@@ -164,7 +164,7 @@ static void dwapb_toggle_trigger(struct dwapb_gpio *gpio, unsigned int offs)
 
 
 static u32 dwapb_do_irq(struct dwapb_gpio *gpio)
 static u32 dwapb_do_irq(struct dwapb_gpio *gpio)
 {
 {
-	u32 irq_status = readl_relaxed(gpio->regs + GPIO_INTSTATUS);
+	u32 irq_status = dwapb_read(gpio, GPIO_INTSTATUS);
 	u32 ret = irq_status;
 	u32 ret = irq_status;
 
 
 	while (irq_status) {
 	while (irq_status) {