From nobody Sat Oct 12 18:15:20 2024 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 4XQs9N6ZRZz5Ymjv; Sat, 12 Oct 2024 18:15:20 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XQs9N5xWvz4C9b; Sat, 12 Oct 2024 18:15:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728756920; 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=SMFdblNK+RqoNnd541hEG3/UPSg4EfGeBiGddquVdQ8=; b=rorb9KHru02iasyn9dHnWtXfM/DxA9cY1RfLcqlDh7d70B/VrUFnw6U101ZlQe62Fo98k1 rX2qyhFV0+iC71l9VvCCUWT89i4Bzi2gP102ZVK2wHNR2dy72QNKgfRpCAhstq7zy9T51r 2eZjtNGVVgFKE0ZCKhyGbXwakRA0T+lxJTC7Fa3YJGWxJOzrKAsq8LGxkTT4iLusERDZa2 VKwr7Za1B7rUwTBnDIrPW2/Rs3GA3vWnq7BBGYyRCT1TswUGmGl5ZmTfjiEQH4Jst9gsbP 7tvebm+XnnfIM6Vcw8VoXN6CjXMnU+8btPWeODYAwB7jTPyh1xH1XcEMcOksCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728756920; 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=SMFdblNK+RqoNnd541hEG3/UPSg4EfGeBiGddquVdQ8=; b=faIANP2sZ1OCwvHAMqLuUr47lhIDyJBe/yABjZIIFkqcrIm1R02JUo+IM3jAOJjkrymJ3A YaBQ+Eojr0lMHvH5j3am0O/o4kxxBStdpCUoA9QzbuE9aCVoRFxJqApG/sBCLkBgwY1avD /cuCLO0C3nfV1Cv8CbozU1jstd7WX0C7drzf0r0ngORzcQ3Y0EOIKNJi7+ILMVXKmHh4+p SnWxHvxnpIYqgY8/ZZ4A1e5GsTTesflam8KZtcTKxxwbUM/un4jWAvB1qSzBrZHNK8lYWz ERi+pR/N/Uy4ptzvLQP1UUViu59XkBiyQmQmC02T/JPiAPz5JPisIFlYe9TnOQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728756920; a=rsa-sha256; cv=none; b=KcstQa2B8MRO8pFRgEM88PDAsNZjDhhIrOETT8wOINcK2gV0B4j62mAKcpxghn1Xne+uaP u4jTaEdutpFzo2I83xm4KpnuZjnAL7md/EkkFgXCcYw6Wsa1j0JPutZ3Hgy9wA5XJ8Erqo ZiEwAeq7Lb/hcrNnPRF1yWDj9FKACAeyrsuEbbsku9DuqRC7RPb1UZFAfMXiEE3qX69/R7 JgptrzdTMsKgV9gj/cTiftG5EX/RwT8J6CkCAw79NgywkDl+zRRc/XDoGwwLgKDZ0mH+NS J97WoYIqTr6VT4jVGw+OXCDvo944POdgtb/8mSumD3w1Alc/0bAW54MUxXIjdg== 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 4XQs9N5XJGzKh3; Sat, 12 Oct 2024 18:15:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49CIFKol066146; Sat, 12 Oct 2024 18:15:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49CIFKdF066143; Sat, 12 Oct 2024 18:15:20 GMT (envelope-from git) Date: Sat, 12 Oct 2024 18:15:20 GMT Message-Id: <202410121815.49CIFKdF066143@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Colin Percival Subject: git: c808132731aa - main - acpi_gpiobus: OR GPIO_PIN_(IN|OUT)PUT into flags 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cperciva X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c808132731aa999947f4f7810157d7d8d9aaf61e Auto-Submitted: auto-generated The branch main has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=c808132731aa999947f4f7810157d7d8d9aaf61e commit c808132731aa999947f4f7810157d7d8d9aaf61e Author: Colin Percival AuthorDate: 2024-10-12 18:12:15 +0000 Commit: Colin Percival CommitDate: 2024-10-12 18:14:25 +0000 acpi_gpiobus: OR GPIO_PIN_(IN|OUT)PUT into flags Right now flags is set to 0 before this "=" -> "|=" change, but it will matter when the NOT_YET section above becomes effective. MFC after: 2 weeks Sponsored by: Amazon --- sys/dev/gpio/acpi_gpiobus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/gpio/acpi_gpiobus.c b/sys/dev/gpio/acpi_gpiobus.c index eafa1c07fab1..3b6fc6dde674 100644 --- a/sys/dev/gpio/acpi_gpiobus.c +++ b/sys/dev/gpio/acpi_gpiobus.c @@ -75,10 +75,10 @@ acpi_gpiobus_convflags(ACPI_RESOURCE_GPIO *gpio_res) #endif switch (gpio_res->IoRestriction) { case ACPI_IO_RESTRICT_INPUT: - flags = GPIO_PIN_INPUT; + flags |= GPIO_PIN_INPUT; break; case ACPI_IO_RESTRICT_OUTPUT: - flags = GPIO_PIN_OUTPUT; + flags |= GPIO_PIN_OUTPUT; break; }