From nobody Sun Nov 3 16:16:53 2024 X-Original-To: dev-commits-src-all@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 4XhKVY5m5vz5cNnh; Sun, 03 Nov 2024 16:16:53 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhKVY2hRWz4S12; Sun, 3 Nov 2024 16:16:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730650613; 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=0jqGsZbdC/Sn7mIlXz7qvahsyNM15luC3ZVULX3I07Q=; b=mnpJUg1igYa+g0G8wvoNFNS3oU54It9LXwxlvDSwQFxqKbW1bC7859OemyhAW6i+21fJdz iFDzTGc4ldkrCKA+s3E1ITJfc53Lbad+GOWj1yuYhvQXbm/OcPyZfveXQzouGzh85HBqxc uQtPn7Zb3VypYHfWin6vRqGDq3tObmu9gOSz6SF1iFZ+2IvVxrRRUURvBQhC7NJ1vbGMzn YUtqmHETRHRyAkrEbpgr4jBhDRkBNPQPD4ZDHwj8KqJ6JgMhLtRc+HaHNfi6PYCNsCXX0n UZONfOhw/VZ132DJMtyoqm06lBytIpUt48yrb1DCkAMNAXqIzqUi9egMtzfn5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730650613; 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=0jqGsZbdC/Sn7mIlXz7qvahsyNM15luC3ZVULX3I07Q=; b=QLevADkfcsGxeNveO5JvxiQT4CadqVYGnRGikffTaU8N77lZhxpx/LvpAKeV6X0eWc6sM+ 3PXYq3+Cgw6lF8KVQbx76DxREFdzQzP03rMCrBZfsv8SZVbKZxW8VITLnShS6vfiPakI/m U7QfWiJ+USfasIWzOO6W+X6XgjiGZzyJ9gNHLskN/U1yeMm7jnagA4eXCZtXqUA+Rke+M1 nc2knUDbT3OfBu9y09IQQ6gDDG+2QQn51YO0otn0uGr2QaiplTrdxFUF3X+dgl2ydGMxNw C7VVjfyeHO6rfmtroIW/93M0GLkr/fJc3RqF1/NPoculcUNAfxhLBOCcfHTHiA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730650613; a=rsa-sha256; cv=none; b=V23+3BZg1job9HYkfmZVpRS9WIKuIEHBW3O0wrzVyhvXoQjUihfzcXyL7GhJbb6x5mMvZ5 5VDr6Exc2zm5s4Knvr6TLHmplxYYp8G3wyyDrgG/r2+g+XFWH1ST8/Y25oovYyGMHqNcXl /UFaUuB5RTy6DTxg9iGWdLghBGTT9qK1zY3DF1YHgdS0FqZe7Qs/uQor0qfs5Rh7TE7SNf Kq2Ovw+ZFMCnwNCgg+DxqtgEPyjNMuI1pY2PCU77Z+irCIP1Yg8OBJ1wqqQ3fqAfqRaK2X OFnNn5Tk/b0c7ykiZr8+j2Vwds4JSWKSmLNHkOE89hHnI/xtbFHp7uvqQiXRtA== 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 4XhKVY2GLXzwTN; Sun, 3 Nov 2024 16:16:53 +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 4A3GGrih036472; Sun, 3 Nov 2024 16:16:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A3GGrOH036469; Sun, 3 Nov 2024 16:16:53 GMT (envelope-from git) Date: Sun, 3 Nov 2024 16:16:53 GMT Message-Id: <202411031616.4A3GGrOH036469@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Colin Percival Subject: git: 193a9943ba09 - releng/14.2 - gpiobus: Make gpiobus_read_ivar extern List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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/releng/14.2 X-Git-Reftype: branch X-Git-Commit: 193a9943ba0905cae2c828131b27ad36541ca061 Auto-Submitted: auto-generated The branch releng/14.2 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=193a9943ba0905cae2c828131b27ad36541ca061 commit 193a9943ba0905cae2c828131b27ad36541ca061 Author: Colin Percival AuthorDate: 2024-10-22 17:51:57 +0000 Commit: Colin Percival CommitDate: 2024-11-03 16:15:27 +0000 gpiobus: Make gpiobus_read_ivar extern This allows acpi_gpiobus to override the method and fall back to the generic gpiobus_read_ivar function if needed. Reviewed by: andrew Approved by: re (kib) MFC after: 1 week Sponsored by: Amazon Differential Revision: https://reviews.freebsd.org/D47250 (cherry picked from commit bc0d10d01c3c69004d600e14d53cd0dceffe4b09) (cherry picked from commit fffdfe2f6770946bb5d5204df0a97105e1dceccb) --- sys/dev/gpio/gpiobus.c | 2 +- sys/dev/gpio/gpiobusvar.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/gpio/gpiobus.c b/sys/dev/gpio/gpiobus.c index 7bdb080eb4f1..674a04bc401b 100644 --- a/sys/dev/gpio/gpiobus.c +++ b/sys/dev/gpio/gpiobus.c @@ -753,7 +753,7 @@ gpiobus_hinted_child(device_t bus, const char *dname, int dunit) } } -static int +int gpiobus_read_ivar(device_t dev, device_t child, int which, uintptr_t *result) { struct gpiobus_ivar *devi; diff --git a/sys/dev/gpio/gpiobusvar.h b/sys/dev/gpio/gpiobusvar.h index e3669e82e594..74783e112f89 100644 --- a/sys/dev/gpio/gpiobusvar.h +++ b/sys/dev/gpio/gpiobusvar.h @@ -179,6 +179,7 @@ int gpiobus_detach(device_t); int gpiobus_init_softc(device_t); int gpiobus_alloc_ivars(struct gpiobus_ivar *); void gpiobus_free_ivars(struct gpiobus_ivar *); +int gpiobus_read_ivar(device_t, device_t, int, uintptr_t *); int gpiobus_acquire_pin(device_t, uint32_t); int gpiobus_release_pin(device_t, uint32_t);