Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp834668rdb; Fri, 9 Feb 2024 02:35:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IEym4iVewWF3FzYAd5OCBaCdMyW2dEARTaiLvS8GpsBK7gA6gckGCeRpq2D9D4mc8exBSV1 X-Received: by 2002:a17:907:f84:b0:a37:478c:6021 with SMTP id kb4-20020a1709070f8400b00a37478c6021mr940127ejc.76.1707474956375; Fri, 09 Feb 2024 02:35:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707474956; cv=pass; d=google.com; s=arc-20160816; b=bafhHF8mNOH5cBGFV79rGWdDnGw7ELQvzX7SuzXE8DxUR6lyGV4nJNaZHLcfE/o7i1 TdRuvmJ9NXK0DKruvX5xqcuDo/OUQ0gbjRSwE3alWyiPTLPO1OtpOyB5jEeRmQxIh7CQ wA1+1fPESb+1isWk9XXYIXfEBegAqG0aU5u1lCoylMEID2nDbRCtRMvCPl2pj5irgwbi sLFj9thXinDA6e6ewUrT6kuWONhAPzDXm59QzM71NXR+/CB5bBISQSN8MgzoPKArNlNG AFnk2UYwuZZ/9GB5oJ4O/ZBoipy2O6FQD2h6gcx5CObVg9LAvnbIt8pgr3Xl4vrKSYIf iXaw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=C0AaPX0aZcuXGu3S0z1IdEkLhaMcgiZgBjdGD9S23tA=; fh=6EfpglhdlTeQDR/6LQCS76oxWgJP3TvoN8/VcyL8dL8=; b=rMRew058VIgC2z0KNwRcIyTOQXjvrbx+OoP9/QDxkjDmz92pIhM4iwqtdxKdMcgXsh NCMPr+O9mXsoDUsIywN8uPw+00gplyWhMLdyQdIiV4GOeKnijM9B6ctn4A/6Km3VG92W w1rBgm/kuFiM+hqgZProrgYqadOGESb/qov0v0tJgc+TtT8Pzsh30AcE1IjiwGyibmH/ A8Z/i4RM4HeQ1Pib5KYMzUtJ+qMDmowRWPetPgpO+x+Y1E7kkp/FqnA0gm6Oz36zpugS hnZDeCEk/d2/uj3oGKyylrd7n1CHFhx0Cx6YmGeA91K6YtKJkktWvtE1gC74Bq4wL7To wzeQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Yy4r/7GI"; 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-59231-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59231-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCV8WoSjURhYyfxNiBETVx9y4Z2S3/HDUOEgxp97AbIySKvrSXJK4SR3pJKw/6kajWOPPtJUXaNcvXJvGLrlOA/ZCg2ii/Y9rVKgMYHOdQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id hr33-20020a1709073fa100b00a3c0135829csi166755ejc.938.2024.02.09.02.35.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 02:35:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59231-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="Yy4r/7GI"; 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-59231-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59231-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 20D111F22B4B for ; Fri, 9 Feb 2024 10:35:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7A83914274; Fri, 9 Feb 2024 10:35:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Yy4r/7GI" Received: from mail-vs1-f53.google.com (mail-vs1-f53.google.com [209.85.217.53]) (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 C5BB01D697 for ; Fri, 9 Feb 2024 10:35:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.217.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707474949; cv=none; b=WnnrgEFQQSBCZab+23P9n2KBbc5LZkJdCLCmzVy6PB1POiiZC4AL/SkGH2u6iaYQeORegk0CcGbrKLCA6sr0mcM2b+B22GDqIu1FSJWTRuuOWGXoEbpDpH2J3zGpL9chl0M9srs+wQLX8yXdmWqDHwf27XILL1Hgrm3UhGt/gSY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707474949; c=relaxed/simple; bh=Mh1E9PeJjOSqtWbFh8Fz3144DuBxk5lGa2WIC0FhKC4=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=TZ3W0dOTzuhWjSGBwiGXFZJsjfbDhwbFR1tqZmwaG7PY3EEBM0vWziShmcEUWEryyu+5D1RiiQ4TaEyMlQtJjCVR73IFguS/fHTm49HTnZEY68klv3gLl0/21RNBr6bhynDTAX8QBbrG5Gexvrz89gf5D2RqncH5VdzNOKVdUFg= 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=Yy4r/7GI; arc=none smtp.client-ip=209.85.217.53 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-vs1-f53.google.com with SMTP id ada2fe7eead31-4676a37e2c4so262567137.1 for ; Fri, 09 Feb 2024 02:35:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707474946; x=1708079746; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=C0AaPX0aZcuXGu3S0z1IdEkLhaMcgiZgBjdGD9S23tA=; b=Yy4r/7GIDScXh0YKhQ+K+7/UDlksVqIZSC/3XkNdbh0jR2n0ivk7AHz/vCdahltYA4 nCl5kpQR628ANHMInbKrsuUNAJ0IeRJhHTWGJ5lRptaPLZBUY3CDpsUQ4IBW13yKlghC hNGOXAv11z/5BFoYVWKG3kVtOfzPudNQVxcZWOijsha4n7r8k1HkKZhoFeQvHZ98vKGA Ljoue7aHfqoGt+FUtm4ATV3Lwdhp0g6zRni9txWfXP6i/xF+PKdCA7wJthN4FGZmFy+0 Rap9p7qieMK1M2hts5nf8R2IDie/DRgbKdySYqJRcpLoBPd6RTwaZ4rgDLi45DeqACou ZW4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707474946; x=1708079746; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=C0AaPX0aZcuXGu3S0z1IdEkLhaMcgiZgBjdGD9S23tA=; b=RtyfT4raKYRaDnZzeeB/Qra6WwOVhZCHMQUL8mtYi2QsTKbkfYeq51VKrt4RwlbZNm 2HWfgrIqOiuPVuZGdWAzFMPyNTtAhqV734c3WvOaZhRHso4MOujCrboI922gRslh2nb+ c9FJ4LYdWlUPZKpriUEuDncElOj2dy1ifE1l2X09cfxY9tR3vHGv3uwmvDMqfBsPxeuJ V6aHIiUoYnnHNfcCRbZZML0G5PwIjGq30OeXfYvPx7qnL4KzYgfVEO0GexbrE98cbO7A K3GzY3AG+koC1a3jgHn82SQ0FaWbtbe2uSFi7Ym7OwKmOs28Ve2e9ibi4GeeSo75DfQ7 5WsA== X-Gm-Message-State: AOJu0YzMfIbkft8QNdkUzd+uGU1t5tDUpoAfcOcIaPOo6jaQPl4TI3Hi BHx1Ep17imGqju6H8bElNK12yEWwwruLOxDBI/Z1K5+6YwevHJxlKAtlWiPhZsLJwJbhVuv6J4f yPdGSJPYB1+N5Hm43/0Nq72SMlVP/ApI0Ymohwg== X-Received: by 2002:a05:6102:ccb:b0:46c:fb37:393b with SMTP id g11-20020a0561020ccb00b0046cfb37393bmr1104868vst.11.1707474946599; Fri, 09 Feb 2024 02:35:46 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240208161700.268570-1-peter.griffin@linaro.org> <20240208161700.268570-3-peter.griffin@linaro.org> In-Reply-To: <20240208161700.268570-3-peter.griffin@linaro.org> From: Alexey Klimov Date: Fri, 9 Feb 2024 10:35:35 +0000 Message-ID: Subject: Re: [PATCH v4 2/2] watchdog: s3c2410_wdt: use exynos_get_pmu_regmap_by_phandle() for PMU regs To: Peter Griffin Cc: arnd@arndb.de, krzysztof.kozlowski@linaro.org, linux@roeck-us.net, wim@linux-watchdog.org, alim.akhtar@samsung.com, jaewon02.kim@samsung.com, semen.protsenko@linaro.org, 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, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Thu, 8 Feb 2024 at 16:21, Peter Griffin wrote: > > Obtain the PMU regmap using the new API added to exynos-pmu driver rather > than syscon_regmap_lookup_by_phandle(). As this driver no longer depends > on mfd syscon remove that header and Kconfig dependency. > > Reviewed-by: Sam Protsenko > Signed-off-by: Peter Griffin Tested-by: Alexey Klimov Tested on odroid xu3 (exynos5422). Watchdog works as expected and can reset the system. > --- > drivers/watchdog/Kconfig | 1 - > drivers/watchdog/s3c2410_wdt.c | 8 ++++---- > 2 files changed, 4 insertions(+), 5 deletions(-) > > diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig > index 7d22051b15a2..d78fe7137799 100644 > --- a/drivers/watchdog/Kconfig > +++ b/drivers/watchdog/Kconfig > @@ -512,7 +512,6 @@ config S3C2410_WATCHDOG > tristate "S3C6410/S5Pv210/Exynos Watchdog" > depends on ARCH_S3C64XX || ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST > select WATCHDOG_CORE > - select MFD_SYSCON if ARCH_EXYNOS > 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..686cf544d0ae 100644 > --- a/drivers/watchdog/s3c2410_wdt.c > +++ b/drivers/watchdog/s3c2410_wdt.c > @@ -24,9 +24,9 @@ > #include > #include > #include > -#include > #include > #include > +#include > > #define S3C2410_WTCON 0x00 > #define S3C2410_WTDAT 0x04 > @@ -699,11 +699,11 @@ static int s3c2410wdt_probe(struct platform_device *pdev) > return ret; > > if (wdt->drv_data->quirks & QUIRKS_HAVE_PMUREG) { > - wdt->pmureg = syscon_regmap_lookup_by_phandle(dev->of_node, > - "samsung,syscon-phandle"); > + wdt->pmureg = exynos_get_pmu_regmap_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"); > + "PMU regmap lookup failed.\n"); > } > > wdt_irq = platform_get_irq(pdev, 0); > -- > 2.43.0.594.gd9cf4e227d-goog >