Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp379790rdb; Tue, 23 Jan 2024 02:33:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IHw9RNOPk63amz7IDjNUsjZeBpV1lw3kKp202msb+LNKRDJtXlHQrhJ+TcIlPLVWMOjHncu X-Received: by 2002:a05:6214:e6e:b0:684:aa0d:bbf8 with SMTP id jz14-20020a0562140e6e00b00684aa0dbbf8mr699258qvb.57.1706006032875; Tue, 23 Jan 2024 02:33:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706006032; cv=pass; d=google.com; s=arc-20160816; b=Ina8/MEDmink/CemzsmWc/kflhyLC/s+GAZqgOhxINpXLG3wizsY7/nE28UKP2R+il 329Xn7Af68ORSoIQAJghUATQSpThuDgm3vnymbG5XHvevA3RsEsDAwNVkOADkwXILYUU NSOdwJgv1oflOpS05fJFX2+QSfUM/0a2Vd5qQE8pIQlw+Q2rS9gdltPu3wvieQI6zLtS 5vxnPkk91kcdfH4lPAW6dkgzTBL6fKtEn15aoIAkgG1cUAIegXn8S1PwxfmkImeWyIwG 0LCQTejG4t8tiNCakTl7c1vL5tvPahVDwvzCly+KpoQNqM0x6f8QDuE/HeKcM+6mcP1d IWtw== 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:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :sender:dkim-signature; bh=/kWlrAsaCmjeiYXkdVA1YyhGdw7+xla0wi8v7ASUMKs=; fh=wnUerdW0ttEAgGK8zBlG/dT4t2kC48YHO2wqOq8U3E0=; b=LMpjGQsYpGkosESDiubrZED/YSZ2TQvvCOkHFTo1nUO4tSQEGseBihPGGt8EvW23lI eR5YJeYrFxq9NByoStQIX53HEGpp94+Y5olsKIeUJDwW+c54it4k96uGaDF1/8SiBV1o Ds9WEOEOQu8b/Cgp8GnTNYjACJVAvmPqch9RjjfJ2LpeQDBR7nET0kaCrw3A1+HoR1wC d82NoVrD4tUy9ujrrzvz/NeesIyhSgCrv6CD58uhpVt9JmH5S/LpK182w1hVuDP7cjvD VSoaFNuinCcQdNIFkDe4rR0MvK5ZhTzDkPJ1CFlVKNRYo9SKayyuSWvJtEh7yv9RJZRG nlIw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GB83W9lN; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-35096-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35096-linux.lists.archive=gmail.com@vger.kernel.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 z14-20020a0cda8e000000b0067f483722c0si7648356qvj.208.2024.01.23.02.33.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 02:33:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35096-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=@gmail.com header.s=20230601 header.b=GB83W9lN; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-35096-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35096-linux.lists.archive=gmail.com@vger.kernel.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 8BE5E1C217E6 for ; Tue, 23 Jan 2024 10:33:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5AB025C8E3; Tue, 23 Jan 2024 10:33:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GB83W9lN" Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) (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 A31C350A77; Tue, 23 Jan 2024 10:33:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706006022; cv=none; b=nZCzTvaFpZUf2MY8p8sE2LzTHj7+sUGd6aV+fOpKqZGvzjNBJ2P1hsLfE/82NyvNiL47z2LJsDkKS5ps2LaMA28STm3H65Bt+u7CB5OTrYUDAqMx6rh5CONzNuqnC76xjBZ3cxmlNqVGSHrsv4EzMr+YdHCag3l5wE3uAmQX7DM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706006022; c=relaxed/simple; bh=b/HjrJfU8EEcbsztZmBbn++VHf0B5By+qe8X/6IIxsQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=YLb38ExKxOzqCpBOAUGA1Ij/RqqFlUEiUhSXZt+CGemtZvF7+9YCFzrdJ089dtUqNxf18HVy80+XDCf04O/Lh9FyKyO4B84jX4s6Azut1Qy9Bc+CajbWJbhyTWnkyJvDz85rni1EbqaWdkvMDQ4ZHGFQ3V9bKf7WXVV+Be0jf+w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=GB83W9lN; arc=none smtp.client-ip=209.85.210.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-6dac225bf42so2228203b3a.0; Tue, 23 Jan 2024 02:33:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706006020; x=1706610820; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=/kWlrAsaCmjeiYXkdVA1YyhGdw7+xla0wi8v7ASUMKs=; b=GB83W9lNmdspxUa6QTZsNb8Ujm05Y8jhYIpvIfZ9JF4PJnS44YEevPKCbPM1OwqUdz uUS+CdHM32TBUZhnuSnOdixhJPcT+lavYhWMYXNo20UoPkOvqcWN12wQC7roHu+Geq9b Bw4+HHh0TRN571MrqhZJ8Q0pymdUjJGmq+XypdO4bVOls1Qt2CTEoUPIkM70ifIJwWsI RFfEIDE2x67F7rWVLWwH73mvJ5jCVVF0dD3ZPGbDdGgHAFQWqJX9D8PuEYqxq+UhB8KS qS12BeLIBQr1sKEfOFCZRRgSlixIAiT4f4wIbmG6gp8XjnvcrfU1slpHpYLTA5J9GSq7 +BsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706006020; x=1706610820; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/kWlrAsaCmjeiYXkdVA1YyhGdw7+xla0wi8v7ASUMKs=; b=LqEt/WNl9GQEh6rdLCDh9zJPsos9VwKC0oNr8FpzsiMn8KanzoWQl2zD1/x2tVg1sL 7cDrntrHiU2IIKBaQe8wlH1famMoko7iOnQDWcVM2QErGaooY5XgL+Pmp3AOvFJmtFly +aDO/BUPmdRVCZu4qnhr6DL/p3hOdV1iZ/6/AIMATb3blPJ5WYh1PKO3x0y33bHV6eq8 8lgSKnVfnQRZG2qPLGT75Tl0Td+GXAMYxK2SpKIwoRqxBueCfsE+eJsUcQgWQ+AEwacj nmt9Oa2NF8XbJ4AebcoA1ynwBBqeUqmrTbscdG2+x2YawVRjWrJUmhPioXfeJtPezxZp v2bg== X-Gm-Message-State: AOJu0YyoqagC+vYee5ZzFGGQt+yr66mAmvYsAjRrj2pyhmXfdzVts9dT zyMIYr2QIo5qkoP+xhcYRZ2RlJ9mVpFZmhoh3DBlfvXaxiT/ECTA X-Received: by 2002:aa7:9841:0:b0:6dd:8092:6c63 with SMTP id n1-20020aa79841000000b006dd80926c63mr238938pfq.63.1706006019786; Tue, 23 Jan 2024 02:33:39 -0800 (PST) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id y22-20020a62b516000000b006dbd2405882sm5501006pfe.148.2024.01.23.02.33.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 Jan 2024 02:33:39 -0800 (PST) Sender: Guenter Roeck Message-ID: <726bd8ef-2074-4ae7-89fe-36e2bc70d02e@roeck-us.net> Date: Tue, 23 Jan 2024 02:33:36 -0800 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 3/9] watchdog: s3c2410_wdt: update to use new exynos_pmu_*() apis Content-Language: en-US To: Peter Griffin , arnd@arndb.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, wim@linux-watchdog.org, conor+dt@kernel.org, alim.akhtar@samsung.com, jaewon02.kim@samsung.com, chanho61.park@samsung.com, semen.protsenko@linaro.org Cc: kernel-team@android.com, tudor.ambarus@linaro.org, andre.draszik@linaro.org, saravanak@google.com, willmcvicker@google.com, linux-fsd@tesla.com, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org References: <20240122225710.1952066-1-peter.griffin@linaro.org> <20240122225710.1952066-4-peter.griffin@linaro.org> From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0 VHGMNJ3MwXlrEFPXaYJgibcg6brM6wGfX/LBvc/haWw4yO24lT5eitm4UBdIy9pKkKmHHh7s jfZJkB5fWKVdoCv/omy6UyH6ykLOPFugl+hVL2Prf8xrXuZe1CMS7ID9Lc8FaL1ROIN/W8Vk BIsJMaWOhks//7d92Uf3EArDlDShwR2+D+AMon8NULuLBHiEUQARAQABzTJHdWVudGVyIFJv ZWNrIChMaW51eCBhY2Nvd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1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= In-Reply-To: <20240122225710.1952066-4-peter.griffin@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 1/22/24 14:57, Peter Griffin wrote: > Instead of obtaining the PMU regmap directly use the new exynos_pmu_*() > APIs. The exynos_pmu_ APIs allow support of newer Exynos SoCs that have > atomic set/clear bit hardware and platforms where the PMU registers can > only be accessed via SMC call. > Not really sure about using a direect API instead of regmap. I personally think that regmap is more generic and like the idea of abstracting hardware accesses this way. Since that is POV, I won't argue about it. However, > As all platforms that have PMU registers use these new APIs, remove the > syscon regmap lookup code, as it is now redundant. > if syscon is now no longer needed, why keep selecting MFD_SYSCON below, and why are linux/mfd/syscon.h and linux/regmap.h still included ? Also, the driver did not previously only support ARCH_EXYNOS but also ARCH_S3C64XX and ARCH_S5PV210. It is not entirely (actually, not at all) clear to me if and how those platforms are now supported. EXYNOS_PMU still seems to depend on ARCH_EXYNOS. How can the driver select EXYNOS_PMU if ARCH_EXYNOS=n ? Also, ARCH_EXYNOS already selects EXYNOS_PMU, so a conditional "select EXYNOS_PMU if ARCH_EXYNOS" would not make sense (or be required) either. Please explain all the above. Thanks, Guenter > Signed-off-by: Peter Griffin > --- > drivers/watchdog/Kconfig | 1 + > drivers/watchdog/s3c2410_wdt.c | 25 +++++++++---------------- > 2 files changed, 10 insertions(+), 16 deletions(-) > > diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig > index 7d22051b15a2..b3e90e1ddf14 100644 > --- a/drivers/watchdog/Kconfig > +++ b/drivers/watchdog/Kconfig > @@ -513,6 +513,7 @@ config S3C2410_WATCHDOG > depends on ARCH_S3C64XX || ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST > select WATCHDOG_CORE > select MFD_SYSCON if ARCH_EXYNOS > + select EXYNOS_PMU > help > Watchdog timer block in the Samsung S3C64xx, S5Pv210 and Exynos > SoCs. This will reboot the system when the timer expires with > diff --git a/drivers/watchdog/s3c2410_wdt.c b/drivers/watchdog/s3c2410_wdt.c > index 349d30462c8c..fd3a9ce870a0 100644 > --- a/drivers/watchdog/s3c2410_wdt.c > +++ b/drivers/watchdog/s3c2410_wdt.c > @@ -28,6 +28,8 @@ > #include > #include > > +#include > + > #define S3C2410_WTCON 0x00 > #define S3C2410_WTDAT 0x04 > #define S3C2410_WTCNT 0x08 > @@ -187,7 +189,6 @@ struct s3c2410_wdt { > struct watchdog_device wdt_device; > struct notifier_block freq_transition; > const struct s3c2410_wdt_variant *drv_data; > - struct regmap *pmureg; > }; > > static const struct s3c2410_wdt_variant drv_data_s3c2410 = { > @@ -355,8 +356,8 @@ static int s3c2410wdt_disable_wdt_reset(struct s3c2410_wdt *wdt, bool mask) > const u32 val = mask ? mask_val : 0; > int ret; > > - ret = regmap_update_bits(wdt->pmureg, wdt->drv_data->disable_reg, > - mask_val, val); > + ret = exynos_pmu_update(wdt->drv_data->disable_reg, > + mask_val, val); > if (ret < 0) > dev_err(wdt->dev, "failed to update reg(%d)\n", ret); > > @@ -370,8 +371,8 @@ static int s3c2410wdt_mask_wdt_reset(struct s3c2410_wdt *wdt, bool mask) > const u32 val = (mask ^ val_inv) ? mask_val : 0; > int ret; > > - ret = regmap_update_bits(wdt->pmureg, wdt->drv_data->mask_reset_reg, > - mask_val, val); > + ret = exynos_pmu_update(wdt->drv_data->mask_reset_reg, > + mask_val, val); > if (ret < 0) > dev_err(wdt->dev, "failed to update reg(%d)\n", ret); > > @@ -384,8 +385,8 @@ static int s3c2410wdt_enable_counter(struct s3c2410_wdt *wdt, bool en) > const u32 val = en ? mask_val : 0; > int ret; > > - ret = regmap_update_bits(wdt->pmureg, wdt->drv_data->cnt_en_reg, > - mask_val, val); > + ret = exynos_pmu_update(wdt->drv_data->cnt_en_reg, > + mask_val, val); > if (ret < 0) > dev_err(wdt->dev, "failed to update reg(%d)\n", ret); > > @@ -617,7 +618,7 @@ static inline unsigned int s3c2410wdt_get_bootstatus(struct s3c2410_wdt *wdt) > if (!(wdt->drv_data->quirks & QUIRK_HAS_PMU_RST_STAT)) > return 0; > > - ret = regmap_read(wdt->pmureg, wdt->drv_data->rst_stat_reg, &rst_stat); > + ret = exynos_pmu_read(wdt->drv_data->rst_stat_reg, &rst_stat); > if (ret) > dev_warn(wdt->dev, "Couldn't get RST_STAT register\n"); > else if (rst_stat & BIT(wdt->drv_data->rst_stat_bit)) > @@ -698,14 +699,6 @@ static int s3c2410wdt_probe(struct platform_device *pdev) > if (ret) > return ret; > > - if (wdt->drv_data->quirks & QUIRKS_HAVE_PMUREG) { > - wdt->pmureg = syscon_regmap_lookup_by_phandle(dev->of_node, > - "samsung,syscon-phandle"); > - if (IS_ERR(wdt->pmureg)) > - return dev_err_probe(dev, PTR_ERR(wdt->pmureg), > - "syscon regmap lookup failed.\n"); > - } > - > wdt_irq = platform_get_irq(pdev, 0); > if (wdt_irq < 0) > return wdt_irq;