Message ID | 20240208105817.2619703-3-claudiu.beznea.uj@bp.renesas.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-57932-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp135671dyd; Thu, 8 Feb 2024 04:42:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IGT3yITy7HzhNVcl85G1dyrsonAcQs0YMpNJ7wImKvPDTdqN6QYuQJYjMMTx6U6Rg7a6BMj X-Received: by 2002:a17:90a:c683:b0:296:865d:e0c0 with SMTP id n3-20020a17090ac68300b00296865de0c0mr6184897pjt.45.1707396155037; Thu, 08 Feb 2024 04:42:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707396155; cv=pass; d=google.com; s=arc-20160816; b=Z9IHNZpz5S4xH5bqpPiEgS3D6Vy05ODolVCX1PaTGtUsMjujoxnmKABRdepDkV4gJR hMahqCcZ7+g647biaxjvLq6v1wtvLxITg/REX7upEfhnEMrGeNa65ThKsnTbiGdUFTIy HPHqvrBav5G8Fd829gdptg+d5+kboFKSJjbAe0HpXWI5327A9/4jMl40+Fzit8ZL+OgA YopjaRjdBTNaESqYhM+wBqRPasOK+mfitqb0se4KqRppGmsctKt0fhe9IoZZAE+wWhX1 iopyD9O76/r7oYjFOBEERkHyNalhQ4vV/IJd0pfACgs2/tURCWeIJgbrZex/KULZlKHi u4dg== 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=XZrX8iqhyNfDwckgzPgw0FurzK0Uc4mk39O6wr0LL+Y=; fh=n0PY3oKZX0VXwUdxNw+R3xWDZ9UdnRjWqWAg/jksMcQ=; b=gTIznUOM9vpxaVSsHLavoflzajhA+lG4uMZ9LjLeLVXc0KoIXWD5Txymyn9ObcGyyd WfbQ5BGYLiIiJjkpFU2NyeKZ/ccu/iG64CZKR/sd6kUxvSeH6PWOwP9c4SzH2mWoxCLa +OJHgLSK9a58f/02H/1Pi066yQlCakMljbPkLv99Q29iH99h1ePTvV2z5SSAZXaY+K2e 32SSdzsa8L2TuhDU0f+fsSyDCZ8lQVJ+I9CRKUXojsIl/0jkQoRlBXbh0RAn/VGem3ON mRre0Upl4/xBb7KBGVmYE0DpfzjyYtCM8Y7Gicsw2ijuj/IjJbVN3fdUbdgedeV5D1Nb 9tDw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=KgVSImEb; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-57932-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57932-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCVE0oy/SAM3fDdAWxKNLGMuKbe7pqhCG7BBA+jxy7JoLfTh+aeYp7/Uhv6lS8Qfkjed/aG33WdvAGJWf+kMQXvGYglBkg== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id e91-20020a17090a6fe400b00296a42c0f14si1298729pjk.73.2024.02.08.04.42.34 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 04:42:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57932-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=KgVSImEb; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-57932-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57932-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 51919B2AEF5 for <ouuuleilei@gmail.com>; Thu, 8 Feb 2024 11:05:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C4AF76C61; Thu, 8 Feb 2024 10:58:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="KgVSImEb" Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (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 17F236DCFA for <linux-kernel@vger.kernel.org>; Thu, 8 Feb 2024 10:58:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707389908; cv=none; b=m+HjZpBalXwpQokSEGLvtKwzKxlL2bieV/XVhRO7wHqJqBj9CdCzNoQJpGnRX8+SrIM4VprheVzSWZE0Kqgqn2JBGUHqpKuvONnG/kZCDv1s7HvMZBt6G/xot+9t67pYDI7aYycJV4rI1X+jCMrOC+DneWZuyv/K5hMMP3PHW8A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707389908; c=relaxed/simple; bh=S7S9sqQ3ggEg18SOFOed2Jym7q/ivWFzaRP6SFRCjV0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=pNQ+EHPjvZF0jfwWAm7sb0Gpqr9HOEYeuZQmCWdjj0gp6YNFv8/iHDqjSkfnBJXtELWf64HPzJolfvcb7KeaZubMrEQdblMp1tp3uJ9AC4vjmCwekmLOL9PkUCkdy3lRQRCvCqkwJ9VVTIpzU40nJB+Szbsy4FdwFotRm6RkO5E= 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=KgVSImEb; arc=none smtp.client-ip=209.85.221.41 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-wr1-f41.google.com with SMTP id ffacd0b85a97d-33b4b121e28so835950f8f.1 for <linux-kernel@vger.kernel.org>; Thu, 08 Feb 2024 02:58:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1707389905; x=1707994705; 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=XZrX8iqhyNfDwckgzPgw0FurzK0Uc4mk39O6wr0LL+Y=; b=KgVSImEbOiSfwJ5aT4udSK1ICrUMSk3aalVCnbs9vNJXsQF4xri8YgoRL32C45KSnX djijS4Dl34W2s9KvDK4gW8BWN+yXl7aEI4PGAnsEGCJhgJ/kCaO4qNg8b+k7RfTnkAWH 1vs/ArUIIUqshrJx7M0RBRx6jcg0FnLbfb3LDiavdS5uk18/b/JOkQKS4owm+KL8UsBw ZhmHGt1feqL2NQgpwW185YYrwitvE1dFiKJugb3IUNVd2rad+WGaEkZYcwXw7zvuV/yU RbnQFpi4VRn5WC/zBIw8ag0iyg05eX2jbSN1SDaKgWWvzNs+A7v80UGLOwqLNvD3afTj KPYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707389905; x=1707994705; 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=XZrX8iqhyNfDwckgzPgw0FurzK0Uc4mk39O6wr0LL+Y=; b=e4vDe1l5ZwdpMtTOpgieNycsLo+gb9ZGgqC3BgRv3fV/IHxQMvSid0wlD3nol19q0x 5/9oZnJrCexki2j/xi0BF+G4r7/lqm2PqRrcQQc5Zodn0drkI2Ad/fUleXeWXfhJp1Dz 6hnd2S1o740vXShKOP6nzJFeQb4nWDTtsWpmYuD68KEgGlLUxlZhUA0CCu72uZHFjAHk NrZoVQaoetJU167Vh+8D02LYUOlzAdCbJUd0HUmmKZbBfSzJfkn/Oh4njkT1WsJMuPtK qouOH3I3arOboqtmavsNMOuMaq8jTQp1sq6dqrGF/71B8zaRNXsv00Ya5TiBF2I8L1Et nAug== X-Gm-Message-State: AOJu0Yy0ZfSt20c75xDj00EuWMJHP9douEK21OlD61FFDoGfF7TjhF4O 2ffv+IB98IkyJeWb+mVmiQgngXXzoXp2dZw9KL9w7HLGtHppeauaKTLjMdiRMUg= X-Received: by 2002:a5d:4a85:0:b0:337:67e:a1ef with SMTP id o5-20020a5d4a85000000b00337067ea1efmr4985765wrq.7.1707389905201; Thu, 08 Feb 2024 02:58:25 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCU20IlnCTOKR9u10hKgbo977Fd4kc/KrktWXzWiEVdvqwJos7ihokRR4V25Yjwwzj3pEkR+XiHqdj15tWkUkMWpBbYelizf0i+jTbETSNcSLQ9qGo/4NafuqgpzCK2g9x8AZrdg0Byt5/rT8xS7NlNfSrG44jwnG+CodWrootFCZfBQSe+dXrtD44kyrafmAw2sRxLa/ZrmYoXF7jSkvdE6Clf0V2HzggIX38HwWffmYH4dQnbdea2FfM2pgW8qHzCTORMrYVESe9NpAOFcmYEN+b0rw9c7ZGEaE6KlxQLR8KJe+/ce7e+uaICTwdJjSikQoeRKVrCSS/z4fiLGsw8hLkvq0Wwzi3A12u/J+xmg3gXAwps2xHHzfcdh2juaykhW50cze6F3214BOzBa7KlUXpwWU4QzgQ+Xhu8ek8EM3hqQFcpCHt2HzNnm0QRR7eUg5ROdfgqIAKvFngluv3vCeN5x9nneL2kkv6ryhhvxdaTB2aMz+PqslZOnA5j00tuMEXorAcEugQ== Received: from claudiu-X670E-Pro-RS.. ([82.78.167.45]) by smtp.gmail.com with ESMTPSA id a6-20020adffac6000000b0033b4a52bfbfsm3344153wrs.57.2024.02.08.02.58.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 02:58:24 -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 v6 2/9] watchdog: rzg2l_wdt: Make the driver depend on PM Date: Thu, 8 Feb 2024 12:58:10 +0200 Message-Id: <20240208105817.2619703-3-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240208105817.2619703-1-claudiu.beznea.uj@bp.renesas.com> References: <20240208105817.2619703-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: 1790334630998050827 X-GMAIL-MSGID: 1790334630998050827 |
Series |
watchdog: rzg2l_wdt: Add support for RZ/G3S
|
|
Commit Message
claudiu beznea
Feb. 8, 2024, 10:58 a.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. Suggested-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> --- Changes in v6: - update patch description - fixed the dependency on COMPILE_TEST previously introduced 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 | 1 + 1 file changed, 1 insertion(+)
Comments
Hi Claudiu, On Thu, Feb 8, 2024 at 1:26 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. > > Suggested-by: Guenter Roeck <linux@roeck-us.net> > Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> > --- > > Changes in v6: > - update patch description > - fixed the dependency on COMPILE_TEST previously introduced Thanks for the update! > --- a/drivers/watchdog/Kconfig > +++ b/drivers/watchdog/Kconfig > @@ -911,6 +911,7 @@ config RENESAS_RZN1WDT > config RENESAS_RZG2LWDT > tristate "Renesas RZ/G2L WDT Watchdog" > depends on ARCH_RZG2L || ARCH_R9A09G011 || COMPILE_TEST > + depends on PM 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
Hi, Geert, On 08.02.2024 14:53, Geert Uytterhoeven wrote: > Hi Claudiu, > > On Thu, Feb 8, 2024 at 1:26 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. >> >> Suggested-by: Guenter Roeck <linux@roeck-us.net> >> Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> >> --- >> >> Changes in v6: >> - update patch description >> - fixed the dependency on COMPILE_TEST previously introduced > > Thanks for the update! > >> --- a/drivers/watchdog/Kconfig >> +++ b/drivers/watchdog/Kconfig >> @@ -911,6 +911,7 @@ config RENESAS_RZN1WDT >> config RENESAS_RZG2LWDT >> tristate "Renesas RZ/G2L WDT Watchdog" >> depends on ARCH_RZG2L || ARCH_R9A09G011 || COMPILE_TEST >> + depends on PM > > depends on PM || COMPILE_TEST Isn't "depends on PM" enough? As of [1] ("If multiple dependencies are defined, they are connected with '&&'") the above: depends on ARCH_RZG2L || ARCH_R9A09G011 || COMPILE_TEST depends on PM are translated into: depends on (ARCH_RZG2L || ARCH_R9A09G011 || COMPILE_TEST) && PM Please let me know if I'm wrong. Thank you, Claudiu Beznea [1] https://www.kernel.org/doc/html/next/kbuild/kconfig-language.html > >> select WATCHDOG_CORE >> help >> This driver adds watchdog support for the integrated watchdogs in the > > Gr{oetje,eeting}s, > > Geert >
Hi Claudiu, On Fri, Feb 9, 2024 at 1:25 PM claudiu beznea <claudiu.beznea@tuxondev> wrote: > On 08.02.2024 14:53, Geert Uytterhoeven wrote: > > On Thu, Feb 8, 2024 at 1:26 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. > >> > >> Suggested-by: Guenter Roeck <linux@roeck-us.net> > >> Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> > >> --- > >> > >> Changes in v6: > >> - update patch description > >> - fixed the dependency on COMPILE_TEST previously introduced > > > > Thanks for the update! > > > >> --- a/drivers/watchdog/Kconfig > >> +++ b/drivers/watchdog/Kconfig > >> @@ -911,6 +911,7 @@ config RENESAS_RZN1WDT > >> config RENESAS_RZG2LWDT > >> tristate "Renesas RZ/G2L WDT Watchdog" > >> depends on ARCH_RZG2L || ARCH_R9A09G011 || COMPILE_TEST > >> + depends on PM > > > > depends on PM || COMPILE_TEST > > Isn't "depends on PM" enough? As of [1] ("If multiple dependencies are > defined, they are connected with '&&'") the above: > > depends on ARCH_RZG2L || ARCH_R9A09G011 || COMPILE_TEST > depends on PM > > are translated into: > depends on (ARCH_RZG2L || ARCH_R9A09G011 || COMPILE_TEST) && PM > > Please let me know if I'm wrong. That is correct. But you still can compile-test this driver when compiling for a different platform, and CONFIG_PM is disabled. Gr{oetje,eeting}s, Geert
Hi, Geert, On 14.02.2024 17:26, Geert Uytterhoeven wrote: > Hi Claudiu, > > On Fri, Feb 9, 2024 at 1:25 PM claudiu beznea <claudiu.beznea@tuxon.dev> wrote: >> On 08.02.2024 14:53, Geert Uytterhoeven wrote: >>> On Thu, Feb 8, 2024 at 1:26 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. >>>> >>>> Suggested-by: Guenter Roeck <linux@roeck-us.net> >>>> Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> >>>> --- >>>> >>>> Changes in v6: >>>> - update patch description >>>> - fixed the dependency on COMPILE_TEST previously introduced >>> >>> Thanks for the update! >>> >>>> --- a/drivers/watchdog/Kconfig >>>> +++ b/drivers/watchdog/Kconfig >>>> @@ -911,6 +911,7 @@ config RENESAS_RZN1WDT >>>> config RENESAS_RZG2LWDT >>>> tristate "Renesas RZ/G2L WDT Watchdog" >>>> depends on ARCH_RZG2L || ARCH_R9A09G011 || COMPILE_TEST >>>> + depends on PM >>> >>> depends on PM || COMPILE_TEST >> >> Isn't "depends on PM" enough? As of [1] ("If multiple dependencies are >> defined, they are connected with '&&'") the above: >> >> depends on ARCH_RZG2L || ARCH_R9A09G011 || COMPILE_TEST >> depends on PM >> >> are translated into: >> depends on (ARCH_RZG2L || ARCH_R9A09G011 || COMPILE_TEST) && PM >> >> Please let me know if I'm wrong. > > That is correct. But you still can compile-test this driver when > compiling for a different platform, and CONFIG_PM is disabled. Ok, I see, thank you! > > Gr{oetje,eeting}s, > > Geert >
diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index f6cb63a0d889..8bd87880ca3b 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig @@ -911,6 +911,7 @@ config RENESAS_RZN1WDT config RENESAS_RZG2LWDT tristate "Renesas RZ/G2L WDT Watchdog" depends on ARCH_RZG2L || ARCH_R9A09G011 || COMPILE_TEST + depends on PM select WATCHDOG_CORE help This driver adds watchdog support for the integrated watchdogs in the