From nobody Fri Mar 08 14:10:05 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 4Trp311hN2z5DCrv; Fri, 8 Mar 2024 14:10: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Trp311Djmz4WjC; Fri, 8 Mar 2024 14:10:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709907005; 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=FF7+YxFATct1f9G6iUVQEyKwvFYJHV3L8Fws2m/8GRE=; b=h2f5PIdle1w0zrZCALw70PUCGGV61Oa1apPNigaY1a+yqwc6/heJJL0mMZzEVLE7heYBnK vZ6/oYdbsbCaM/7vFZ5NpftEaJASE4txe2Jdc7a/+2WSF3oHleLUaJaRtscK47OT3n7a6c FQE62qc51y/Myhd9gIywMrCEhUZPLFjkjGPgD1lPVFfQjH0bmBBQ5+HGkKvdsAdENl96nB zke47iz2cD4H5W2vhbPBATlnLaoEQNkN2X6cSkkDekwuG4tY19Ij60rIXiFUNOF+Y/nVTi rNUAduKCb7cJDfXKD5S1RMu7O1DK85cl3FCzK4+NgvDo1tJTYaWkUwI281VIKg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709907005; a=rsa-sha256; cv=none; b=dRJ6C0pKPhlI5kiLrM8hADWLT4Oc5HLdOpPE4ZxJjH/FcXqZFoxE0muMBWDY1q9XyoIa7r zrpbs8Yt2/QbosXdUzgM452qlK/Lza7V4PQdWrNeht04JO7HcYq2TVnnrKawJTGKLOYeaI istvbM+/wX82ZIWqOWfh7uaDs/yjpFXCc64HvIpkIW+9TllejN747msQwko738Vj78/OhV WPajvHT4gMpY5mPaP9HJMdyWTzrGafFEYt0LSYCp4+UFbc3dPyUPa6qBQHPcCXlC7iEeM5 poAeFK0FavtFBRsjoadPs8CdMdIVGY4w7ngCaeC+N5koLkMbSIt4CSmqrBQyhw== 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=1709907005; 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=FF7+YxFATct1f9G6iUVQEyKwvFYJHV3L8Fws2m/8GRE=; b=GUgj9voV4LOFctS7LI/3xxWh6kVmmwMSXKumeLyVr8kN9NJ4Bfo1751qG87y+ldZpMbIot umsoYTi5hXSKG/sGKgx1xhD/xrG+lVwds1z68Oaw7f+tuQvUscmCejEMLRzH0FYUJxA/GV +IvSmOB6e4wGdUU9/j2TPG7UoxTEkOOnwJLqIzkR6+fRKTfKxW0p12iFqxiplfBjNF3GGu RiCivsJmK3QugaQnXHPtWVfq3/Ly/RsXfPuwYJKrHywxKmY7UHhjRIuGqfiNHe31hm1zUN OZ4tGsOUA4WsoMxeXzQmR4yfNGSvJ2oIV0EZ2vuY0b1jShG+Bcvg/TALBVy7HQ== 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 4Trp310p6XzLf2; Fri, 8 Mar 2024 14:10:05 +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 428EA519057100; Fri, 8 Mar 2024 14:10:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 428EA5GH057095; Fri, 8 Mar 2024 14:10:05 GMT (envelope-from git) Date: Fri, 8 Mar 2024 14:10:05 GMT Message-Id: <202403081410.428EA5GH057095@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mitchell Horne Subject: git: 1cb9f6f6413e - main - clk_fixed: quiet by default 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: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1cb9f6f6413e9d242de47e730ec7d4ce3e5688fe Auto-Submitted: auto-generated The branch main has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=1cb9f6f6413e9d242de47e730ec7d4ce3e5688fe commit 1cb9f6f6413e9d242de47e730ec7d4ce3e5688fe Author: Mitchell Horne AuthorDate: 2024-03-08 14:08:49 +0000 Commit: Mitchell Horne CommitDate: 2024-03-08 14:09:36 +0000 clk_fixed: quiet by default We may attach several of these devices, but there is no meaningful information added to dmesg. For example: ofwbus0: clk_fixed0: on ofwbus0 clk_fixed1: on ofwbus0 clk_fixed2: on ofwbus0 clk_fixed3: on ofwbus0 clk_fixed4: on ofwbus0 clk_fixed5: on ofwbus0 clk_fixed6: on ofwbus0 clk_fixed7: on ofwbus0 clk_fixed8: on ofwbus0 clk_fixed9: on ofwbus0 clk_fixed10: on ofwbus0 clk_fixed11: on ofwbus0 To reduce this noise, quiet the devices for by default. For verbose boot, the message will be emitted. Reviewed by: manu MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D44266 --- sys/dev/clk/clk_fixed.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sys/dev/clk/clk_fixed.c b/sys/dev/clk/clk_fixed.c index 3f828b24c2b2..7aec5b92dfe0 100644 --- a/sys/dev/clk/clk_fixed.c +++ b/sys/dev/clk/clk_fixed.c @@ -163,13 +163,18 @@ clk_fixed_probe(device_t dev) return (ENXIO); } device_set_desc(dev, "Fixed clock"); - return (BUS_PROBE_DEFAULT); + break; case CLK_TYPE_FIXED_FACTOR: device_set_desc(dev, "Fixed factor clock"); - return (BUS_PROBE_DEFAULT); + break; default: return (ENXIO); } + + if (!bootverbose) + device_quiet(dev); + + return (BUS_PROBE_DEFAULT); } static int