From nobody Mon Apr 18 19:29:59 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 9345A11DD704; Mon, 18 Apr 2022 19:30:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Khxpb6X1Zz4bLg; Mon, 18 Apr 2022 19:29:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650310200; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+qUdZm+u90jwK7+Pu6KMqHrqmmsUA4b359uxueTmYtE=; b=pEffoB7LhmxV6EBsU6QJpmBA5wCUNLODrjfao+mJJolm3ruW92CFewrNKghmJ1GtJobQ+h NR/1H6sCMRWJ7Ep8+8HF2pWQfVSFaX5EaSGpTS1hbgNgPbnQgPHlMW80fsq2fWZ0zY7PqK MgILjpTqXWHPUhbXcTlqBikvHCCHPg2Y5pY8ZvPUNzy14dYqUJKbeNU1VjZ1owic5+ZEy9 5cKC43sPor5oSQ4Qby5kscuICKlGH31IE/O2nqB2bhefKMnKiXVlVJ8p8g3NyLsaPTutIg FlX4HChzBvF9e9pXhiQW+KA5KtunwRA5S+MNIeo82KUn2sDgrMEgOr67FdaQJw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A452D18E44; Mon, 18 Apr 2022 19:29:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23IJTxpW016851; Mon, 18 Apr 2022 19:29:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23IJTx7Y016850; Mon, 18 Apr 2022 19:29:59 GMT (envelope-from git) Date: Mon, 18 Apr 2022 19:29:59 GMT Message-Id: <202204181929.23IJTx7Y016850@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: dca7f696322a - main - as3722_gpio_pin_setflags: Use computed mode instead of hardcoded PUSHPULL. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: dca7f696322a06247a1f73ad0e843ff9795457a1 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650310200; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+qUdZm+u90jwK7+Pu6KMqHrqmmsUA4b359uxueTmYtE=; b=jGhAtU0ZMvzykcp1KvALkkkNlcmGgb6upc+H6+mC9a1g+m47CH+MteMsjtLl2Q6Oyd5Q8U z6cPa/4O1sIgvgngUOnnz/Uh3S0sGNlcbk+cam6xkEBvQj4y8jrEbb3BOGon4K2G11wiGA pFh94A+aHoQVj0b7PeWZK9lqENMb7panz7wpTANS9Y5WTD13fH60oL4LhYd88jcmmWoMSw Bpto50NCf4KJ54z0szJbLk/ZTs1WoYPRsT489Ha55ySHd1oVMjd2KxC709ecH8+bfIMxHh fTfZMpXQGcdK1G6DPwnZrr3qRACmYh20HB6T9qsmYTUbkyujCh4giFlFN3+IRA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650310200; a=rsa-sha256; cv=none; b=vr/MX1XWrWVq2hDYxitwQuFo2o4+QZndGk/OW+YSSiOKnhXuqDrE0KT2hCOoE0c8Q6h5aD 0rrWOVkHBiNX0Vt1KWJtm+5dwTVHvtZQDKBIoM0KJETuZFw27yRj9stzUwSzqXtehyfwpZ P9hGGrJXITQqJ8UHmYP+iNc/JY+Ct6mfnPYvbGya8uQnaAwkRdPRqWYAHze6KFYH05wk0W Hiye3IGqoRGGz42fJLRnx0uuTuCOFqnEbz0JGSID3fJSTqT9e3BmX2yGFleqMElzTdL8I9 ns7tczIDznrNXsUGQ7P9RUzTiQrwYsoawnFEJ1+ZLfHUg3yMFnyZSXtvLH9SQw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=dca7f696322a06247a1f73ad0e843ff9795457a1 commit dca7f696322a06247a1f73ad0e843ff9795457a1 Author: John Baldwin AuthorDate: 2022-04-18 19:28:48 +0000 Commit: John Baldwin 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);