From nobody Thu Mar 19 05:21:57 2026 Received: from sender4-pp-f112.zoho.com (sender4-pp-f112.zoho.com [136.143.188.112]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5399839A07A; Fri, 6 Mar 2026 13:27:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.188.112 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772803673; cv=pass; b=I8czfzDOy/hadwBrMstQVhF/Io5U6wIdqh+nxzHJFQvLzrO8l4YpifhNxwhXo5qCGUOfm3apeQTt/kJxUOu1UG7Wg6gJ9JW8VasJhohz4GXun/Eh4RO1KwqbgBiFAPF4g1ZLBRVEEoRDaFL93ukFcDPPZ70FgrygAI8l2R63+uM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772803673; c=relaxed/simple; bh=25+iV2Au5DtMz96R754wxjUHPhs70Lf9nLBCTgqmmxE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FqDUQ38ze9KDPG0rrlp6ucJjQp/aATazsNCKSNeMiiBuUkkSSZSu6lf0IcyFm/+yLTzwgQaT/LdITVRepEDiWja/l+tSgZek6m0eHAzNBHcsEVwLluWiUmEhlFXiPjXEEQX9bRsdS0ZNNrCz9+2VoaIbCgG0fprsUk+owGZFxYo= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (1024-bit key) header.d=collabora.com header.i=nicolas.frattaroli@collabora.com header.b=PCm5n0K+; arc=pass smtp.client-ip=136.143.188.112 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=collabora.com header.i=nicolas.frattaroli@collabora.com header.b="PCm5n0K+" ARC-Seal: i=1; a=rsa-sha256; t=1772803640; cv=none; d=zohomail.com; s=zohoarc; b=IPRCzkVxE6M4aDhgBlXimsImFAvM3nc/Ogv8hn2yUwyhmhbLOuYqj7aiP/dhPZiweLejYERnnUigepDRlAxaGxniRWBsIKEN5tiW6E3b66wCGZRQ4w35znuKHVKGlQ06ECexzIlcHIN5l/xKAYqlzQr8FLqKzEmrBxvl4eVJkIk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1772803640; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=ZHQPBt/sMVRGZaNIxvx/Z2lE1RPR2Q3ZOvgh4mDSFHM=; b=A5R3F6CKGbe+lSt9y0wwZlYfQ0k0r6dsx8NA05pOSyV4DLQ1wVaBbnFRtoeuYkJf3cTGudGlmqdb2kFjj4wp9MHJZRsZGDsX/FNSPfd7UihjslmNd35qh3/vXKl/wABRonwLPj4W7gcgUSlT5kht2LMvh0TsIe4p/M3910uI8Nw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=nicolas.frattaroli@collabora.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1772803640; s=zohomail; d=collabora.com; i=nicolas.frattaroli@collabora.com; h=From:From:Date:Date:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Message-Id:References:In-Reply-To:To:To:Cc:Cc:Reply-To; bh=ZHQPBt/sMVRGZaNIxvx/Z2lE1RPR2Q3ZOvgh4mDSFHM=; b=PCm5n0K+WKIimvgUMe9biPXhV8+XCSZ3IAoeo4smSXKcNlLsbTjcv7tL/P3S03UE iRvx3Zl4xHVeJUNEwv+ClqFnvHYTrBCTf+FfRtDf8YnGokb8qDbAaOYv1khbjxA7lUF R3Scl96aHuHBCE08aDY7KyJFxMQqhw+QC3TVHu3Y= Received: by mx.zohomail.com with SMTPS id 1772803637392630.491848334385; Fri, 6 Mar 2026 05:27:17 -0800 (PST) From: Nicolas Frattaroli Date: Fri, 06 Mar 2026 14:25:03 +0100 Subject: [PATCH v9 22/23] scsi: ufs: mediatek: Remove undocumented "clk-scale-up-vcore-min" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260306-mt8196-ufs-v9-22-55b073f7a830@collabora.com> References: <20260306-mt8196-ufs-v9-0-55b073f7a830@collabora.com> In-Reply-To: <20260306-mt8196-ufs-v9-0-55b073f7a830@collabora.com> To: Alim Akhtar , Avri Altman , Bart Van Assche , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Chunfeng Yun , Vinod Koul , Kishon Vijay Abraham I , Peter Wang , Stanley Jhu , "James E.J. Bottomley" , "Martin K. Petersen" , Philipp Zabel , Liam Girdwood , Mark Brown , Chaotian Jing , Neil Armstrong Cc: Louis-Alexis Eyraud , kernel@collabora.com, linux-scsi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-phy@lists.infradead.org, Nicolas Frattaroli X-Mailer: b4 0.14.3 The MediaTek UFS driver contains support for an undocumented, non-vendor-prefixed u32 property named "clk-scale-up-vcore-min". Since it is not part of any binding, and would not pass a bindings review in its current form, remove it. To return this functionality, it needs to be resubmitted in a series that also introduces it to the binding, and justifies what it is used for. Compatibility with downstream device trees is not a valid justification for its existence. Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Nicolas Frattaroli --- drivers/ufs/host/ufs-mediatek.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/drivers/ufs/host/ufs-mediatek.c b/drivers/ufs/host/ufs-mediate= k.c index ae6735683f76..1dfc299b93b5 100644 --- a/drivers/ufs/host/ufs-mediatek.c +++ b/drivers/ufs/host/ufs-mediatek.c @@ -880,8 +880,6 @@ static void ufs_mtk_init_clocks(struct ufs_hba *hba) struct ufs_mtk_host *host =3D ufshcd_get_variant(hba); struct list_head *head =3D &hba->clk_list_head; struct ufs_clk_info *clki, *clki_tmp; - struct device *dev =3D hba->dev; - u32 volt; =20 /* * Find private clocks and store them in struct ufs_mtk_clk. @@ -918,24 +916,7 @@ static void ufs_mtk_init_clocks(struct ufs_hba *hba) if (!ufs_mtk_is_clk_scale_ready(hba)) { hba->caps &=3D ~UFSHCD_CAP_CLK_SCALING; dev_info(hba->dev, "%s: Clock scaling unavailable", __func__); - return; - } - - if (!host->reg_vcore) - return; - - if (of_property_read_u32(dev->of_node, "clk-scale-up-vcore-min", - &volt)) { - dev_info(dev, "failed to get clk-scale-up-vcore-min"); - return; } - - host->mclk.vcore_volt =3D volt; - - /* If default boot is max gear, request vcore */ - if (volt && host->clk_scale_up) - if (regulator_set_voltage(host->reg_vcore, volt, INT_MAX)) - dev_err(hba->dev, "Failed to set vcore to %d\n", volt); } =20 static void ufs_mtk_setup_clk_gating(struct ufs_hba *hba) --=20 2.53.0