svn commit: r355853 - head/sys/arm64/rockchip

Emmanuel Vadot manu at FreeBSD.org
Tue Dec 17 10:57:32 UTC 2019


Author: manu
Date: Tue Dec 17 10:57:31 2019
New Revision: 355853
URL: https://svnweb.freebsd.org/changeset/base/355853

Log:
  arm64: rockchip: rk_gpio: Fix pin number
  
  The maxpin counter starts at 0, fix one by one error.
  This is still not totally correct for some banks in some SoC that have
  fewer pins but this will be dealt with in another commit.
  
  MFC after:	3 days

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

Modified: head/sys/arm64/rockchip/rk_gpio.c
==============================================================================
--- head/sys/arm64/rockchip/rk_gpio.c	Tue Dec 17 10:55:28 2019	(r355852)
+++ head/sys/arm64/rockchip/rk_gpio.c	Tue Dec 17 10:57:31 2019	(r355853)
@@ -194,7 +194,7 @@ rk_gpio_pin_max(device_t dev, int *maxpin)
 
 	/* Each bank have always 32 pins */
 	/* XXX not true*/
-	*maxpin = 32;
+	*maxpin = 31;
 	return (0);
 }
 


More information about the svn-src-all mailing list