From nobody Wed Nov 24 06:41:56 2021 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 DFBA918ABBD4; Wed, 24 Nov 2021 06:41:58 +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 4HzWdK0PW3z4kkD; Wed, 24 Nov 2021 06:41:56 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 694202527E; Wed, 24 Nov 2021 06:41:56 +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 1AO6fud5037180; Wed, 24 Nov 2021 06:41:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1AO6fuuU037179; Wed, 24 Nov 2021 06:41:56 GMT (envelope-from git) Date: Wed, 24 Nov 2021 06:41:56 GMT Message-Id: <202111240641.1AO6fuuU037179@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Wojciech Macek Subject: git: 0f84feb9fb46 - main - felix: Add support for PHY interrupts 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wma X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0f84feb9fb4678c1ed2c5b12125d60b13977dac5 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1637736117; 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=RTJDIaZaSJhYi0/j0zzWTV0gjP9ZcsPBO1jBzRxhnSs=; b=RkyVg3upEqkuWuouSIhnTbiWJu3h4G5nLKiCVUIOPJUb3HWhyDbywYElAf+wOs9+NRbxqs 2EnB4bKgIM2tEW/b7KykOudnr1b1oJeryTJy86xLDJKUzkK5NjBVxiuKE9wzt4D9oS5UMl 2uu+/H9g3TEMb7xhGaSNgnFeTa0hWNWBCa0lhIMT0r43CA3IZZg9HTEPxtw7z4wb8n4cH9 eyg89K/StILua6+WZEGRC/EWviWqCks8EivN12AGn8gK0Dlz0Bwve3qfPBlKCo5z2KiDCp Jn5OlyAPVgSUgqdvYd9l5l0cnJqGiX4liegKgDYQvjzTX/6ff9Ftjz9fjwd7Tg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1637736117; a=rsa-sha256; cv=none; b=LYfIRczN6PZWbK3qulIn6JXdhc5GNaqgdRNr3hgM31KUbm8H3zlXX28Uga3UOvVQFKNrVk 7xZRcfC8BI0xDZHAmNdz2/IGCIUkRANw1teIaGCxngn333KBmC77B7aXoh6jg7Qnf2DzmC wcT1sCci2rpVMhOhe0jTund3BKtPboOk8qkH9XirkVoWjulcMnKtWJfN/4XItQklzLR681 pGrf4/MFa4r5jEtlejIRkC5hEE3EfFs7ZFzr3+Eyz+HB6YEqtzxSp7jN84r2hwVfJVp35V Ln2/AOo1SliAAO25sBRZ77q/ZLm4cvtT/+9y0cuC4B3l9kEx5XYJsODLBaqYjQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by wma: URL: https://cgit.FreeBSD.org/src/commit/?id=0f84feb9fb4678c1ed2c5b12125d60b13977dac5 commit 0f84feb9fb4678c1ed2c5b12125d60b13977dac5 Author: Kornel Duleba AuthorDate: 2021-10-26 14:28:19 +0000 Commit: Wojciech Macek CommitDate: 2021-11-24 06:40:37 +0000 felix: Add support for PHY interrupts - Replace miibus with newly created miibus_fdt. - Use generic passthrough resource allocation devmethods. Obtained from: Semihalf Sponsored by: Alstom Group --- sys/dev/etherswitch/felix/felix.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sys/dev/etherswitch/felix/felix.c b/sys/dev/etherswitch/felix/felix.c index 3ccc4b766877..88a490fc3dab 100644 --- a/sys/dev/etherswitch/felix/felix.c +++ b/sys/dev/etherswitch/felix/felix.c @@ -110,6 +110,13 @@ static device_method_t felix_methods[] = { /* bus interface */ DEVMETHOD(bus_add_child, device_add_child_ordered), + DEVMETHOD(bus_setup_intr, bus_generic_setup_intr), + DEVMETHOD(bus_teardown_intr, bus_generic_teardown_intr), + 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), + DEVMETHOD(bus_alloc_resource, bus_generic_alloc_resource), /* etherswitch interface */ DEVMETHOD(etherswitch_getinfo, felix_getinfo), @@ -139,7 +146,7 @@ DEFINE_CLASS_0(felix, felix_driver, felix_methods, DRIVER_MODULE_ORDERED(felix, pci, felix_driver, felix_devclass, NULL, NULL, SI_ORDER_ANY); -DRIVER_MODULE(miibus, felix, miibus_driver, miibus_devclass, +DRIVER_MODULE(miibus, felix, miibus_fdt_driver, miibus_fdt_devclass, NULL, NULL); DRIVER_MODULE(etherswitch, felix, etherswitch_driver, etherswitch_devclass, NULL, NULL);