From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E2721C54FD2 for ; Thu, 30 Jul 2026 09:53:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Y7ha69dDAj9Dx5inJhCJUmM0T5XjPOASIh15dSY10UE=; b=OFJst72PS1Nronm70dwEWh2UEl HBBVaO4PGY99l/INZB09JuxZrMIFQvloiUmXRVGgEAGaEnNsFABn2FmEyYCmn/EsVgKaKafDk9WCB BfgtM+GxjJCl5rcAP5JGaYOrC7euq+HJESxQNEVqinaPrRpr5CQlFr7pCO4R30WlRRbBbbr/foR+E +xBO8E+6OC0PwnaFejDE9akW+pUN/HK8Jzhueaw4RnlJSsJNVqu4zX0Db/JWu5nYcE3LXZdH1YZjN +fN5izwckjIiLQ1RfhFudR3dNshbRM6/3tl3XU0bMibkCmrSrC29LKYsx4JwYB2Bo5GME1bhFF+yR 0ckv98oQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wpNSS-0000000A63s-2XFy; Thu, 30 Jul 2026 09:53:44 +0000 Received: from bali.collaboradmins.com ([148.251.105.195]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wpNPL-0000000A3kp-0Cyj; Thu, 30 Jul 2026 09:50:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1785405028; bh=KLWE6tJxghB2syyF//7dAI9U+peeF7dGv3LIhI5lHBc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=gRcrJmMl7i8Yzi5mnRi6HkIyZUYgsLU/e7s8yx2RNvS4aRk6zpfFcnDqRJY5GS/Y8 RZXsdeGi09s+nAQzSlwFaEI0iDRJEdFkoVfl6uTOPudIXzQ3mkDXracHHPgDRomnJL FbCDAwifEONVD5C/0SiDWa/U9X01nB86ePBzt6KtOzuQErZIcsLWTYj1G+ZvDzZCxL 0Z5oESKAQ/2POdyvDCIKFzUg0xr4ZEY8HE9t/f52C3QIeovBdxq9eccYMMDhuXkVBV DGkJg0O0FoGm3PCsc58z3jhHkL2uTRacjTveyTLlRk9HCiSoe5qF8vMVFVmWInAGXh AgA94jdRv6Fhw== Received: from yukiji.home (unknown [100.64.0.131]) (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) (No client certificate requested) (Authenticated sender: laeyraud) by bali.collaboradmins.com (Postfix) with ESMTPSA id 8040617E097A; Thu, 30 Jul 2026 11:50:27 +0200 (CEST) From: Louis-Alexis Eyraud Date: Thu, 30 Jul 2026 11:49:18 +0200 Subject: [PATCH v10 22/26] scsi: ufs: mediatek: Remove undocumented "clk-scale-up-vcore-min" MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260730-mt8196-ufs-v10-22-bc5ecef202dc@collabora.com> References: <20260730-mt8196-ufs-v10-0-bc5ecef202dc@collabora.com> In-Reply-To: <20260730-mt8196-ufs-v10-0-bc5ecef202dc@collabora.com> To: Chunfeng Yun , Vinod Koul , Neil Armstrong , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Peter Wang , Chaotian Jing , Alim Akhtar , Avri Altman , Bart Van Assche , Stanley Jhu , "James E.J. Bottomley" , "Martin K. Petersen" , Philipp Zabel , Liam Girdwood , Mark Brown Cc: kernel@collabora.com, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Nicolas Frattaroli , Louis-Alexis Eyraud X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1785404993; l=2125; i=louisalexis.eyraud@collabora.com; s=20250113; h=from:subject:message-id; bh=SE1u+ZI5HYa0M4Q4Zo8L4ENlLg8TvbipyDrWupHRUVU=; b=okBK5io1SBOH81bJvDW7sC4BdQnBEssOZCWyuSQe9R/8wJLMyC0dKdiP2c2F7PFOcS7WVIQZT bebNoaPv/fFCBoNgVd8ky0q12Mhw3OUk3rYvJEb+q+iUOIAca/cy1Pd X-Developer-Key: i=louisalexis.eyraud@collabora.com; a=ed25519; pk=CHFBDB2Kqh4EHc6JIqFn69GhxJJAzc0Zr4e8QxtumuM= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260730_025031_260330_4430C729 X-CRM114-Status: GOOD ( 12.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Nicolas Frattaroli 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 Signed-off-by: Louis-Alexis Eyraud --- 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-mediatek.c index 90c8606d85a9..5dd72b826181 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 = ufshcd_get_variant(hba); struct list_head *head = &hba->clk_list_head; struct ufs_clk_info *clki, *clki_tmp; - struct device *dev = hba->dev; - u32 volt; /* * 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 &= ~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 = 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); } static void ufs_mtk_setup_clk_gating(struct ufs_hba *hba) -- 2.55.0