Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp937253lqd; Thu, 25 Apr 2024 00:47:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWaSMd2hBDyb0W1OT5ovo6KK697Mb8DQynMX9SXdJPO9UZygEGHCrX5ES90JQGnJxfPJzXDZocRr5pznFyi2Qp5T5QRT4q6hy84wT9mOw== X-Google-Smtp-Source: AGHT+IHMR6ChWzO90lmKozogV+dImDJ/hAUW1QcPjHOY8yavzSe4dpGxowdpqMrfEbUHrCW8HdTD X-Received: by 2002:a17:907:2d28:b0:a58:9a74:57fc with SMTP id gs40-20020a1709072d2800b00a589a7457fcmr3395207ejc.15.1714031258960; Thu, 25 Apr 2024 00:47:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714031258; cv=pass; d=google.com; s=arc-20160816; b=n6IYP2AA3eCRZWZF5gqdQYFC71QtVJWfCBsHXmBXtiozciIXuzru3MOivG5caNhid0 LyMYKRcDe4arRaRkfwj219ay/QmfZULdsJwn+U95JraXy53CzHw0qzwsaxdZcfXEwjpU 1bPWR4+tkcnObsHQYNrjpzK3lCK4grqm+K129J1WSAz5CGo+UrIOHOClutldHng00sPu BkcJHY44Tl/XoaHXaUqikC2eTYRZvDM5KhJeGLHcgnNIYOs3ZxbwojEImUMmpra/neI2 PE49oua2CN+/HRg9CvWaEqF2MV0rw2TRs8X2k91HJ6bGoknVcbQ7Uz3gQQJg45wfUJSP qIZA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=KO8qMaMD1WGtlgcA7W/Jq2+QozvRzg9eops1qALAJHY=; fh=+7rIQCD7JQQEDBPGkSkMi2TyxVafXgZdXy7V0pWVqus=; b=rtGfWIrrStOuoP0ii/czEnuKrqIjaC48DktnJMBcUtQa8heKHumSvzMPfIwoVGFUT/ T39SlcztsZ4ibMRusiQt86fhTpzzZogwoGObUCwrPYGpZTOvUJj2Tw9nt3wQviogyAf4 xNASeUFfjF/DztOTMpESBMKyyco9nfnpanPEbl9Htx4OZQXQ7ZWkeh6g5PgQ9jt9zkyR COpiYH4lnSOk4qukhA4fBA4nFObKh48glMByFnHAjN91LNfGSH/axIxzcmyQoSEeZbJT YFrlfKDXUiIsOugJijF0dBhLA9jgFjys6eke0918r1Dlc/uwbA39PilPEI3O9xcry0bV 22PQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V6s9EG8u; 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-158144-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158144-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id hv17-20020a17090760d100b00a55adf94302si5937766ejc.148.2024.04.25.00.47.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 00:47:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158144-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V6s9EG8u; 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-158144-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158144-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 7C5281F24F0F for ; Thu, 25 Apr 2024 07:47:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 89EA96E2AE; Thu, 25 Apr 2024 07:47:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="V6s9EG8u" Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (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 CE07767A1A for ; Thu, 25 Apr 2024 07:47:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714031249; cv=none; b=IiNoIpFcYn3VNOcAw5mu7xGN6oeFpIhlSyvgGYIV5+8KXPomBJcPASTncULnYCEC4ReHgJWAmyGBSqxu3BO+GqLwCA4hxHiIKUaRXPZbSJwVOkng7yJvhsNaJ4eu/pcZh3hZC6MYCLUrRxoiZ+k5vjJUWbxmKnKNE4HT29m9/vY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714031249; c=relaxed/simple; bh=qiKGRSHdGdyXnEluj1bfHE3GLYCMmIz+vDxNZnqQIb4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=lWi703S7DhCzMUILTlf8AvOaVkO/p9duZrUX4jvw6wNEWVpwIfjyReoQjxOfusgZTWSJ+y9KqLp+76IgFAa1qGGpIVPudqIj9yuAsPVAQoDTYJEYpmNDb5hr7kyrhINNW+5QH94Y5ivaayuIKETmwvzLZl0lsWU0wjiX0scJSFw= 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=V6s9EG8u; arc=none smtp.client-ip=209.85.221.45 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-wr1-f45.google.com with SMTP id ffacd0b85a97d-34c1a17da03so132720f8f.0 for ; Thu, 25 Apr 2024 00:47:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714031246; x=1714636046; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=KO8qMaMD1WGtlgcA7W/Jq2+QozvRzg9eops1qALAJHY=; b=V6s9EG8uXmBZDqBecGLqi7qYQbTg6SxWipNyH+mll/EqQfaeKTNK3gJzTOXJgv6hF1 klppAPqCi9wcOk8p/HryAeDcDPoPHi/cx2vM15ZAYVdyBqNNk6px5sXJg4eqwGhqSUxw WE54y7VAYly73ipEsBUNr0WK4uPm+ru4R6GqjGHOAaQ4152EksQsPdLKuviFRb5vKobU vQsK+TqE5HAY5aqr2OyfjsFJWsPZyX4qFVAMAp2ios2CO/0Kdwxj6SMShkFh4DUHlbRi G9DLCBO1c1zoWN7+7i6ZpHdXKYoS7+CPvCN/zKxySENsGW2p7EVuOvRRK2sZtHITHnEy XReA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714031246; x=1714636046; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KO8qMaMD1WGtlgcA7W/Jq2+QozvRzg9eops1qALAJHY=; b=JUNK/SgRFVtzhslRt11Pz2Xdz5W/vYqnAbKUlBW8Bkf/5/6huL2bH9wJxWM7BOJiEj RQ0WgxqmzW/Fczvey3n8acBozgsKw7rQ3fLLtKNQhp0E2R0TiiZX3FugNSfj/srG/1t/ VdP5hPmaSJCQGSxShyY1OCIZgHoAYgq+yBJEg2rRlo4LAvP7/kBmSLX8VCn1lE0X5je4 /ETDzpvh9bZxNaRUH+ATqdQuARRmvTyLOhIdJpv4f0v+KG7gmYQ/zignGzDURe/0yhwD EfHK2iaxmzIDfKt2nG/1dEmuanmhDe1hNrK5Vh+urJ/zaRBN+3xCiY0vwHFEWsOPNy3J mRSw== X-Forwarded-Encrypted: i=1; AJvYcCWDe9OwjoEKBjYPydlW1q/BH16YxXX75vO0ETgxgW3A9B7lq0+ZqK5Zj5aMciYP2ULb8Yo29ykwfm/e+prPVbKdfIZbiB0/McTzQvLB X-Gm-Message-State: AOJu0Yx5MU4ecg9Vq75fGclmMsH7pFqfS2Ep2VOF8fuKsoMcXPZ84lip fHMZ++i9SI9+a7SXdDuz6E7jdSB/q9NR0NGyIiHqxYy7AygA6oKPnf8EygczKok= X-Received: by 2002:a5d:410e:0:b0:34a:4ad9:a93f with SMTP id l14-20020a5d410e000000b0034a4ad9a93fmr3909203wrp.55.1714031246146; Thu, 25 Apr 2024 00:47:26 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.16]) by smtp.gmail.com with ESMTPSA id j6-20020a5d5646000000b0034b19cb1531sm9426224wrw.59.2024.04.25.00.47.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Apr 2024 00:47:25 -0700 (PDT) Message-ID: Date: Thu, 25 Apr 2024 09:47:23 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/7] phy: exynos5-usbdrd: use exynos_get_pmu_regmap_by_phandle() for PMU regs To: =?UTF-8?Q?Andr=C3=A9_Draszik?= , 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 References: <20240423-usb-phy-gs101-v1-0-ebdcb3ac174d@linaro.org> <20240423-usb-phy-gs101-v1-2-ebdcb3ac174d@linaro.org> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23P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VmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240423-usb-phy-gs101-v1-2-ebdcb3ac174d@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 23/04/2024 19:06, André Draszik wrote: > 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 This is getting out of hand: shall we expect to convert all the drivers from generic syscon to Exynos-specific API? What if one driver is some shared IP, like DWC USB3 controller? I already commented on Google hwrng driver: I prefer to keep the syscon API and change the syscon driver to expose proper regmap. IOW, use generic API syscon_regmap_lookup_by_phandle() and the type of regmap returned is defined by the provider (so node pointed by phandle). Best regards, Krzysztof