Message ID | 20240207130745.1783198-3-claudiu.beznea.uj@bp.renesas.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-56511-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp2214156dyb; Wed, 7 Feb 2024 05:09:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV8giGhxb9+Lz8B6Cgh7R4oWB8UwLIy1FFmonR0MOnhob0AwSNRCIWQhtvJQ7281X4z1lqU+1Ug+m21zcPI8P2v8vRubA== X-Google-Smtp-Source: AGHT+IFM+4puwiXpDL9HyCr2GEn04P1x82CzO8mpb+/+wBO58chBm2ifQq7FK36CxU4Hr/8SsoU2 X-Received: by 2002:a17:903:28f:b0:1d8:b51c:6b79 with SMTP id j15-20020a170903028f00b001d8b51c6b79mr6707927plr.7.1707311352006; Wed, 07 Feb 2024 05:09:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707311351; cv=pass; d=google.com; s=arc-20160816; b=aG6xjpp6coK5sjmyUchjl/4tRr8EboqGvTTGglOQWsg1Lc3R30JVJUX85IkZhn937q ZuvZkJ6Q+kvku7n7/jCTQ+bVlT5ZU3lxt2SWY3fxY6+LN/7OryBgNUFTeSHLGC2XHPrh vuOG4zFmiA8X0I/h0crDYfVITh9jwO8uf8+YDvooL2ICk+7u7fNpWKo1pqa9BdHVTRwJ R7gsh/zeYUCUezcF3GDzUkU879XtGwBqMhEJdUMVegXE6uthtC/8+e0uwnqFwgn7Kmmc pcVJfX9HmZysZ+QS1JPu5qKMUnOGkzQLk+dS79lHLDDfQ+Q2c8V5HHpBTB+nHkbZ/83p IEjg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ob7yffFeJDPnH/PhT3IJv3UmWDx8a+BmeFJCAJI0aa0=; fh=JYLxJg48AxUVBJa1xicw9NHAROvdXIysCXdufosogfU=; b=uZDmCXk21GXd6B/4apcOa7gLqg2ZRpJMCAMxyx3YHwJl9uLwfWzAW+FodMJkVoZcT2 uqg5DDBvYr/0iGWAHhg4kQw9BAb6brBzrsEgDGY0r40qsttHXkvcRkRYzEel8VGwNopM NVkxlbI1LKuOTTz7t8AQexA7/fs5EDSKAbkva9P1gTdTPXsQKYWi2KMrfIEfp56Oiy/W 8hjJwEC+NvOqx564M718b4Y7Hh8JNIvHH/YUft22c6Y0/vRjZd9O+jf1mTtYM38inOii CsAA5L0rQICbM5AsX9ob6IkUTGYI+cUlxecXovR2uGzl22aFP3gJiSmB0aNoEzT4D600 buWA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=lLIikA5M; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-56511-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56511-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCXYYfRmiMFwq4GA1fDshpeeDRnLu16UMwoaALfXn2PBCnxRHwdSWECHiC2goqbjreUC37iSyTTVGyJb2PoJ9sHDZtczgg== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id f18-20020a170902ce9200b001d981d6e0f7si1660745plg.572.2024.02.07.05.09.11 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 05:09:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-56511-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=lLIikA5M; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-56511-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56511-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 92B64B2404B for <ouuuleilei@gmail.com>; Wed, 7 Feb 2024 13:08:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1D70F7A71A; Wed, 7 Feb 2024 13:08:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="lLIikA5M" Received: from mail-qv1-f44.google.com (mail-qv1-f44.google.com [209.85.219.44]) (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 573E377644 for <linux-kernel@vger.kernel.org>; Wed, 7 Feb 2024 13:08:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707311286; cv=none; b=jezyd5JeX2YzECd/yHXVWczNhzlhMKafMuhuMnPJXvBn0+fSOGXXhyXXrcQNLmpLKG+p5KnHJSzXQVlujR/0M6gIj/21btjrXhjD/C6731p5Uz+BBhivpn5FXC97MmbiP1ebETdRJ9qA65zqfBGUmtcNlf2WZiAHdoThfeJpl6o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707311286; c=relaxed/simple; bh=lCkPIhg4eqOebZq2DSdEYJNxd7Hk5Ji+XPkonxMZ21o=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ONIVAeeKPGHtMgAJVkiXEd1VZdCZENI0fp8O5vgfC5Er/QU/+5Ovrw9ImNI23zj3itOnlqIkig6nhDzXeq3OUbXsf5E60kSJgrj4AUIEiChUbhzeGYSg3I6PHND/tJemR0C8bANtqy2V658vIOjqJXTy8ZaeuzmTVar2RAeOhIs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev; spf=pass smtp.mailfrom=tuxon.dev; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b=lLIikA5M; arc=none smtp.client-ip=209.85.219.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tuxon.dev Received: by mail-qv1-f44.google.com with SMTP id 6a1803df08f44-68c4673eff5so3295216d6.1 for <linux-kernel@vger.kernel.org>; Wed, 07 Feb 2024 05:08:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1707311283; x=1707916083; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ob7yffFeJDPnH/PhT3IJv3UmWDx8a+BmeFJCAJI0aa0=; b=lLIikA5MRP2evwQoJ3ZFQQ6OkK8AbZfVxIj8E+cRkyIKjXO3QQZ/JOpWUrWcquXiRZ U5nfJcQdSiOjpjzHizMh64y6vAG1H1q3kcaWf0O5Rrs/IHfgjr/ksB/qB50Ws8PXJWT2 jDF9rMpQvM5DBWkP7svIw/N6LuEdwKrC6OEkCRf0He1etmVM2c8PF1NitlN/PrsZIwiF Jsbdr5yJjrf82vzg49Y7ap4m4OUfq6i551Ev2zErlHXokbaxRNcF64R9CGYsGh5b7HZ5 x4eA7/yiKsf486syDORLMevPwEGD1FFyoGGdT7/RMDH+S4o08m52o2j13kWaDF7YpBrb +q1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707311283; x=1707916083; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ob7yffFeJDPnH/PhT3IJv3UmWDx8a+BmeFJCAJI0aa0=; b=IqpdFrtrH0EZutWLSTfbZSwtzwTeF7qxY/PUay2J9SL6asleRLMe0A2EBnR83dVNoa zPHSOiAW5wAMXzRBBdCfDieuas1lkXCeCJtdaOZlzQZDlZvT6qbWVdESsZWoWkr19BvJ ObxwBQ+/cY/+hUE7dPCajZpzsBqDgRybzi941bhfLP7aUipH8GG06wOIRNRzgvdgR/01 ZRzsXeqxoODwlbC63utcK2TVYpR0LgkHudgcaHjuaKpu3mnbbsBdFYKH+swrISrEDGqo +9F9XMnHf//oTCu0tMvVRPACRNVg/rNB4ylGiAn7AwzGSmUzZ1fqpFxiSQUD7K4s7Sne C8kA== X-Forwarded-Encrypted: i=1; AJvYcCUGGYw0qTjLzFoECVBpJm8kpc1o+etv5VDUFDJ4yCQkqwOsJZw9/DcrV4sDy+WKShk4zJjnzhPj6MnrkeLHbZOgfj3cpUJ4vWYnK0zx X-Gm-Message-State: AOJu0YwToytDXkSZ01um4xXS8SriDKHBlb1wyFQKORCmZiF2lcDy51Q4 6Lj46uiaYozjY8MKgMr2H5FsqbOVgDeRIp3+qGSBsxnDHn8EEsouvPheY4kRSG4= X-Received: by 2002:a05:6214:b61:b0:68c:8193:61d0 with SMTP id ey1-20020a0562140b6100b0068c819361d0mr6939090qvb.64.1707311283227; Wed, 07 Feb 2024 05:08:03 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWqdtEAhXFAGWbz8AYWQn8DAL3dyGGxVaveN45RfKe62dJzuG7lJ1xInYHLamsMR+tviWJFzWlXozBjJmVEtWntPM9BbNZwU2XxNKaXCLBJU6qoM5NGTHK1wCYXZbY2CLdlVEmhdq4eZu56mAOGqhJBU/SbiFOscJYbR5pVTJAH3plExMJ0vr7WXYfJ57ZVWZVQys+Q5UKVZkFPvg5AQkKjP/MPGC29tDieSh4VTXhHfHc2f07PPFX7pAfspn5Lt4XBi4KhhlUYowoBXMveSckEd4pgWVwZL+m5csMegRUH98K/4DcIJnM+Pu16xhmX7JbovHRPxGq2SB+XpEtQh/nZWoQiJ4g2/hVPkKZdEShtDW5DLSGKIE1boG76wWPaVbxi7PTRNyqgmkPRdxx+rTGQv7pMN1dVKTQDG3tmzC3phT+yTUuAo209GxYMohWcPgU+qFGD9dqRah44ljkdCEZKfeZBW1CCNi5vx8s9oVM0Syy+Js2FvBy5L//1qH48KssvbN3y+SM5UA== Received: from claudiu-X670E-Pro-RS.. ([82.78.167.114]) by smtp.gmail.com with ESMTPSA id a17-20020a0ca991000000b0068c9cd2cf88sm565455qvb.60.2024.02.07.05.07.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 05:08:03 -0800 (PST) From: Claudiu <claudiu.beznea@tuxon.dev> X-Google-Original-From: Claudiu <claudiu.beznea.uj@bp.renesas.com> To: wim@linux-watchdog.org, linux@roeck-us.net, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, p.zabel@pengutronix.de, geert+renesas@glider.be, magnus.damm@gmail.com, biju.das.jz@bp.renesas.com Cc: linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, claudiu.beznea@tuxon.dev, Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Subject: [PATCH v5 2/9] watchdog: rzg2l_wdt: Make the driver depend on PM Date: Wed, 7 Feb 2024 15:07:38 +0200 Message-Id: <20240207130745.1783198-3-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240207130745.1783198-1-claudiu.beznea.uj@bp.renesas.com> References: <20240207130745.1783198-1-claudiu.beznea.uj@bp.renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790245708378679614 X-GMAIL-MSGID: 1790245708378679614 |
Series |
watchdog: rzg2l_wdt: Add support for RZ/G3S
|
|
Commit Message
claudiu beznea
Feb. 7, 2024, 1:07 p.m. UTC
From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> The rzg2l_wdt watchdog driver cannot work w/o CONFIG_PM=y (e.g. the clocks are enabled though pm_runtime_* specific APIs). To avoid building a driver that doesn't work make explicit the dependency on CONFIG_PM. Along with it the dependency on CONFIG_PM and CONFIG_COMPILE_TEST was moved to a new line to have the code simpler. Suggested-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> --- Changes in v5: - updated patch description - added on a new line the dependency on PM and COMPILE_TEST Changes in v4: - s/ARCH_RENESAS/ARCH_RZG2L || ARCH_R9A09G011 due to patch 1/9 Changes in v3: - make driver depend on PM; with that the "unmet direct dependency" Reported-by: kernel test robot <lkp@intel.com> was also fixed - adapt commit message Changes in v2: - this patch is new drivers/watchdog/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Comments
Hi Claudiu, On Wed, Feb 7, 2024 at 2:08 PM Claudiu <claudiu.beznea@tuxon.dev> wrote: > From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> > > The rzg2l_wdt watchdog driver cannot work w/o CONFIG_PM=y (e.g. the > clocks are enabled though pm_runtime_* specific APIs). To avoid building > a driver that doesn't work make explicit the dependency on CONFIG_PM. Along > with it the dependency on CONFIG_PM and CONFIG_COMPILE_TEST was moved to a > new line to have the code simpler. > > Suggested-by: Guenter Roeck <linux@roeck-us.net> > Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> > --- > > Changes in v5: > - updated patch description > - added on a new line the dependency on PM and COMPILE_TEST Thanks for the update! > --- a/drivers/watchdog/Kconfig > +++ b/drivers/watchdog/Kconfig > @@ -910,7 +910,8 @@ config RENESAS_RZN1WDT > > config RENESAS_RZG2LWDT > tristate "Renesas RZ/G2L WDT Watchdog" > - depends on ARCH_RZG2L || ARCH_R9A09G011 || COMPILE_TEST > + depends on ARCH_RZG2L || ARCH_R9A09G011 Please drop this change (i.e. retain the "|| COMPILE_TEST"), as it prevents compile-testing on any platforms but RZ/G2L(alike) and RZ/V2M. > + depends on PM || COMPILE_TEST > select WATCHDOG_CORE > help > This driver adds watchdog support for the integrated watchdogs in the Gr{oetje,eeting}s, Geert
diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index f6cb63a0d889..dd0fc44b1ab3 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig @@ -910,7 +910,8 @@ config RENESAS_RZN1WDT config RENESAS_RZG2LWDT tristate "Renesas RZ/G2L WDT Watchdog" - depends on ARCH_RZG2L || ARCH_R9A09G011 || COMPILE_TEST + depends on ARCH_RZG2L || ARCH_R9A09G011 + depends on PM || COMPILE_TEST select WATCHDOG_CORE help This driver adds watchdog support for the integrated watchdogs in the