From nobody Mon Oct 21 14:26:51 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 4XXHgb4M0Rz5ZLHQ; Mon, 21 Oct 2024 14:26:51 +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 4XXHgb3bMdz4Xp9; Mon, 21 Oct 2024 14:26:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729520811; 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=WNqAHntKagFbrmC+OsXooTu8O/AKUCeLdtQcUO+wvxo=; b=JPldClDdpJb0Pg73KXYSLQaiESlllZFkkppHhIJm6EN76daOwj95FIoD9WTM8nJzdcGFOg afO0H/3lXNpZ/ZZREl+yecu4BD587SF0zH512Bqgl1JezC0hzk+3Y0vBDyOD3qrxVMEwU/ 2zs/xHRe+LoaMGPO7IA8nouo1RXPSicP/EwD8xrTzvj95ZbL67KYxMRLR4ySndPNgw7Di1 2vQZt7dIWDAA50y2Q1KKztTFlbkXO8Xu2BxRbnA01m91hgwOV/b+1xIjSWigziRKwowaHI N0jnOQbu24DAlb3I8UqvhH4iNowPY7eKLLlCX+YFFMxITv1LLjPw94Bz20Taiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729520811; 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=WNqAHntKagFbrmC+OsXooTu8O/AKUCeLdtQcUO+wvxo=; b=mZoJ1soiANbqA9+XiasyXVd+Vgs79iMe8cIw3JjMMXNuCUwScU7EzNBJ1Fw0VFQ+KIiWfj jbj6jVAvyRcYKjJr+qKcV1J9xB2vQilWFRPUtg0k93TC/tsVsT2oEkeWO1ZgPEuT9/mByh YaHOY8DMjUAV2SHYW/o+puknzBBPMQ+BKUtNZQi1v/cARK2qr8zKB+0Fl+xGA6TtD5BiNN 51Lm650t2m5VjGMsfo05at3grVKj9PopgZJ+KExj+wMR45lENa1ASo2bHExpirPU6uggSw ofmgg0QdRxlHpg0N3rIuAxlLo4zvnU/h1c9PzMfTIwjv/HYK6RW6/B9P+wFzwQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729520811; a=rsa-sha256; cv=none; b=TqDe/oJCB0+8hvgoXui6AB/hpEUbd5evwdF2mE7PYKMAWHDTJMil+CoWdP8hDVI9cZj7cu 6AxSTEimFV/J9lLEVWV/JcfRB1U2yQva8yJ0/cICuIoilLpi2d8B/vJnwGegonDjFlLjPo /rbCAoU75x0OiCHMcYWPfcn8Q0rkmYT3EDHwLpYFNvlQX9DSse7GCh7UjWMSwOfOqMTbxQ cnn61IhcD0mLSPM9vevrcxaqSdNJCfQ77eE4+kIs+mbGzK2LKYX3o44l6aaEE1b7sh6sUg 6vq50RI4kbc0qVBt24+jZB4yqv7HCYU56Ly0rMGH2SaOkI/SUS10+71+2REOOA== 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 4XXHgb343XzZ9Y; Mon, 21 Oct 2024 14:26:51 +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 49LEQpI7071948; Mon, 21 Oct 2024 14:26:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49LEQppj071945; Mon, 21 Oct 2024 14:26:51 GMT (envelope-from git) Date: Mon, 21 Oct 2024 14:26:51 GMT Message-Id: <202410211426.49LEQppj071945@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 5201decc8b43 - main - Use bus_delayed_attach_children instead of its inline implementation 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5201decc8b431a8f4f53efb8db5fc452557de68b Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=5201decc8b431a8f4f53efb8db5fc452557de68b commit 5201decc8b431a8f4f53efb8db5fc452557de68b Author: John Baldwin AuthorDate: 2024-10-21 14:24:39 +0000 Commit: John Baldwin CommitDate: 2024-10-21 14:24:39 +0000 Use bus_delayed_attach_children instead of its inline implementation Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D47186 --- sys/arm/xilinx/zy7_qspi.c | 2 +- sys/arm/xilinx/zy7_spi.c | 2 +- sys/dev/iicbus/controller/opencores/iicoc_fdt.c | 2 +- sys/riscv/sifive/sifive_spi.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/arm/xilinx/zy7_qspi.c b/sys/arm/xilinx/zy7_qspi.c index 81ceb79e2bf6..c033fd29a7db 100644 --- a/sys/arm/xilinx/zy7_qspi.c +++ b/sys/arm/xilinx/zy7_qspi.c @@ -603,7 +603,7 @@ zy7_qspi_attach(device_t dev) zy7_qspi_add_sysctls(dev); /* Attach spibus driver as a child later when interrupts work. */ - config_intrhook_oneshot((ich_func_t)bus_generic_attach, dev); + bus_delayed_attach_children(dev); return (0); } diff --git a/sys/arm/xilinx/zy7_spi.c b/sys/arm/xilinx/zy7_spi.c index bb21ca6eec43..a24ce542a860 100644 --- a/sys/arm/xilinx/zy7_spi.c +++ b/sys/arm/xilinx/zy7_spi.c @@ -439,7 +439,7 @@ zy7_spi_attach(device_t dev) zy7_spi_add_sysctls(dev); /* Attach spibus driver as a child later when interrupts work. */ - config_intrhook_oneshot((ich_func_t)bus_generic_attach, dev); + bus_delayed_attach_children(dev); return (0); } diff --git a/sys/dev/iicbus/controller/opencores/iicoc_fdt.c b/sys/dev/iicbus/controller/opencores/iicoc_fdt.c index 4220b0798398..2423d2b87272 100644 --- a/sys/dev/iicbus/controller/opencores/iicoc_fdt.c +++ b/sys/dev/iicbus/controller/opencores/iicoc_fdt.c @@ -127,7 +127,7 @@ iicoc_attach(device_t dev) } /* Probe and attach the iicbus when interrupts are available. */ - config_intrhook_oneshot((ich_func_t)bus_generic_attach, dev); + bus_delayed_attach_children(dev); return (0); diff --git a/sys/riscv/sifive/sifive_spi.c b/sys/riscv/sifive/sifive_spi.c index e5e1e60223e9..486cf4209c10 100644 --- a/sys/riscv/sifive/sifive_spi.c +++ b/sys/riscv/sifive/sifive_spi.c @@ -346,7 +346,7 @@ sfspi_attach(device_t dev) /* Probe and attach the spibus when interrupts are available. */ sc->parent = device_add_child(dev, "spibus", DEVICE_UNIT_ANY); - config_intrhook_oneshot((ich_func_t)bus_generic_attach, dev); + bus_delayed_attach_children(dev); return (0);