Date: Mon, 18 Apr 2022 19:29:59 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: dca7f696322a - main - as3722_gpio_pin_setflags: Use computed mode instead of hardcoded PUSHPULL. Message-ID: <202204181929.23IJTx7Y016850@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=dca7f696322a06247a1f73ad0e843ff9795457a1 commit dca7f696322a06247a1f73ad0e843ff9795457a1 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-18 19:28:48 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-18 19:28:48 +0000 as3722_gpio_pin_setflags: Use computed mode instead of hardcoded PUSHPULL. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D34855 --- 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 b46aef2af795..75678132ccbd 100644 --- a/sys/arm/nvidia/as3722_gpio.c +++ b/sys/arm/nvidia/as3722_gpio.c @@ -441,7 +441,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?202204181929.23IJTx7Y016850>