From nobody Mon Jul 29 20:18:04 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 4WXqRd1dSgz5RvfT; Mon, 29 Jul 2024 20:18:05 +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 4WXqRd0CBGz4gjH; Mon, 29 Jul 2024 20:18:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722284285; 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=jVZZ/KwT9eTIakpIOIFy7rwM8nHI4SWoZ7AsNZWgMWg=; b=tNog1CnpXNnfUBQwrLvaqZ/8Ogqp6MeKNy0c2CgCuQncVnPZ3DNgeRCrn4AnKswcoXukmC KApoUyLqo1DU9WDctnvrjkvl6Au7A+aKIJw+mzQGuCTI3HnTO91jYgEt7vw3YwjXk4k1T4 h8G5K5yIKZNqVGUWi/INbv0t4HqpTWbumZdGDAWgHuG5UP1DBzR6YXM6U654vqr2ugRx8D VUYPn6+08E4m0GLltG1/uci6L6hwf/H1/pEa/KW0ao0p0WgqGeAW76x+yOZPIBI3brQgKp tc5CdSk18ctd3zB6oZOozasCnDBg1CHdVTvzFrMpOja4Eg2FfeeEKmi3hiEdhw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722284285; a=rsa-sha256; cv=none; b=lrhSh9ikmRtN+yL8ylqYis8aaKS06orNlQHVCjN08GjenGJXGVNN8jyuiiELB5DUxzDcWa GQSCmz/A+GzZfRpo2pG5KmwEtM3YT66WO9h1h+/EhyxsSlDWotx7ov6jeR2KXkM5C5GB/K NsTmpr0BBKDN9DHkmDH49I2s7pUVDoFnxfWit7funPIp9r2IC3CCb0oXeCSioLQk3HrQf+ pcfM2LFD/HI8wm9Api0mG8lav84a5RHKF8V9ugGE+/acmzhzbo5IvKCKA8qbgf505fUgF1 TXZeQsHvjM2pjrnCapyipP+NpSZAUfPtuxc2kecvNZNl4ZmfEcQjuOtWwItUcg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722284285; 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=jVZZ/KwT9eTIakpIOIFy7rwM8nHI4SWoZ7AsNZWgMWg=; b=DTLdTLXuhYI5pp8aNb40jdURXHeda/FI+bueuc+737fgGKcBE7Q61ZwqT9xrKUms35j0so Uvb3H6j6qL5G9U7F8lnJ18J4Lrg0w5H9pQM71YMjMsXG8KAAzNeg2O/drbqTCZz69kex8x 4qOfpxV8HljEF+6ctjGIIinKHddP/zgZD2Z3z8/4MiQdY0TWvfPfCPuGstpPcTKHI4QSlB usmLk2CwMHgsqu2ja+QZfUNERvQSLoN7K9l3dml75SQUxo0GkkBdawn8n6rptAuchu3pGm Ibb8/sJWroVfig77ZR0SbP6o9Ds699ycWLja35SvTVg+/+3KJgFh6Vfa6g/WTw== 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 4WXqRc6rvrzp7C; Mon, 29 Jul 2024 20:18:04 +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 46TKI4cI079187; Mon, 29 Jul 2024 20:18:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46TKI40v079184; Mon, 29 Jul 2024 20:18:04 GMT (envelope-from git) Date: Mon, 29 Jul 2024 20:18:04 GMT Message-Id: <202407292018.46TKI40v079184@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 969484b53217 - main - bytgpio: expose PNP info 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 969484b53217cee65d6802f1954f0431cbfc6b45 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=969484b53217cee65d6802f1954f0431cbfc6b45 commit 969484b53217cee65d6802f1954f0431cbfc6b45 Author: Ahmad Khalifa AuthorDate: 2024-07-26 08:21:44 +0000 Commit: Warner Losh CommitDate: 2024-07-29 20:09:08 +0000 bytgpio: expose PNP info Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1349 --- sys/dev/gpio/bytgpio.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/gpio/bytgpio.c b/sys/dev/gpio/bytgpio.c index b3f5f02081c5..f7b2a73ec6cb 100644 --- a/sys/dev/gpio/bytgpio.c +++ b/sys/dev/gpio/bytgpio.c @@ -278,6 +278,8 @@ const struct pinmap_info bytgpio_sus_pins[] = { GPIO_PIN_MAP(40, 0) }; +static char *bytgpio_gpio_ids[] = { "INT33FC", NULL }; + #define SUS_PINS nitems(bytgpio_sus_pins) #define BYGPIO_PIN_REGISTER(sc, pin, r) ((sc)->sc_pinpad_map[(pin)].reg * 16 + (r)) @@ -538,12 +540,11 @@ bytgpio_pin_toggle(device_t dev, uint32_t pin) static int bytgpio_probe(device_t dev) { - static char *gpio_ids[] = { "INT33FC", NULL }; int rv; if (acpi_disabled("gpio")) return (ENXIO); - rv = ACPI_ID_PROBE(device_get_parent(dev), dev, gpio_ids, NULL); + rv = ACPI_ID_PROBE(device_get_parent(dev), dev, bytgpio_gpio_ids, NULL); if (rv <= 0) device_set_desc(dev, "Intel Baytrail GPIO Controller"); return (rv); @@ -675,3 +676,4 @@ static driver_t bytgpio_driver = { DRIVER_MODULE(bytgpio, acpi, bytgpio_driver, 0, 0); MODULE_DEPEND(bytgpio, acpi, 1, 1, 1); MODULE_DEPEND(bytgpio, gpiobus, 1, 1, 1); +ACPI_PNP_INFO(bytgpio_gpio_ids);