From nobody Thu Dec 23 08:45:30 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 CBCF4190C7F8; Thu, 23 Dec 2021 08:45: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 4JKP0V3yjGz3KmG; Thu, 23 Dec 2021 08:45:30 +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 67E4453DD; Thu, 23 Dec 2021 08:45: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 1BN8jUuA010843; Thu, 23 Dec 2021 08:45:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BN8jUbd010842; Thu, 23 Dec 2021 08:45:30 GMT (envelope-from git) Date: Thu, 23 Dec 2021 08:45:30 GMT Message-Id: <202112230845.1BN8jUbd010842@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: 524020aa3701 - stable/13 - ds3231: allow configuration via hints on FDT systems 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: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 524020aa3701928e19ae41bf696cb31574b4b8ca Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640249130; 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=040loXdcxA5vWQXegIWv0S4z8jJZKGGRlxcB4N2XmNA=; b=BkueqvgdIeSlwdAYAWp3Qv5IduR3Zs+W1mnOW+xbZH44827T8lh9UqYdajEhRosZImrQAA GeEcSittf8AxFmSLGSS9Qyuq0jGinU6Se+npoj5sW2Y7m2xwV5LUkD96W11e1oemqrIlKv TrUs6ZbtVVE7WPr5MBpVPLoBUCyWiZNdkYpvSCg2C7Kgvpc/nUs1LvtWTJhSTmGo2y+2rp +bB58Q3lUwLuC/DdXu6sLEyB5CHcnSxirsnbhhsiLdtmtU50qcGVT2c0aVC7PlsllgO6S7 +dgvA/Z/RFdk0eKsdMMaekzsxu5YVxS0FwWxxVjqMVmamwUD+pygMW/yyp1UEw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640249130; a=rsa-sha256; cv=none; b=twTMblyEYgzqDlhVNuWLWyzom/6URXi0yyz/jCyggAeRiPTB+X+5OXYgAJHzY8bDQ4rd8s ocs8xbOxAte16t92tuiYY6XTPogbKc0ZLs4xzWdtQtYQh/rn6t1UwlNjpc6VVz7iyEstDQ NiRrhWJ452SZK19iy4iHfBhg4fegCfPMSj5lBkjuQvviRHuBfnRI5fLW+y5tO6ImDFGOtC FmNw3iXhmtQQ3ReYYtzmsi9akJbGsL4Fuy+vKFzhdRcne6F2uxUaMG7wJbcY5rYIvSkWaV dCYee+cr5Ttd4yz0FSveU0Lc/JRtGTvugdDwwUumc7GvH2dKKz4F87MSMpWZEw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=524020aa3701928e19ae41bf696cb31574b4b8ca commit 524020aa3701928e19ae41bf696cb31574b4b8ca Author: Andriy Gapon AuthorDate: 2021-12-13 07:21:08 +0000 Commit: Andriy Gapon CommitDate: 2021-12-23 08:44:54 +0000 ds3231: allow configuration via hints on FDT systems (cherry picked from commit 1256067c5c575474e626e5f119f50275ea2d975e) (cherry picked from commit b277ef3304fa97da041c191b02b2fcfb74378c75) --- sys/dev/iicbus/ds3231.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/sys/dev/iicbus/ds3231.c b/sys/dev/iicbus/ds3231.c index bd4142c6291b..0e95379da500 100644 --- a/sys/dev/iicbus/ds3231.c +++ b/sys/dev/iicbus/ds3231.c @@ -356,16 +356,20 @@ ds3231_en32khz_sysctl(SYSCTL_HANDLER_ARGS) static int ds3231_probe(device_t dev) { + int rc; #ifdef FDT if (!ofw_bus_status_okay(dev)) return (ENXIO); - if (!ofw_bus_is_compatible(dev, "maxim,ds3231")) - return (ENXIO); + if (ofw_bus_is_compatible(dev, "maxim,ds3231")) + rc = BUS_PROBE_DEFAULT; + else #endif + rc = BUS_PROBE_NOWILDCARD; + device_set_desc(dev, "Maxim DS3231 RTC"); - return (BUS_PROBE_DEFAULT); + return (rc); } static int