From patchwork Thu Apr 4 12:25:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 13617711 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 E1B62CD129A for ; Thu, 4 Apr 2024 12:27:35 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jAI7yIAhETV3MPdTIBJiCynRJq6pHT89Y492uvmnZFc=; b=EnXtIZiMBtuYNb LBDnoL+2nMyJZvYDdynX7R9WqJBE4u0N6Sr+dY6drhbO5NektBjVcda69OuXsJr/anw6Ck+hw7hnA J23UxxpNLd3cbKl769f1/fpxdtXOvYmxHtY36O7k7XEyFHyOQA/nguW1ZHRvEf30l5lpPKOvXWHib /lZ6mbSHo2by6OoPrTyjANEwewLyA/eMjHG2WPRPLuWo3IHjLnxZWIb8X+PGUbh98JBcp6a6yvI5Y zUW0KpEZh0GA52Z+fr6HlltsSfanVbV9oG0TZAspafnUaaBnep1GK1mCdvg54UaeHfMU8CwoN7J6Q PvUlgO2QKdE/23JjmKyA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rsMBb-00000002bBB-0tIN; Thu, 04 Apr 2024 12:27:19 +0000 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rsMBP-00000002b2h-1I6A for linux-arm-kernel@lists.infradead.org; Thu, 04 Apr 2024 12:27:15 +0000 Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-3438d7a05aaso544250f8f.0 for ; Thu, 04 Apr 2024 05:27:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712233624; x=1712838424; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=j8M8yJjJuvMId3GZYZjS1l/TGkga5FhjqBUO4vnkd2U=; b=hELXvjcruiioYUU/3XQ53TWerYwczhCDY9lEHADspn2M8RE9X36H5eLGh+rmH3fX25 o8yvFWXv3oqivw1q/3/TCvbyXi+X5AaeZYBGyiWJJxTHlSI9sKtr7lVorydcisFVqjI6 0t1XYnkEy0Qr3PNxspDA749tp0/vPUxqZ9+uEJuXzyGR5eALBPQBwE6whT3xkMhSPdbl OOPKvwkf0+CnTF0J4ON6UHr0LTip0e/6aKcUBpBx3tXXM6oeFWQXXzE9XqusadsCONCa i42D/ezyFI3/gJb74/T3IsCUREcVabfqwxzNF+7xa7IEHHVQiGjlBobbHGqdf0iFQGB/ 7lwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712233624; x=1712838424; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=j8M8yJjJuvMId3GZYZjS1l/TGkga5FhjqBUO4vnkd2U=; b=Yd75qWaEeyrBBFf6sOsMCAI96f1j2POuaVN9AoQugSlkFDWnLJ6XhkRWHsxqfTPx4v bf6nK1pbVROuM6txihzvWSB9z4ifseV1/GrgBmrKRXmoQ4UbJ23L4e3L/lCzf2n1OA2d +JuOK4RQVVOPXUejUJM3CgMbeFjkeFn0lJ+hTpKX52jDdaxM6g2mSeCaA5xkAbg+jK/z TvQdhc86ZA9mmr9MNcmjOLCjtbAuqEZCYENJW7i2Tlo9cThPOMh3W82jEw1XgaMeevtA 7tDWdrjMjOp8gcaSIhaXENRG0/rG5h5wgs6J3hQ0Uab69I9SJlU3xNc9fmwvPz43/YJd edHA== X-Forwarded-Encrypted: i=1; AJvYcCX7o+XjaTyFzlm7XMXYbvrc8fYT2J4IDknm6X7j3inywvI+3cF9HCZ+GxNFhmZNakMKJ/Cb/ZPWaC09oc6mC5KZOM6H48cSTFgsIrzWKE4W4KAawK4= X-Gm-Message-State: AOJu0YzelqDx3j992+EfYbhjtun69RH7DYc62wFqyVLEA0wKT0ZQzIaQ CekC/ICZ3JKT9J+QX2kOjYl5Eji/zgj4bO1V38tr7gwfUkuOJSMfXClVMI6H+qc= X-Google-Smtp-Source: AGHT+IEexjP4B7taUG1Uny4tFgGyVFyyDBsJMVaOWIrgfE/nQ60oagnYHJl04Il3/SGN/3eIZeAILg== X-Received: by 2002:adf:ee90:0:b0:343:83a8:96e with SMTP id b16-20020adfee90000000b0034383a8096emr2374666wro.8.1712233624515; Thu, 04 Apr 2024 05:27:04 -0700 (PDT) Received: from gpeter-l.roam.corp.google.com ([148.252.128.204]) by smtp.gmail.com with ESMTPSA id bu14-20020a056000078e00b003434b41c83fsm12106303wrb.81.2024.04.04.05.26.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 05:27:03 -0700 (PDT) From: Peter Griffin To: mturquette@baylibre.com, sboyd@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, vkoul@kernel.org, kishon@kernel.org, alim.akhtar@samsung.com, avri.altman@wdc.com, bvanassche@acm.org, s.nawrocki@samsung.com, cw00.choi@samsung.com, jejb@linux.ibm.com, martin.petersen@oracle.com, chanho61.park@samsung.com, ebiggers@kernel.org Cc: linux-scsi@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, tudor.ambarus@linaro.org, andre.draszik@linaro.org, saravanak@google.com, willmcvicker@google.com, Peter Griffin Subject: [PATCH 09/17] phy: samsung-ufs: use exynos_get_pmu_regmap_by_phandle() to obtain PMU regmap Date: Thu, 4 Apr 2024 13:25:51 +0100 Message-ID: <20240404122559.898930-10-peter.griffin@linaro.org> X-Mailer: git-send-email 2.44.0.478.gd926399ef9-goog In-Reply-To: <20240404122559.898930-1-peter.griffin@linaro.org> References: <20240404122559.898930-1-peter.griffin@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240404_052707_742656_9D5A3139 X-CRM114-Status: GOOD ( 12.53 ) 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 This allows us to obtain a PMU regmap that is created by the exynos-pmu driver. Platforms such as gs101 require exynos-pmu created regmap to issue SMC calls for PMU register accesses. Existing platforms still get a MMIO regmap as before. Signed-off-by: Peter Griffin Reviewed-by: André Draszik Acked-by: Alim Akhtar --- drivers/phy/samsung/phy-samsung-ufs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/phy/samsung/phy-samsung-ufs.c b/drivers/phy/samsung/phy-samsung-ufs.c index 183c88e3d1ec..c567efafc30f 100644 --- a/drivers/phy/samsung/phy-samsung-ufs.c +++ b/drivers/phy/samsung/phy-samsung-ufs.c @@ -18,6 +18,7 @@ #include #include #include +#include #include "phy-samsung-ufs.h" @@ -255,8 +256,8 @@ static int samsung_ufs_phy_probe(struct platform_device *pdev) goto out; } - phy->reg_pmu = syscon_regmap_lookup_by_phandle( - dev->of_node, "samsung,pmu-syscon"); + phy->reg_pmu = exynos_get_pmu_regmap_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");