From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (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 9613D409265; Thu, 30 Jul 2026 09:50:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.251.105.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785405032; cv=none; b=iadi75VKdwtwT1cMUDPzeTDG8ymi8/exyZsn2ttduebOUr6wfYMmfYdQdEV4UUa17v5buWgAfdb6MxxF/ZekTt2hpiQlH8OOUyioq+04qoJBxWhBpshq7y+fTTl3VC6Sagkr+Vc4iSZZYKsg+45wnLhn5sr8pb2IWedqdr8L7/4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785405032; c=relaxed/simple; bh=KLWE6tJxghB2syyF//7dAI9U+peeF7dGv3LIhI5lHBc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=eo3M8Ere+bJXQi+A3gcVO7JikBPkupYQ8JPk8+v5+yAv8nO50Bo3EY6EKYtHyB3wnJHxDsjSCyvmnrFBb0vNqRfeFs6M/deTsxUJVwvKCYv6dSmEud1jnoapKsMmIHyyqUZYy3aFMRYyL9Zk7JdXwmbdTu/IkmXN6m1wHr31hho= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=gRcrJmMl; arc=none smtp.client-ip=148.251.105.195 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 (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="gRcrJmMl" 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" 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: 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= 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