From nobody Thu Apr 18 18:12:27 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 4VL5Tm20cJz5HKNP; Thu, 18 Apr 2024 18:12:28 +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 4VL5Tm0RN2z400w; Thu, 18 Apr 2024 18:12:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713463948; 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=o9E1iy4wBa6pJyryHuSo5E5lANuPqJ3UL3YeBttrwG0=; b=ZOk02wIepViAHRhTXcWUAKaaTHIawwAf2AXCVJQhiVMsyzC/I0jS4y+Ij20amYtJSZTRfT K0nfufo460LkOKeUUP0XoOdw/oyFtajkN83OUO1wc1wGkJm9nX/SjTJzKfieCd4+xM9GJ2 FYi5nJER1UVPiRbzlyUJN7aQCVaI9Vme3MjT6/6HjBkxykP+ZCTnKYKqpo1LMwsjWz6fd5 3bBZgFRS60JD79iYgfvYzoKpOqmT2mlEipsqEDoaOoj1uiPjCUjUqWjgOmoBu+yJ/aaJg5 9xCxgANidJQLSgIuYXl6y40Att8URyPBiNpVo6cHaVz103OzEWXMjxPqAHW/Ng== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713463948; a=rsa-sha256; cv=none; b=G/CQPMYzuti2oYksPzEcj6TKHN/2Q5mGsx92NFnE18fKUlSgowI6JiZ9Ln6cQ9AhMkWx9k Tj4fS54Pbr6ABefCx4kXlUn2WWh4WA5B4sXsv2oxS8/3RYixZxZT3FWswzgWQUsJB9j56o TlWsqNd0npOD6bqAL5m5AmyTwtOfHbC3/QrRRc7oXRNn3SejD/u2jUzf5Dr2dTE5n2zJ3I wNwonJdEwFMTizerqqWYN71ZbJOFASex44I5Used+/XwGQWjovhrOJh0L6j0hGeHnYR9Er UfUVAd18dJcUNk5BpEvw2HUbQMlGshrJCwvYkeIlto5eN4wVPrH959Q7xUG8yQ== 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=1713463948; 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=o9E1iy4wBa6pJyryHuSo5E5lANuPqJ3UL3YeBttrwG0=; b=naLcZe6USFh08CL2yJjnUCULSxQpwCkLc/h9hnd01Y8kJXv9MIQcoUouZUwwSiRkgp1MS+ WK8+Cg332Hk7gjFlnZVlEBwk2TpLimUcqevKQPGWrLWbwwrKv4Tm835YUVMgeatuTZcglZ wnxiohHNvI9vMcRJT4aBH5Xu7Eh7Om4ZYJNH2bOSzmTINYx5dFwIl3FroTJxeRI4MypJYC uzHuOKZaNNuMpv2Tzu0mPHGHynqp+LwrOEEcN7SgCj3j8Rp5PVf2S68484muOzBMQXQgir ekYmGwlEMg/oqN5u+DEVUatMS4bwKXYSqEtsSHopJ/CfvFIKYthMwseU9sKEFQ== 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 4VL5Tm01WBzL1H; Thu, 18 Apr 2024 18:12:28 +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 43IICRao016237; Thu, 18 Apr 2024 18:12:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43IICRhv016234; Thu, 18 Apr 2024 18:12:27 GMT (envelope-from git) Date: Thu, 18 Apr 2024 18:12:27 GMT Message-Id: <202404181812.43IICRhv016234@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: 5eb27a0d68f5 - stable/14 - 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: 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: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 5eb27a0d68f5b7cd64d5a269b727c5f22185a40c Auto-Submitted: auto-generated The branch stable/14 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=5eb27a0d68f5b7cd64d5a269b727c5f22185a40c commit 5eb27a0d68f5b7cd64d5a269b727c5f22185a40c Author: Mitchell Horne AuthorDate: 2024-03-08 14:08:49 +0000 Commit: Mitchell Horne CommitDate: 2024-04-18 18:11:31 +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 (cherry picked from commit 1cb9f6f6413e9d242de47e730ec7d4ce3e5688fe) --- sys/dev/extres/clk/clk_fixed.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sys/dev/extres/clk/clk_fixed.c b/sys/dev/extres/clk/clk_fixed.c index e5ca6b31d000..1a61f0013bb2 100644 --- a/sys/dev/extres/clk/clk_fixed.c +++ b/sys/dev/extres/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