From nobody Thu Aug 03 16:11:58 2023 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 4RGv4H1pkwz3cNmw; Thu, 3 Aug 2023 16:11:59 +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 4RGv4H1LlPz4WMh; Thu, 3 Aug 2023 16:11:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691079119; 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=vg2SK37/QZXBCY6ujxfGnhdgcHLmkumIVziwSGTAXdM=; b=vZu5UrvtoXd9Cbf636PtRi+R+PgroRY+g6OsVjos+8ZN3fgDuksReVwbroaGkUts6mNEEv 2wcBCT1/sKj04kGNBztrhaiK2DeoSbD5FUbNTXSn4l4x80zv6pM+2YC0K85LE4hfIebnIk o2y04uvm9J1NBtBEo08TORBoHSskClyywKJnzqzk87uqWJYleoEjCJBWysY+dN6LT8gKh5 JbrzrrD1bXQZY0As5X0A10wwHE8+W0huc80AHZoVgDf39vUOgmpw0pIkI0JwY9UzsMmdKF r8KtJQayqykqJgY/CJvvsCKXXnYGiMHeQfhT/hCGW9ssezxZWKlT0G/oQ+QJdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691079119; 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=vg2SK37/QZXBCY6ujxfGnhdgcHLmkumIVziwSGTAXdM=; b=AaHakKB0j1gyZ6Zh272KuLKHmrTp8Pyok4EhNEi5b9XB7tjsx6oW/3uovWy25b2Tc3S635 1IdhJxcGyY+Y66b5Boft2K9NEkp+cAY47EMRCZmvKd6Zt8qiOBs0N3O28gJxD2/I1pB4g2 FNIIjhrIxF3mbG2yhsL1bxcPCd52GlW0ldMZD+YEjlp0lS9JI6xEGcYhmqUBj5GhT4Mk+f NUjsHJfPP22DIcmn4y/afbvulbsFBAOCJ+vesjegdeyNNF4VRRX9JEynZnWh6EVlv8hlh6 SYUqEZMvnEkO7HJfhwExlSFV2b5gzqJp0SI+VTCxCUe/5fAtQOaDDmluNip4Eg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691079119; a=rsa-sha256; cv=none; b=EUvtA/Dp90EaSCUnx2ExQKIURp4ljDGmoB2MEhCsCCymhYn/ebKVtIjitfpCRznLjVo5Xh OPO17oOjRIazMOH0Q+zcsFGyJ0kgpkSBJeYFWnb0EGfsHnqSvtdSxtSolENK4owkQpRQgm gFYvsRtn1SOMjjeUnLgRxa/a8k/2FaeDVYHC+Vk+0uEiScErBDzHG2BGXzlUqYwk53ou8z zdfU4gMJyArK4ixIiakyIV+PhMq+HT2JM4OMVvmYt058UIF829tWaiDkhTSTr7cWZfqARj /og4VE1NNoQDU5dAIoSXP+l0YI/UF3XuhruXQTe4hkuiVyE4BDygdCg6vx0O/Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4RGv4H0RV8zCJy; Thu, 3 Aug 2023 16:11:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 373GBwB7006000; Thu, 3 Aug 2023 16:11:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 373GBw27005999; Thu, 3 Aug 2023 16:11:58 GMT (envelope-from git) Date: Thu, 3 Aug 2023 16:11:58 GMT Message-Id: <202308031611.373GBw27005999@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Vladimir Kondratyev Subject: git: 2a04c3a47b74 - main - intelspi: Add generic resource methods to bus interface 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: wulf X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2a04c3a47b74aa1114787fe24bbddf180ac57a5a Auto-Submitted: auto-generated The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=2a04c3a47b74aa1114787fe24bbddf180ac57a5a commit 2a04c3a47b74aa1114787fe24bbddf180ac57a5a Author: Vladimir Kondratyev AuthorDate: 2023-08-03 16:10:50 +0000 Commit: Vladimir Kondratyev CommitDate: 2023-08-03 16:10:50 +0000 intelspi: Add generic resource methods to bus interface That allows intelspi grandchildren to allocate IRQs MFC after: 1 week Reviewed by: manu Differential Revision: https://reviews.freebsd.org/D41242 --- sys/dev/intel/spi_acpi.c | 9 +++++++++ sys/dev/intel/spi_pci.c | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/sys/dev/intel/spi_acpi.c b/sys/dev/intel/spi_acpi.c index 015694f4a008..4c22d7a351c4 100644 --- a/sys/dev/intel/spi_acpi.c +++ b/sys/dev/intel/spi_acpi.c @@ -93,6 +93,15 @@ static device_method_t intelspi_acpi_methods[] = { DEVMETHOD(device_suspend, intelspi_suspend), DEVMETHOD(device_resume, intelspi_resume), + /* Bus interface */ + DEVMETHOD(bus_setup_intr, bus_generic_setup_intr), + DEVMETHOD(bus_teardown_intr, bus_generic_teardown_intr), + DEVMETHOD(bus_alloc_resource, bus_generic_alloc_resource), + DEVMETHOD(bus_release_resource, bus_generic_release_resource), + DEVMETHOD(bus_activate_resource, bus_generic_activate_resource), + DEVMETHOD(bus_deactivate_resource, bus_generic_deactivate_resource), + DEVMETHOD(bus_adjust_resource, bus_generic_adjust_resource), + /* SPI interface */ DEVMETHOD(spibus_transfer, intelspi_transfer), diff --git a/sys/dev/intel/spi_pci.c b/sys/dev/intel/spi_pci.c index c55b5a12228e..cb2b8bd82bfb 100644 --- a/sys/dev/intel/spi_pci.c +++ b/sys/dev/intel/spi_pci.c @@ -119,6 +119,15 @@ static device_method_t intelspi_pci_methods[] = { DEVMETHOD(device_suspend, intelspi_suspend), DEVMETHOD(device_resume, intelspi_resume), + /* Bus interface */ + DEVMETHOD(bus_setup_intr, bus_generic_setup_intr), + DEVMETHOD(bus_teardown_intr, bus_generic_teardown_intr), + DEVMETHOD(bus_alloc_resource, bus_generic_alloc_resource), + DEVMETHOD(bus_release_resource, bus_generic_release_resource), + DEVMETHOD(bus_activate_resource, bus_generic_activate_resource), + DEVMETHOD(bus_deactivate_resource, bus_generic_deactivate_resource), + DEVMETHOD(bus_adjust_resource, bus_generic_adjust_resource), + /* SPI interface */ DEVMETHOD(spibus_transfer, intelspi_transfer),