From nobody Thu Sep 05 17:25:44 2024 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 4X05qD4fBgz5WRxj; Thu, 05 Sep 2024 17:25:44 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X05qD46W1z47qx; Thu, 5 Sep 2024 17:25:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725557144; 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=6YfTeFl+n+VPinEe5jJj6qd+hpGS9fPiGlxS8+tvd/8=; b=hrPtB3eC8JA2xx/HT161S44jkzPxP5B6OJR1AsS9XX1s3PLVfSqSodLugPdwBKQJMeSaeh /UOs3NYzbS8IeMAQCOMu3syEmUgaBSGF0VKwEo1i1lHcjHwSLlMwkIBdKj1St/k1P5fPge WzfWRk5Ta6rgaiUIWzjyL8PpDybjO4z+o+w7REyyK7vC8aNfHXm+gHKVxecS/Rl+8SkpyX pXKKj46PMgyIHj+sHZ5wLkoKiWWFzZ7tup8G0MH44R5enGzTnnROZfSV4KVY95ddLJak7k eoq6Vd4qbZHaYuR4KFl/ga8+wF7QlIQTWVEQD2574lOpN9jVB7koSvMmWWw8Kw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725557144; a=rsa-sha256; cv=none; b=E2ZPuUXU3Abc7uDLhfAdk/eYVZhk0O5nAyDLzurQD6r0v8kLzM6U3+uHHDUBP2fhm/eyst uYP1U/P+QyDnB/ir4evctKhsXhKfa7Gi/6dcvCgahBQm++ZLfhXPOw/ph4kcGZmC00+Hvu +1gjBtdUgZox6aSsbpMJ/21pesoq6aFS/u3ihV0b5bpK1JoWUi3Uo+cK/7yOxMVmnw2n9d jEB2FThVKZmG9Thz6OEzKL908HsTlO/Mwx8hgU/vlxgu4xO/79E8Q0QFobX5gZXYJ3Ssmr Yjj6WvR7UEwySmkAWmI44iPATg9sqj/DwW/ysaQo1f0Q0d+QLL6Ig39wOkWpVg== 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=1725557144; 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=6YfTeFl+n+VPinEe5jJj6qd+hpGS9fPiGlxS8+tvd/8=; b=ZtSdSDm9Xe9Dx7rTQb582ykD9Sxv0ChAAdYrajib0XgNtWA0rQDRbat03NpfajDVxDyMbR 8USsNFt2NjUCgzhI4BFgGCEjlcDsMfIcbMNys85vH1xrjSjSR49ks6x29zVMeMz0VALGhm Vfjc3D2+uXDcXP7sjqAVL3ihIvSP3/8GXjnufMzZKAVvK8bGQrnWyZNomhKbmjdoifa+ws z2FF/ZuzLeby3wHBe4nzYglUM1jd6vj0Mte9aG/enZnUkYF25kz7C92A545pH+cu2rbov7 wHzVwwUN5PuUbFnMqhlM/m+L6lHp0yredcw619MRR9duHD13PoOoPxEJkThTJw== 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 4X05qD3bC3zH4p; Thu, 5 Sep 2024 17:25:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 485HPiAZ040328; Thu, 5 Sep 2024 17:25:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 485HPi2c040325; Thu, 5 Sep 2024 17:25:44 GMT (envelope-from git) Date: Thu, 5 Sep 2024 17:25:44 GMT Message-Id: <202409051725.485HPi2c040325@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: 7b86593f0f6c - main - sdhci: Match quirk_set/quirk_clear sysctls to type 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-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: 7b86593f0f6cbfba2883058c6c9d2389f1c581aa Auto-Submitted: auto-generated The branch main has been updated by jhibbits: URL: https://cgit.FreeBSD.org/src/commit/?id=7b86593f0f6cbfba2883058c6c9d2389f1c581aa commit 7b86593f0f6cbfba2883058c6c9d2389f1c581aa Author: Justin Hibbits AuthorDate: 2024-09-05 17:20:14 +0000 Commit: Justin Hibbits CommitDate: 2024-09-05 17:25:16 +0000 sdhci: Match quirk_set/quirk_clear sysctls to type These quirk fields are u_int, so match the sysctl type to the actual types, and use SYSCTL_UINT. This provides room for setting bit 31 quirk as needed. Sponsored by: Juniper Networks, Inc. MFC after: 1 week --- sys/dev/sdhci/sdhci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/sdhci/sdhci.c b/sys/dev/sdhci/sdhci.c index 2403f60d613c..c747f54cb32c 100644 --- a/sys/dev/sdhci/sdhci.c +++ b/sys/dev/sdhci/sdhci.c @@ -72,10 +72,10 @@ static int sdhci_debug = 0; SYSCTL_INT(_hw_sdhci, OID_AUTO, debug, CTLFLAG_RWTUN, &sdhci_debug, 0, "Debug level"); u_int sdhci_quirk_clear = 0; -SYSCTL_INT(_hw_sdhci, OID_AUTO, quirk_clear, CTLFLAG_RWTUN, &sdhci_quirk_clear, +SYSCTL_UINT(_hw_sdhci, OID_AUTO, quirk_clear, CTLFLAG_RWTUN, &sdhci_quirk_clear, 0, "Mask of quirks to clear"); u_int sdhci_quirk_set = 0; -SYSCTL_INT(_hw_sdhci, OID_AUTO, quirk_set, CTLFLAG_RWTUN, &sdhci_quirk_set, 0, +SYSCTL_UINT(_hw_sdhci, OID_AUTO, quirk_set, CTLFLAG_RWTUN, &sdhci_quirk_set, 0, "Mask of quirks to set"); #define RD1(slot, off) SDHCI_READ_1((slot)->bus, (slot), (off))