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 8D8E4C88E72 for ; Mon, 14 Sep 2026 11:40:45 +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=hWrav63KBZpmH3KkO/k9eu39VRBkbQBPfQ8QluE+ZO0=; b=hmOjr1+gnqNagWqJXMFq4MEjpV qmTwM8uL05ZK8EuKtEWwaLcy1WnbN5cLApixK9X6b8WVPie/YPLQegasP6v6YBrRqPFeAvN8JArwT Wn4+LW6/eUAsQxMNLdSlvEOE5TeU5oFhOP7suyn4+feYUvBqI1oPXc15tTS0bv+kI5qGhOhdtQhwl GldCx5Lxlft6Y+npqk0u5XjCcBD7T6ElLWLCwY8Og6fpOwwUlE3CX1alD6MbJLBnb94lN3TkdgQMn vCegSGFBV6Mw8TW2UaoI2tpOW9ESQfKEmpEgZU1LW03cxaCy+CKuXtjsOd5QewDyi2uqu57FcmUY6 1ypeOjDw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x6539-00000003JYP-0rI1; Mon, 14 Sep 2026 11:40:39 +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 1x6523-00000003IaG-356y; Mon, 14 Sep 2026 11:39:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1789385969; bh=qXRhQiWz4yjkAG64NpqUexuN8x59eP05aPyDyJLzjuE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=EStvmeoKgz2OvHtOibWJGQkcoc4u2xnHAQHAE1zeLSySgAitfxESycy7D2u1o7WLj r5lCQWxS3RiqBOYIppEsBPpqxk5SoKsCBCm4qR8GI+wI7xkMWSJDEHy18D9qC8CkNn phr3rG3VzJq5jDlsSSwYKNvTD+vIn8ZnoxVNKQkfGvGCCcJINQGkTeUsTLf4XoC32w 0e60iXZWuKEEAcJBetaOK6PC8nX+0Ahh3LE2QwxiRlWkbCAbA2vzQn35TCEayhFgVD tYKZcvaxxE0Zk5KJl0lOg7crfPHPsGMrYpsBy5BIZrGe5PSBShD8B8sRAA6NtrGCQK p9oOMaucKhkBQ== 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 E842E17E091A; Mon, 14 Sep 2026 13:39:27 +0200 (CEST) From: Louis-Alexis Eyraud Date: Mon, 14 Sep 2026 13:38:58 +0200 Subject: [PATCH v12 12/24] scsi: ufs: mediatek: Remove undocumented downstream reset cruft MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260914-mt8196-ufs-v12-12-9279d7ef814d@collabora.com> References: <20260914-mt8196-ufs-v12-0-9279d7ef814d@collabora.com> In-Reply-To: <20260914-mt8196-ufs-v12-0-9279d7ef814d@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" , Philipp Zabel , Liam Girdwood , Mark Brown , Manivannan Sadhasivam , "Martin K. Petersen" 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=1789385943; l=2332; i=louisalexis.eyraud@collabora.com; s=20250113; h=from:subject:message-id; bh=g/eawi80h53Tw7KZFt8dlxUWQY3Eq7uS+MqISAa1J18=; b=DSX8wp8bC/Y3ZCiB6NYbMTcRBphCn4WJ77ytgCQxx8jZuXtrAs9D3Vxst3ceoOJWhykQKbyiV 19IIGdQ8CqMCz+ab+1JimVwtIkLykxKqT9QBe52t1sBXdt0shJ/87IW 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-20260914_043931_938135_9FD41E8E X-CRM114-Status: GOOD ( 14.15 ) 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 host driver's probe function allows using a ti,syscon-reset as a reset, without going through the appropriate abstractions, or by documenting this in the binding at all. Remove this, it's downstream code and does not belong here. Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Nicolas Frattaroli Reviewed-by: Chaotian Jing Signed-off-by: Louis-Alexis Eyraud --- drivers/ufs/host/ufs-mediatek.c | 33 +++------------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) diff --git a/drivers/ufs/host/ufs-mediatek.c b/drivers/ufs/host/ufs-mediatek.c index 15960d7d99af..3d108a092920 100644 --- a/drivers/ufs/host/ufs-mediatek.c +++ b/drivers/ufs/host/ufs-mediatek.c @@ -2451,38 +2451,12 @@ MODULE_DEVICE_TABLE(of, ufs_mtk_of_match); static int ufs_mtk_probe(struct platform_device *pdev) { int err; - struct device *dev = &pdev->dev, *phy_dev = NULL; - struct device_node *reset_node, *phy_node = NULL; - struct platform_device *reset_pdev, *phy_pdev = NULL; - struct device_link *link; struct ufs_hba *hba; + struct platform_device *phy_pdev = NULL; + struct device *dev = &pdev->dev, *phy_dev = NULL; + struct device_node *phy_node = NULL; struct ufs_mtk_host *host; - reset_node = of_find_compatible_node(NULL, NULL, - "ti,syscon-reset"); - if (!reset_node) { - dev_notice(dev, "find ti,syscon-reset fail\n"); - goto skip_reset; - } - reset_pdev = of_find_device_by_node(reset_node); - if (!reset_pdev) { - dev_notice(dev, "find reset_pdev fail\n"); - goto skip_reset; - } - link = device_link_add(dev, &reset_pdev->dev, - DL_FLAG_AUTOPROBE_CONSUMER); - put_device(&reset_pdev->dev); - if (!link) { - dev_notice(dev, "add reset device_link fail\n"); - goto skip_reset; - } - /* supplier is not probed */ - if (link->status == DL_STATE_DORMANT) { - err = -EPROBE_DEFER; - goto out; - } - -skip_reset: /* find phy node */ phy_node = of_parse_phandle(dev->of_node, "phys", 0); @@ -2528,7 +2502,6 @@ static int ufs_mtk_probe(struct platform_device *pdev) out: of_node_put(phy_node); - of_node_put(reset_node); return err; } -- 2.55.0