Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp3096037lqt; Tue, 23 Apr 2024 10:08:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXKIiAo7TS08R/mfsD+SA3TmtsM6uMviG29/vPS0P2aekJML/jOZSCmqoEXgerUT3bh6i6c16PbhaWQi8b3gTJVoSJGgApZ6TW3RQIyjg== X-Google-Smtp-Source: AGHT+IE0Swxqpl1cI/DdAQKGNqJnbGCMi9RqvnBukx2JC5GFPeovLR72NZSFgo84sR5HXjIs9Ob+ X-Received: by 2002:a05:6122:2c3:b0:4da:ddb4:feca with SMTP id k3-20020a05612202c300b004daddb4fecamr4844701vki.8.1713892093930; Tue, 23 Apr 2024 10:08:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713892093; cv=pass; d=google.com; s=arc-20160816; b=j00ZdE0TcOnzZrIw0gTYfXFUp5gAW3ENHEHfn/e2Q2M+3o0yoYldylwDgWTPFxM0/w a7JaUDgjoVg7G7pmBgwdcoSJwnTR8mIg2ir2W25mVPeWK/HWBXH6+BO2QkfFi/NyC4WN Mk3ipItW6X1rmUPlZQOqvAaOy/5MnsLpqbVEv/eE22bHKr+7IVJqt8jGckN2qE/aTzXj PZcrvGX5cU5lW5snB4KA+Mt2fSDMeAvtajSgvaI9xFJmCebzw8zK7JR3zkEHNqgnf0kJ Qp92eaUHPThNuduAu8bLseUi58et0xE5GRIMgFr/d7xgWJ2+Sn5iCLMCtKcelvrYmnaJ Urow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=9GFmm1lXG8IRDZ7oQOROxJWRILdkR+JVdhVLDYhofYU=; fh=RxyQEh+VCpv0UuOlRc2URIoEdiII8Y+qunqSTGTO3H8=; b=BMCL9J1oi4IIPae7HyuM739Be76YcJZyesl+MNdz0R5baV3s6p0AzdjwokNMQU5pdB BTy+24Mla+9jlLPFpYg4dMcp00h5vkHK6EiRS5IxkPG2jDjW1p15QVUi4ahEwRgqgzcx RuJv6zhGN3QXR/9LwArtnZbBXLE6GuSZRzr1fL1x321jQS7Nm8ygM092mwBqii3XPYzU KAQOVHizCwHsd/qZMkclqi1hNUKtbyvZjbJseQYjf7Rkj6EeEE3PPW3d4APGaR8VvCN7 Mj6Zo/BfGuTZeBP0K6FgCOEnBMF4ar9JT7tvUJGlrqDdOvUAedgMXqqh/cm0rmrggWbZ NJ+Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i4zrSe2Z; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-155633-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155633-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id j36-20020a05612221a400b004d88bb3427esi2453194vkd.222.2024.04.23.10.08.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 10:08:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155633-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i4zrSe2Z; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-155633-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155633-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 270EC1C22D5C for ; Tue, 23 Apr 2024 17:07:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AC00E13FD64; Tue, 23 Apr 2024 17:06:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="i4zrSe2Z" Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5947313DDDE for ; Tue, 23 Apr 2024 17:06:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713891989; cv=none; b=DjdMjmg3q0tdzFEbLq5sN28grzUEAJXzuY0oCl77krhXl7Td+1SiOc3v8+kyscailGX+Q7hSmUp8Coed9QXfg34AvbkDMXkJyLJqVhq/zoJCbEk3UkjjipEpVnjW/o0VMfZu1kk6uj+sG4l7BIdHB0h4ZyXAh6qx8KUhr+wHSqc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713891989; c=relaxed/simple; bh=ymOuuOJbCj0Dq0+vkj5dWWbd/fQk6GUywJHE38P/a3I=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Sv6sV5GYGGn52e7KH9mtUSbmzkGqNQzgXMfQ4oDcvLuX3wQIpvyTW/p6nS5JaC17orzSJv5D/wSuncbWzYG4noitcyT9S0yryTXOpy2nNvpTIqxA+ASlAfI/AjFSKnbcDaD7dSh6/fTCMG6b5DR4Kg4pX/ZUKDlJVhiJwyj6eW0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=i4zrSe2Z; arc=none smtp.client-ip=209.85.218.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a559b919303so395141966b.1 for ; Tue, 23 Apr 2024 10:06:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713891986; x=1714496786; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=9GFmm1lXG8IRDZ7oQOROxJWRILdkR+JVdhVLDYhofYU=; b=i4zrSe2Z2Tlfr0BBC1CDtpPbZ9jzO5tHXCm0hK6tARneAmG6AyUcz/6xX4PlWtj3lV Fz4fh8woXmvx/mUSPFbwGCvP9cN/NTvjdOaqQrKf8zJ8IiTPH0Bc0YbIa+f3Ijb3ftXr esGWitZCawp3z2LC9oPU1HUV01FmxulrSHzua2+Tvehojxrr/dFhafLkdFTU2dzRk3Tz ogaxxucToiE7bzRtBr2G9lcFl55WJholHBeoMfFiwxKEHAB9h5lyI9cMkOd09+lsYSEU FBbPBKjF4lUKIM5W7XEaQtuT9VOLEI9lEctHPk7UPrMUM0DQiTW79SYvtMeLN7hSsUFP m1xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713891986; x=1714496786; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9GFmm1lXG8IRDZ7oQOROxJWRILdkR+JVdhVLDYhofYU=; b=T9YSRALXhP8JQ+nD3/LSBCOtCWdAxrRI3WMoY2vlsFasC3S+5sAyMx9Q1BudwwJnbG dMOqMcQLjizpKM9gcs8juuqDBAw1mxMsGQ9JfHfYF6HFCDIGvLHMZ6jVmJCn3AtFaXDD O11gGV//ZLEEo4PrHVcWRIkiNXiRM2O/ICrD+h0lchIAygZpFi5RafqbWhN8qVK5rbaZ HsI97WgHuy5MK5eGPR6aIGvfWCvogTyQYfFqcQ88B5CTLz7iXy7FW6+Ff0BQ3nq0dCJL 22fKy7OiY3nK45u49SqhixKVMBapa6SSaUGviIW29YSzK2VsZdrYcZI+zlEbxBmAV+97 yhJA== X-Forwarded-Encrypted: i=1; AJvYcCUWKMBTr84KkXiLG/WQRCWaqVkLV1V2JZ+0QJefLjV/WfGtBPk1tHE5cumPUkYfFer8PforCvT19TQI1GPAuAzYoEN+w5wYCzs0D1cs X-Gm-Message-State: AOJu0YxL8QH0qE2CfN605/ILowUp8LhMhylNOsy79w5f5eLRG/y5nSh3 ko5AzDc+5uIjAR9brcV75aIC//7w/d4+qJR3wn5/SB9tS91O2tCuWQVdN7CSVfc= X-Received: by 2002:a17:906:4fcc:b0:a55:6f2e:b87f with SMTP id i12-20020a1709064fcc00b00a556f2eb87fmr12163408ejw.8.1713891985752; Tue, 23 Apr 2024 10:06:25 -0700 (PDT) Received: from puffmais.c.googlers.com (8.239.204.35.bc.googleusercontent.com. [35.204.239.8]) by smtp.gmail.com with ESMTPSA id t22-20020a1709063e5600b00a5209dc79c1sm7351624eji.146.2024.04.23.10.06.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 10:06:25 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Tue, 23 Apr 2024 18:06:04 +0100 Subject: [PATCH 2/7] phy: exynos5-usbdrd: use exynos_get_pmu_regmap_by_phandle() for PMU regs Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240423-usb-phy-gs101-v1-2-ebdcb3ac174d@linaro.org> References: <20240423-usb-phy-gs101-v1-0-ebdcb3ac174d@linaro.org> In-Reply-To: <20240423-usb-phy-gs101-v1-0-ebdcb3ac174d@linaro.org> To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Peter Griffin , Marek Szyprowski , Sylwester Nawrocki , Alim Akhtar , Sam Protsenko Cc: Krzysztof Kozlowski , Tudor Ambarus , Will McVicker , Roy Luo , kernel-team@android.com, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Krzysztof Kozlowski , =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.12.4 Some Exynos based SoCs like Tensor gs101 protect the PMU registers for security hardening reasons so that they are only write accessible in EL3 via an SMC call. The Exynos PMU driver handles this transparently when using exynos_get_pmu_regmap_by_phandle(). Switch to using that API to support such SoCs. As this driver now no longer depends on mfd syscon remove that header and Kconfig dependency. Signed-off-by: André Draszik --- drivers/phy/samsung/Kconfig | 1 - drivers/phy/samsung/phy-exynos5-usbdrd.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/phy/samsung/Kconfig b/drivers/phy/samsung/Kconfig index f10afa3d7ff5..bb63fa710803 100644 --- a/drivers/phy/samsung/Kconfig +++ b/drivers/phy/samsung/Kconfig @@ -82,7 +82,6 @@ config PHY_EXYNOS5_USBDRD depends on HAS_IOMEM depends on USB_DWC3_EXYNOS select GENERIC_PHY - select MFD_SYSCON default y help Enable USB DRD PHY support for Exynos 5 SoC series. diff --git a/drivers/phy/samsung/phy-exynos5-usbdrd.c b/drivers/phy/samsung/phy-exynos5-usbdrd.c index 04171eed5b16..ac208b89f5a6 100644 --- a/drivers/phy/samsung/phy-exynos5-usbdrd.c +++ b/drivers/phy/samsung/phy-exynos5-usbdrd.c @@ -18,9 +18,9 @@ #include #include #include -#include #include #include +#include #include /* Exynos USB PHY registers */ @@ -1034,7 +1034,7 @@ static int exynos5_usbdrd_phy_probe(struct platform_device *pdev) return ret; } - reg_pmu = syscon_regmap_lookup_by_phandle(dev->of_node, + reg_pmu = exynos_get_pmu_regmap_by_phandle(dev->of_node, "samsung,pmu-syscon"); if (IS_ERR(reg_pmu)) { dev_err(dev, "Failed to lookup PMU regmap\n"); -- 2.44.0.769.g3c40516874-goog