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 C0FDCD6ACFB for ; Thu, 18 Dec 2025 12:56:17 +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=T8hnWoQrHUVWSELR0fhnAMNIimt4R4siWMW93SJdlZg=; b=h1Dfa3fGCET6843pZ3I5Pgjw2r EgzP0F6ryLqGGQhzSFnQPQ49xHFJ8SdHDSywdj7kP67EmTisj4fTQ7hEdRWyC2sawz4cdpxA2GJwF CMFvjOqcFJ2o7FgNvHcQIW6zG7k1Jvc0X9Cb3uzoFMW3rcJfxoumdmtQTfZ85SDD3ff+QdluXnzX/ S7wV2wn+EubqsD/PkAKHe33Ko767yl3BiZ8XpA6owi27WxI1PldLyXX33dx9ogNCwCJglogqoxC4F vz/1YXP4PFs6rYFmtrhsUXUDET3vXThA3SIndaIwUI1wy+QlIIvvBfsC/sPcT8H9WlcRW6O7dVgJE OUdqawgA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vWDYD-00000008RpX-09sj; Thu, 18 Dec 2025 12:56:13 +0000 Received: from sender4-pp-f112.zoho.com ([136.143.188.112]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vWDY7-00000008RkX-2282; Thu, 18 Dec 2025 12:56:09 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1766062558; cv=none; d=zohomail.com; s=zohoarc; b=EwKseTwHOUYHb/wX3AF7XM0gbLUBISOzs25Xhe953hOBni0Uq2E6UsDtY64328wbgQanW2ACm6TSE4Ga5dGsr+WOSnDn/6ZF+rjqB4P7Aq01hba3vKnQLdKeIsjJWYh3PNwVnVdzKDqoPnwJcD00ain0FR1VnaodlSi0wC075Lg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1766062558; 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=T8hnWoQrHUVWSELR0fhnAMNIimt4R4siWMW93SJdlZg=; b=LuWhH3KWUT9mJLxjc8Drwff5W5VhdDIZ1GKVRtaO9vn71RqIunFrbYTzY83CTJ/61x03n7IJx2kh0FX3zbkrE1JPcHX1AiPnnibTOiVJqC+PvC/kgZyxwed7DTkRnaJJJ4nTlFgQ8MSFGFmbbFi91OVabAhMiVUWmqPTuKlFJpI= 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=1766062558; 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=T8hnWoQrHUVWSELR0fhnAMNIimt4R4siWMW93SJdlZg=; b=dga/JF2OyRW794KQ3gYXKFzwtAlc5PDjsWLuO//w++/M7wkkzIoPovLRJ/xNyH4/ 0LWAP/3aZiQzGVNcc3IuEwBY25AsylQqMrkjhFEKWs2QNkm09jiyb1DcGUBuExjr7XA gDSIYSqx1LUZNn2txi2caA6XgoxMztWj2LVo9aVM= Received: by mx.zohomail.com with SMTPS id 1766062556398237.15668362562133; Thu, 18 Dec 2025 04:55:56 -0800 (PST) From: Nicolas Frattaroli Date: Thu, 18 Dec 2025 13:54:54 +0100 Subject: [PATCH v4 04/25] scsi: ufs: mediatek: Move MTK_SIP_UFS_CONTROL to mtk_sip_svc.h MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20251218-mt8196-ufs-v4-4-ddec7a369dd2@collabora.com> References: <20251218-mt8196-ufs-v4-0-ddec7a369dd2@collabora.com> In-Reply-To: <20251218-mt8196-ufs-v4-0-ddec7a369dd2@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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251218_045608_043689_85818793 X-CRM114-Status: GOOD ( 12.44 ) 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 SMC commands used by multiple drivers need to live in a shared header file somewhere to avoid code duplication. In order to rework the MPHY reset control to be in the phy-mtk-ufs.c driver, both ufs-mediatek and the phy driver need access to this command. Move it to mtk_sip_svc.h, where other such command definitions already live. Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Peter Wang Signed-off-by: Nicolas Frattaroli --- drivers/ufs/host/ufs-mediatek-sip.h | 1 - include/linux/soc/mediatek/mtk_sip_svc.h | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/ufs/host/ufs-mediatek-sip.h b/drivers/ufs/host/ufs-mediatek-sip.h index 7d17aedf6fb8..d627dfb4a766 100644 --- a/drivers/ufs/host/ufs-mediatek-sip.h +++ b/drivers/ufs/host/ufs-mediatek-sip.h @@ -11,7 +11,6 @@ /* * SiP (Slicon Partner) commands */ -#define MTK_SIP_UFS_CONTROL MTK_SIP_SMC_CMD(0x276) #define UFS_MTK_SIP_VA09_PWR_CTRL BIT(0) #define UFS_MTK_SIP_DEVICE_RESET BIT(1) #define UFS_MTK_SIP_CRYPTO_CTRL BIT(2) diff --git a/include/linux/soc/mediatek/mtk_sip_svc.h b/include/linux/soc/mediatek/mtk_sip_svc.h index abe24a73ee19..7265ff2a6e2a 100644 --- a/include/linux/soc/mediatek/mtk_sip_svc.h +++ b/include/linux/soc/mediatek/mtk_sip_svc.h @@ -22,6 +22,9 @@ ARM_SMCCC_CALL_VAL(ARM_SMCCC_FAST_CALL, MTK_SIP_SMC_CONVENTION, \ ARM_SMCCC_OWNER_SIP, fn_id) +/* UFS related SMC call */ +#define MTK_SIP_UFS_CONTROL MTK_SIP_SMC_CMD(0x276) + /* DVFSRC SMC calls */ #define MTK_SIP_DVFSRC_VCOREFS_CONTROL MTK_SIP_SMC_CMD(0x506) -- 2.52.0