From nobody Sun Nov 27 00:43:30 2022 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 4NKVFt4G1sz4jVd1; Sun, 27 Nov 2022 00:43:30 +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 4NKVFt3kGmz3Fn8; Sun, 27 Nov 2022 00:43:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669509810; 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=u5CiPGYgUcttMkFOfkKpo5e1tv/VQH0g7LP4Sr1b9Wg=; b=gcV/N57KkLmwMgOt4zOwYV217rtUe04Y7djcYMEOa1B9/7Zuz5GwWarnyKVIcwYXz7bO3f 2TNKXPLzb0h5SKEvSDrdR1dc2IUxh20+8Me31inKg0swx/08iiwS2CsKbynD5lS3+juL7y kEdxvLGwIMSP2UzKvGi70hj0EppAyf4Hdor+T+vbSpHUeUnZWlH7WcZb/fPbXpCL9EYkZv BVPf/wJzAOEMpla/JAwzGFFQfkFvu86NG7RGiIrW4rtFyVORlYrNNiOXIheVLU1OBa81Cb qG9qjtbxh3GDs5eR3wNSuWypBZl8/taAXXawx6xhmbskHZoY7+4UGeebN9DMMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669509810; 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=u5CiPGYgUcttMkFOfkKpo5e1tv/VQH0g7LP4Sr1b9Wg=; b=SnmXjcNvINVgR26s25yVFrUfPgAt4ym5jkRp6l/VzEQoU+F6FM/BeJFht5FXj2BEI4tvXX kzAyyEEPMf14D7Un6zzX5kdKj4rsTxkBB7M42tev9n4zZf3VHiXFUfTebIE/jlk3/fIyXM UlpSWRzweX4bBDy01Kt/jX0HaHz63y8Dne4ZBKYkKsNleWo7ZA+9mjyT2R7+Q51C9ovXzI Y1bJv4br9S0BD0GQdoAXO1QYtzgUcfRqW4VGW6v4uhSkUrlW8AW6XApPptkj9GFl1MtVKc AtpYmum0sjZvqbyv+TYHYTu/U0mqp2JOy4lyd8zihSJXWA/CEVcOYOCckMm2sQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1669509810; a=rsa-sha256; cv=none; b=fBAdtOyVOPGSYCMkD96IxuPy4cvLDvCHzL7ycik9ht6y0F2rBTKblY958bHSqd0QHzCwiX z50uKtvcCYV3sroCoXJSxlFL85tEhTrgEQXnmNyRqyY0yTFzXmklMu0kiBJEN608Kss+cr OT+mhaBh5eTV2JtLG8rOgmxjlpQOtb0x8rZcYf/I17IJMIc6U/6EsjWvnaOreZ2bQhzWzF nIMjrmoeqQIt8OVAhosXOU3fKjHxoaamF5dXHRC4Ht+29JLbNhNdqTARylAYL6wg3meBKV AVMmacgNZGJClrqHsKKvrtTdz5a9wdZLI5MAT0d9zC9cd4m8G+6yOhcfqgGzCQ== 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 4NKVFt2lx8zfmp; Sun, 27 Nov 2022 00:43:30 +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 2AR0hUmw017942; Sun, 27 Nov 2022 00:43:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AR0hUbB017941; Sun, 27 Nov 2022 00:43:30 GMT (envelope-from git) Date: Sun, 27 Nov 2022 00:43:30 GMT Message-Id: <202211270043.2AR0hUbB017941@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Justin Hibbits Subject: git: 41e85e8e35e9 - main - dpaa: Don't probe disabled devices 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: jhibbits X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 41e85e8e35e98af3f2f8032b57774eb3489ff45c Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhibbits: URL: https://cgit.FreeBSD.org/src/commit/?id=41e85e8e35e98af3f2f8032b57774eb3489ff45c commit 41e85e8e35e98af3f2f8032b57774eb3489ff45c Author: Justin Hibbits AuthorDate: 2022-11-27 00:45:37 +0000 Commit: Justin Hibbits CommitDate: 2022-11-27 00:45:37 +0000 dpaa: Don't probe disabled devices Probing disabled devices just adds noise. --- sys/dev/dpaa/fman_fdt.c | 3 +++ sys/dev/dpaa/if_dtsec_fdt.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/sys/dev/dpaa/fman_fdt.c b/sys/dev/dpaa/fman_fdt.c index b6234179b382..a3888d91b8a0 100644 --- a/sys/dev/dpaa/fman_fdt.c +++ b/sys/dev/dpaa/fman_fdt.c @@ -72,6 +72,9 @@ static int fman_fdt_probe(device_t dev) { + if (!ofw_bus_status_okay(dev)) + return (ENXIO); + if (!ofw_bus_is_compatible(dev, "fsl,fman")) return (ENXIO); diff --git a/sys/dev/dpaa/if_dtsec_fdt.c b/sys/dev/dpaa/if_dtsec_fdt.c index 1ab331caf0d1..179d620fcc3b 100644 --- a/sys/dev/dpaa/if_dtsec_fdt.c +++ b/sys/dev/dpaa/if_dtsec_fdt.c @@ -98,6 +98,9 @@ static int dtsec_fdt_probe(device_t dev) { + if (!ofw_bus_status_okay(dev)) + return (ENXIO); + if (!ofw_bus_is_compatible(dev, "fsl,fman-dtsec") && !ofw_bus_is_compatible(dev, "fsl,fman-xgec")) return (ENXIO);