Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jun 2018 14:46:07 +0000 (UTC)
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335444 - head/sys/arm64/rockchip
Message-ID:  <201806201446.w5KEk71m072352@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: manu
Date: Wed Jun 20 14:46:07 2018
New Revision: 335444
URL: https://svnweb.freebsd.org/changeset/base/335444

Log:
  rk_gpio: Read the correct register for gpio read
  
  Reported by:	jmcneill

Modified:
  head/sys/arm64/rockchip/rk_gpio.c

Modified: head/sys/arm64/rockchip/rk_gpio.c
==============================================================================
--- head/sys/arm64/rockchip/rk_gpio.c	Wed Jun 20 14:45:26 2018	(r335443)
+++ head/sys/arm64/rockchip/rk_gpio.c	Wed Jun 20 14:46:07 2018	(r335444)
@@ -277,7 +277,7 @@ rk_gpio_pin_get(device_t dev, uint32_t pin, unsigned i
 	sc = device_get_softc(dev);
 
 	RK_GPIO_LOCK(sc);
-	reg = RK_GPIO_READ(sc, RK_GPIO_SWPORTA_DR);
+	reg = RK_GPIO_READ(sc, RK_GPIO_EXT_PORTA);
 	RK_GPIO_UNLOCK(sc);
 
 	*val = reg & (1 << pin) ? 1 : 0;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806201446.w5KEk71m072352>