Date: Thu, 26 Sep 2024 14:06:07 GMT From: Justin Hibbits <jhibbits@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 21525fe03c05 - main - sdhci: Add sysctl to report quirks on the slot Message-ID: <202409261406.48QE6723069159@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhibbits: URL: https://cgit.FreeBSD.org/src/commit/?id=21525fe03c05cebb951214e78e411a3040e8a798 commit 21525fe03c05cebb951214e78e411a3040e8a798 Author: Justin Hibbits <jhibbits@FreeBSD.org> AuthorDate: 2024-09-25 21:35:50 +0000 Commit: Justin Hibbits <jhibbits@FreeBSD.org> CommitDate: 2024-09-26 13:58:54 +0000 sdhci: Add sysctl to report quirks on the slot Summary: It can be useful to see what quirks are applied on an SDHCI slot. Obtained from: Juniper Networks, Inc. Reviewed By: manu Differential Revision: https://reviews.freebsd.org/D46790 --- sys/dev/sdhci/sdhci.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/sdhci/sdhci.c b/sys/dev/sdhci/sdhci.c index c747f54cb32c..0be20e7aa523 100644 --- a/sys/dev/sdhci/sdhci.c +++ b/sys/dev/sdhci/sdhci.c @@ -1149,6 +1149,9 @@ no_tuning: SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), OID_AUTO, node_name, CTLFLAG_RW, 0, "slot specific node"); + SYSCTL_ADD_UINT(device_get_sysctl_ctx(dev), SYSCTL_CHILDREN(node_oid), + OID_AUTO, "quirks", CTLFLAG_RD, &slot->quirks, 0, "Slot quirks"); + node_oid = SYSCTL_ADD_NODE(device_get_sysctl_ctx(dev), SYSCTL_CHILDREN(node_oid), OID_AUTO, "debug", CTLFLAG_RW, 0, "Debugging node");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202409261406.48QE6723069159>