Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 May 2022 22:54:56 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 050b951c6719 - stable/13 - as3722_gpio_pin_setflags: Use computed mode instead of hardcoded PUSHPULL.
Message-ID:  <202205132254.24DMsufs078440@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=050b951c6719acd31293c00b4c58ebcca13b7e02

commit 050b951c6719acd31293c00b4c58ebcca13b7e02
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-18 19:28:48 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-13 22:35:43 +0000

    as3722_gpio_pin_setflags: Use computed mode instead of hardcoded PUSHPULL.
    
    Reviewed by:    emaste
    Differential Revision:  https://reviews.freebsd.org/D34855
    
    (cherry picked from commit dca7f696322a06247a1f73ad0e843ff9795457a1)
---
 sys/arm/nvidia/as3722_gpio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/arm/nvidia/as3722_gpio.c b/sys/arm/nvidia/as3722_gpio.c
index 1afdb8a94f8b..bbe8b399be8a 100644
--- a/sys/arm/nvidia/as3722_gpio.c
+++ b/sys/arm/nvidia/as3722_gpio.c
@@ -443,7 +443,7 @@ as3722_gpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags)
 	}
 	mode = as3722_gpio_get_mode(sc, pin, flags);
 	ctrl &= ~(AS3722_GPIO_MODE_MASK << AS3722_GPIO_MODE_SHIFT);
-	ctrl |= AS3722_MODE_PUSH_PULL << AS3722_GPIO_MODE_SHIFT;
+	ctrl |= mode << AS3722_GPIO_MODE_SHIFT;
 	rv = 0;
 	if (ctrl != sc->gpio_pins[pin]->pin_ctrl_reg) {
 		rv = WR1(sc, AS3722_GPIO0_CONTROL + pin, ctrl);



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