Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp346361lqm; Wed, 1 May 2024 02:20:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXuLNuPWODh47XERNI+Z7bVaujIQUD2obI061YbKmpy89ij9ZPg1lSYJI0005A8Dixc9MXgo+Y24lmcmdRJFvkkAxA1hYnVHcsugV7kNg== X-Google-Smtp-Source: AGHT+IHV7PyDP9zDJ3QJeA6NFGspOEypZvyjZmyE96MMCqgVq/bzObsKFj1UsiAUaCKrKXyRglNJ X-Received: by 2002:a25:2b81:0:b0:de6:13a2:651a with SMTP id r123-20020a252b81000000b00de613a2651amr1850833ybr.39.1714555208238; Wed, 01 May 2024 02:20:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714555208; cv=pass; d=google.com; s=arc-20160816; b=DXh9AbZYlYGHduRGY+vlGM7uzU11oC66jTqGG9vf7Sip4EA8udRRan2eEAsYmqF2Sa 3+yuWx36uKotwNjEDwjOPMZaRGf/zFpzrEiGV3pL/TzWdOuqDBmEY6ifFx+TCCCfndNJ qrODfzmU3LV8jftZ9l9YebxhJi1Ya7JHry5FzxrtnbMx21VERL8q0B/KMeCdFAAITbQL RtTYbvNjbEEZWkkhPKjyuAsT5AH0TlSqj6RuZQ+kMlruodqu9CPEH7JMPurOJjCtwU1R iJF6Nx0VBgirvo/xYIF0oJFHK95wF1FO54KQAUbIJdrxN3EGXkhxxrgmvWin+xv8C02E vhXQ== 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=gDKjYuMOOvQueQlZtzxRYnLgIlA8f7Ari39jSEC+hu0=; fh=UPVlWySsE0HQx9HwqNzTw2QgJui1qB440NiSbu9zqk8=; b=pbAbVK0cEfC9WJYMh9cLC9FfEEAm+HvnkrNnammxDg1k7kGvhkqOi3nvjugQ15eIuN 38VommytN3pK3N6AmlI71ac99nLPU1q0rFlN/6oOICJnbb1qxJIrzq2E2izQvUAC29Ce XSJZD/bb3xek77K72Obxu0QD++75QdLMAB5D2OwTou7yE+PU7JQUFIcTQ4PsQS5KJ6uO OogmvaOoW0cqO1AYPHvoNJBMRwt2vbrPKJewove0adE08ybI0Poca01v4RMMkFFv0bnF 2vZDkLzQ6P+5vvcRALm5t+G5nsMaTOAnL55EorUkUQLDU9r5CofSzy7+KLVVsUd2KlV5 fNBA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uzSOTTFo; 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-165078-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165078-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. [147.75.199.223]) by mx.google.com with ESMTPS id w11-20020ac857cb000000b0043a5762696asi13991242qta.517.2024.05.01.02.20.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 02:20:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165078-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uzSOTTFo; 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-165078-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165078-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 DFFD81C20EB9 for ; Wed, 1 May 2024 09:20:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E41A35339D; Wed, 1 May 2024 09:19:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="uzSOTTFo" Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (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 2B55B502B2 for ; Wed, 1 May 2024 09:19:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714555181; cv=none; b=fN2zuyHfMv5Gf2Y4AmzaSPGs80L5/2KlWbI2UZPD8dx7GLssq1FYC/K+zyPfYRQH5yU7cucf504xeUq55uHAF1zVizvPGnbRW69Z/riTfDsPPchwAaZkW06VCTABRMykRYCB/1uwEwYV/A/7xPjawC7CrtcSh+4ow5V3+nyRmwo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714555181; c=relaxed/simple; bh=ZyNnKgvZCiDg/WDXGvirLjjH/RMUJBnGJV7fcumvd3Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=s2scs3NIaW3rwqyeyTgRLtsn7F+csK/AJBl843bqqL7QJ26EewhkLXED63CtxTEM+2q6CWVpy8FtzEf7890P0xb2IHGoZeObNKw3t9Cdv9qaQQ/iIPR8To3B1Vdb0i5xrWQL/QBrV9CEaRz1gs4/dTIQEesnp5qPphGI+ndcVGU= 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=uzSOTTFo; arc=none smtp.client-ip=209.85.167.50 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-lf1-f50.google.com with SMTP id 2adb3069b0e04-51ab4ee9df8so8309384e87.1 for ; Wed, 01 May 2024 02:19:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714555178; x=1715159978; 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=gDKjYuMOOvQueQlZtzxRYnLgIlA8f7Ari39jSEC+hu0=; b=uzSOTTFoK92qHI92dtkOeF92jCEN56Wr5hUJRtqQ3dj3uJ16/8vWw1a7XbodQ7GVuN X/akwxanJiw3BXxTcNywCkq317Cv6J4HwYCVCFPyCGA+BCdyOguWhH6KXxCkyu+d5HCB RUoBo4+VJGImn4BpDSG6CNscGwWNgH69D+5MJ8esbO4E4phrJJ6clnP3AW1XlAn7sh81 kiFVCEJRxh5eVgBxVgYqBW4uISpKyq7tfgjgvaq5kliTCF79Nu+PXlV7K2+YKeZb8kTl pYM2kfmP0vvfyJfGPGdBKsvHlXnHpKivCuedQqjzKT4dqbaVOWCGxnHBBsMPK+iT9RHJ JIDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714555178; x=1715159978; 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=gDKjYuMOOvQueQlZtzxRYnLgIlA8f7Ari39jSEC+hu0=; b=nlJZ4ixD9UCBTFpX0NabeEXi02BPMgibApSg/XKYtdnpTpsPKDWgMTNHswNqt6m7wg Lcn+ahVrL+Q/bM5uQ+EuuUko/R8KhbF+VbbsuaVKkjpaqM0Ar18YIeiJvRa7bRCK4map x9hVb4O2BnIB+7SU35fYVvwgnX0YjPVcrku3O9J1iTe//iNi/6HK2E16atKEjuLiOBzJ 1P7wiHAljvWeqj4Coh2KPfhKMTlZ684oILAiHR4a5QZzGWZk3WMIpKO+NmkIGzbQ0SIe xwnaCHJY/Ss7hXsMDTknqoZ5dMG2xKzNJsasmjujXXCRBy3roPnRmdfi/FBJD0vuCCLo eOhQ== X-Forwarded-Encrypted: i=1; AJvYcCW910vsA9yQnloVMqHOKFgYQMEqVzJC6HwR82YIUp3bYEcfw0IsLgM+Qeb2uMuc5ispnN8TulykDTu6hfDqCHwHe6Qyt1IjNjcbTGG9 X-Gm-Message-State: AOJu0YzUclUcsUq3C1MG/rN6AmwEgAd5rD+Xy2F7nGrJ4+3ZFcWMhs94 H5VQT7XGSh/DILceTDKGcClSfJp7DhmrW7o5gT/snuFFQEAxjbQFH1DaHVgfJOo= X-Received: by 2002:a19:ca53:0:b0:51b:396e:2880 with SMTP id h19-20020a19ca53000000b0051b396e2880mr1133041lfj.63.1714555178313; Wed, 01 May 2024 02:19:38 -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 bw13-20020a170906c1cd00b00a58de09fd92sm5425674ejb.27.2024.05.01.02.19.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 02:19:37 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Wed, 01 May 2024 10:19:37 +0100 Subject: [PATCH v2 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: <20240501-usb-phy-gs101-v2-2-ed9f14a1bd6d@linaro.org> References: <20240501-usb-phy-gs101-v2-0-ed9f14a1bd6d@linaro.org> In-Reply-To: <20240501-usb-phy-gs101-v2-0-ed9f14a1bd6d@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 , Arnd Bergmann , lee@kernel.org, =?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.45.0.rc0.197.gbae5840b3b-goog