Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Dec 2019 10:57:32 +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: r355853 - head/sys/arm64/rockchip
Message-ID:  <201912171057.xBHAvWAr069735@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }
 



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