From patchwork Tue Oct 29 19:21:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 13855336 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 C6E35D3A696 for ; Tue, 29 Oct 2024 19:23:42 +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:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=x0XI8AhmhnWxIwBb5nhzbNedpBYemfsEhJh3VU8fjT4=; b=Z77NwvC6GEyfkj+nONNhVRbwGP h4LUKG361YX2Cg0ypOh/pVFd0mQyupPwG7MZ8Fs1fc0X7e6MrrzR0jb5rwEI7efnNqwAoyt7WC3TV Q95Y/TcAXc8gN0xgU2CIW128CqEXjOPBMuihkrAgv2xEgu2jufGjgyr+m6aVX2eovQWo+SzB/Op5C 7vxjnllfYqaw3ESWQN1IQl7rMhlpAgaokvxKB9Iras3QE/93TiCqqSEZ7wRmCu0oHmXrVf06kGiQF 9t+k+cJbBRS8yZvaVZTWxVJXpTBoHuvMR5PGhNbGrPJitiNMpR8g+/RxUaYukqn88pLQmMqlVyGZT izewbCAw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5roQ-0000000FelI-1QGc; Tue, 29 Oct 2024 19:23:30 +0000 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5rmE-0000000FeNe-0u8G for linux-arm-kernel@lists.infradead.org; Tue, 29 Oct 2024 19:21:15 +0000 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-4316a44d1bbso53063675e9.3 for ; Tue, 29 Oct 2024 12:21:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1730229672; x=1730834472; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=x0XI8AhmhnWxIwBb5nhzbNedpBYemfsEhJh3VU8fjT4=; b=w0X0RTejWYm238lAxaUAH4W7OhJnPUCB/03LLdU8WfuBuVc0ePH2bvWu31l9lcqTVu Z9t9remv7GSAZZmjw6HgooM59Nf1yeRsalzoJ59lnKuHFvjmYQq8EP9pK5T2Fr4Jo/JJ ex2+nfApPgqxXOr40qP4Alq1t/vLCkYv8laY3cZ2256OuGu/NCg3IbEsWO5z5HOamXl7 mYkLLJaW5xvg9mqHMaPasEU4demZkN5Vaywnp6Y3IUcsldMmY8j9v+2bodW7tTztz7nU xUgWdjNtH9x1TbSz4emBgJX25sSeTnCtAwZk8uRG3lekJFZ9EkhrI7rT9OptbHpViCnt MYuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730229672; x=1730834472; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=x0XI8AhmhnWxIwBb5nhzbNedpBYemfsEhJh3VU8fjT4=; b=RrIaKs+Lmtkyq9ffo/zD6yb9V/cpvrFHOAaJLkHOYydxnOovMEs7EKolka6yLfXtn+ DbhSNh1S/Bp3N5GMe6X/cATxGrlZzYqORRFj2/nOBt1QSkF/VV3dS2B+1dayReMI6zfq 6/3W2NqP8uevf8rb4FnTm/nvpfAx2+8TGWQWZRkcSu81jnXGGEaqsF0Qi0ZUr9xGb7xi 1GuItv8N7UTP4kA5rELJ1BpP8R3BRky5sclkjPStHwAHlt4g+BE8FPp+DnRDA9BG96I9 0D7AwUH651w+GdMvjBg4WHEkFzZCEXCG0EaNLxj7gDnIARHKI62hxCPX0HeVGT9bVBWq YNMQ== X-Forwarded-Encrypted: i=1; AJvYcCXMro4Rkqbv3WKiW5IJidtXx4hWfB9sMJ/JOyjWR1SP16GG+JclQsylf0rjYJHHMJkk9x6q2B2/FnlqZjmyfVEe@lists.infradead.org X-Gm-Message-State: AOJu0YxezWBgZw8WP/0Wbojxgs6cYeX298s+ijdcqYt6mHAxggaC20WN i8rJOwiVa64LAV1/FmOo0DkL8dUIV7dzRNE5hdEJ35aY4In4F9f1bvV9foj6KX8= X-Google-Smtp-Source: AGHT+IGHMHqNaQuwakaAsQmPTNJ5IJ7w2nk9odL/D7VFnJmp9SBayW4GuwAbU+nObFDT/w1xv3DyDA== X-Received: by 2002:adf:fcd1:0:b0:37d:4cd5:fff2 with SMTP id ffacd0b85a97d-380610f4961mr9250210f8f.6.1730229671917; Tue, 29 Oct 2024 12:21:11 -0700 (PDT) Received: from gpeter-l.lan ([145.224.65.239]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38058981ae4sm13436572f8f.0.2024.10.29.12.21.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Oct 2024 12:21:10 -0700 (PDT) From: Peter Griffin To: vkoul@kernel.org, kishon@kernel.org, krzysztof.kozlowski@linaro.org, alim.akhtar@samsung.com Cc: tudor.ambarus@linaro.org, andre.draszik@linaro.org, kernel-team@android.com, willmcvicker@google.com, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Peter Griffin Subject: [PATCH] phy: samsung-ufs: switch back to syscon_regmap_lookup_by_phandle() Date: Tue, 29 Oct 2024 19:21:07 +0000 Message-ID: <20241029192107.2344279-1-peter.griffin@linaro.org> X-Mailer: git-send-email 2.47.0.163.g1226f6d8fa-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241029_122114_283439_51D4DAD5 X-CRM114-Status: GOOD ( 13.93 ) 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 Now exynos-pmu can register its custom regmap for gs101 via of_syscon_register_regmap() we can switch back to the standard syscon_regmap_lookup_by_phandle() api for obtaining the regmap. Additionally add a Kconfig dependency for MFD_SYSCON. Signed-off-by: Peter Griffin Reviewed-by: Sam Protsenko --- drivers/phy/samsung/Kconfig | 1 + drivers/phy/samsung/phy-samsung-ufs.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/phy/samsung/Kconfig b/drivers/phy/samsung/Kconfig index f10afa3d7ff5..e2330b0894d6 100644 --- a/drivers/phy/samsung/Kconfig +++ b/drivers/phy/samsung/Kconfig @@ -33,6 +33,7 @@ config PHY_SAMSUNG_UFS tristate "Exynos SoC series UFS PHY driver" depends on OF && (ARCH_EXYNOS || COMPILE_TEST) select GENERIC_PHY + select MFD_SYSCON help Enable this to support the Samsung Exynos SoC UFS PHY driver for Samsung Exynos SoCs. This driver provides the interface for UFS host diff --git a/drivers/phy/samsung/phy-samsung-ufs.c b/drivers/phy/samsung/phy-samsung-ufs.c index 6c5d41552649..8e9ccd39f97e 100644 --- a/drivers/phy/samsung/phy-samsung-ufs.c +++ b/drivers/phy/samsung/phy-samsung-ufs.c @@ -13,11 +13,11 @@ #include #include #include +#include #include #include #include #include -#include #include "phy-samsung-ufs.h" @@ -268,8 +268,8 @@ static int samsung_ufs_phy_probe(struct platform_device *pdev) goto out; } - phy->reg_pmu = exynos_get_pmu_regmap_by_phandle(dev->of_node, - "samsung,pmu-syscon"); + phy->reg_pmu = syscon_regmap_lookup_by_phandle(dev->of_node, + "samsung,pmu-syscon"); if (IS_ERR(phy->reg_pmu)) { err = PTR_ERR(phy->reg_pmu); dev_err(dev, "failed syscon remap for pmu\n");