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 EF62ACCA462 for ; Fri, 16 Oct 2026 12:34:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :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=M+gyCGkNcNRmMOL9uTyPsYMWRzVlUGfTqav/QpVq3h8=; b=OL0iL9ynOXbo78 dKzeC+UV98Gsaj+gTG8eTwaDuk3fICXnXKth46eHuccgBqWBda/VCxZUyOuAErUAt61AsyiWoarRI Q2SLCfK+7fAJNbq3M7M7HeauFBIbSFWXT1VTdWAEZVsoRoDnpl5+EOZtdzfRe9HR61aQNOKtt5uRX KwZX9KeF/Tr18iNx1D+2tQeicP8u+zV6MnL5TZOcvGukhG2pF2tXUSh3dyBHISTFAaU45UjutymyJ FVh1vG0n7nm6Pn1ogzXqW3RnFGbslyn7ylURaX7gc33WkHTC04jr/u6T1yoAqUS7n3/OZ9vIbEiLa 5BbwfYpSWXkjodGyBZ5w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xHh9C-00000002vGJ-21Dz; Fri, 16 Oct 2026 12:34:54 +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 1xHh8J-00000002tbd-0BeS; Fri, 16 Oct 2026 12:34:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1792154036; bh=wHpgJ12qsqOceZTMy6v8+WhnPVqpiFP/V++jZdD/x9I=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=psUbeXq+xijo2sJ3u0F6sGRMbqiU50ThTw0VQ4dnq06Qaj9gYuOi51/3jZICEU2Cn JwGfa5LjlIRBv3dz1FcvSUl7jIFXEwiYLuibSEAcRKG0jP36N6N3iaAF09QEXDiKD7 6WKL6/0eb/qgnJA4lICMfu3hkac2KR5f4iJnjDnrBPEXrzKazk2786NLnvQTlYRs/r 8o0bZsyYPnmFm8NFS8m+o82X18VtrAd0BxY94txKcr9T04lnuA5ZwsqqUKFfMK33St PmFUMheTbdLTV/ozM2sYUpFyt8ZeBgU1igtiO9H9/1v2rhphgw2w6Vn+YzkLLrLgZA QcJ3pMN+Osmmw== 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 20A9A17E1509; Fri, 16 Oct 2026 14:33:55 +0200 (CEST) From: Louis-Alexis Eyraud Date: Fri, 16 Oct 2026 14:33:15 +0200 Subject: [PATCH v14 23/23] scsi: ufs: mediatek: Add MT8196 compatible, update copyright MIME-Version: 1.0 Message-Id: <20261016-mt8196-ufs-v14-23-e8d565e0cd45@collabora.com> References: <20261016-mt8196-ufs-v14-0-e8d565e0cd45@collabora.com> In-Reply-To: <20261016-mt8196-ufs-v14-0-e8d565e0cd45@collabora.com> To: Chunfeng Yun , Vinod Koul , Neil Armstrong , Manivannan Sadhasivam , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Peter Wang , Chaotian Jing , Alim Akhtar , Bart Van Assche , Bean Huo , Stanley Jhu , 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=1792154009; l=2479; i=louisalexis.eyraud@collabora.com; s=20250113; h=from:subject:message-id; bh=F+xJD4NokUgugq0lpphacZHCauVezznIgj/cPkDIZyg=; b=Qem980F3Qk2pcP7/bBgVxgEhNwXq2anlQDq+zd0sy8p0K6XuuT9t2AjQp4zHYkU8I70QbeKHM EPZ2qbZZI6wCoeNk0HOGKE+xP4PpU+CSXLEz9MrDHPp2q4Vb7CltOlk 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-20261016_053359_330052_0F0DCF66 X-CRM114-Status: GOOD ( 11.74 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org From: Nicolas Frattaroli The MT8196's UFS controller has a new compatible. Add the necessary struct definitions to support it. Also update the copyrights and authors, without tabs following spaces to avoid checkpatch errors, to list myself as having contributed to this driver after the preceding rework patches. Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Peter Wang Signed-off-by: Nicolas Frattaroli Signed-off-by: Louis-Alexis Eyraud --- drivers/ufs/host/ufs-mediatek.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/drivers/ufs/host/ufs-mediatek.c b/drivers/ufs/host/ufs-mediatek.c index 0ffd377ca395..c4ff74eff617 100644 --- a/drivers/ufs/host/ufs-mediatek.c +++ b/drivers/ufs/host/ufs-mediatek.c @@ -1,9 +1,11 @@ // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2019 MediaTek Inc. + * Copyright (C) 2026 Collabora Ltd. * Authors: - * Stanley Chu - * Peter Wang + * Stanley Chu + * Peter Wang + * Nicolas Frattaroli (Major cleanups) */ #include @@ -2278,6 +2280,10 @@ static const char *const ufs_mtk_regs_avdd12_ckbuf_avdd18[] = { "avdd12", "avdd12-ckbuf", "avdd18" }; +static const char *const ufs_mtk_regs_avdd12_ckbuf[] = { + "avdd12", "avdd12-ckbuf" +}; + static const struct ufs_mtk_soc_data mt8183_data = { .has_avdd09 = true, .reg_names = ufs_mtk_regs_avdd12_avdd18, @@ -2290,10 +2296,18 @@ static const struct ufs_mtk_soc_data mt8192_8195_data = { .num_reg_names = ARRAY_SIZE(ufs_mtk_regs_avdd12_ckbuf_avdd18), }; +static const struct ufs_mtk_soc_data mt8196_data = { + .has_avdd09 = true, + .has_avdd09_1 = true, + .reg_names = ufs_mtk_regs_avdd12_ckbuf, + .num_reg_names = ARRAY_SIZE(ufs_mtk_regs_avdd12_ckbuf), +}; + static const struct of_device_id ufs_mtk_of_match[] = { { .compatible = "mediatek,mt8183-ufshci", .data = &mt8183_data }, { .compatible = "mediatek,mt8192-ufshci", .data = &mt8192_8195_data }, { .compatible = "mediatek,mt8195-ufshci", .data = &mt8192_8195_data }, + { .compatible = "mediatek,mt8196-ufshci", .data = &mt8196_data }, {}, }; MODULE_DEVICE_TABLE(of, ufs_mtk_of_match); -- 2.56.0 -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy