Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1490754rdb; Sat, 10 Feb 2024 04:34:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IHbfy7nR1BJQQAuq0mWJTM34F9qL3cx7NELDAQyNv5a3FPR66tXsIaCX1i0goBl03izBwCv X-Received: by 2002:a05:6a20:c707:b0:19c:a4d3:2041 with SMTP id hi7-20020a056a20c70700b0019ca4d32041mr2922678pzb.42.1707568461772; Sat, 10 Feb 2024 04:34:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707568461; cv=pass; d=google.com; s=arc-20160816; b=UyO/XwkKqGPtjmKbTzjY0m8phxdvaQlE4As0bCqw17ik57yzmnc4LYfAd1gJMww+Xv cxZMR3cCGfL0PY5wvDjUwLo+HUDUrMTVTURiz0faicsHTqM0tGaJkvJ1SbZjr0+/anlt WcKSQJR1B87hARuxqFgm5EmHGbcgAe1PkvYdoy0DqmG59pV6qUxrxI5H0Wn7KnOmT0fC NPBrKki17nWujPNK1tEVdr45Q4NB5OiJs2CYQM3AAKHm092E6G0I+2UzViWYAgBDMwQs JYwjuWu7Nd1MxKXB/7vNmeCHqF5pKoDnN9Am9kQw1XF4pTbLTS/iQmi1o8+3f3hYPX/W R/2g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=KslkqBZgMhr9Pa5UzxbX4ZtZqy31jeJRHoyaCwGBOVE=; fh=1DrlmGDKSSchjXWI1G+jr9bmMEPS27fJCTprAVjBt64=; b=ufI+NnwbIuv/wBQpnSaa+L3H+G4Ud2O8kw9qo7F9IodnV13nZbcq1bbQf8nF+7QKkZ uqiO6q2EB9KOn1++OowW5JUrwGlwhp03e5eWcQXN9UcsLM1p+Ixd97tWyNTm41tABscH 1jWsYOqlPdCTyG0Nquhqcodj1apCTMVPh0Obw2M/dgywsS0rQeqKUysaKaxEcX6aWhdj WvQvO8sshOATPfplOfLmpLsrmQ0RNvh7aGtjqo6NsxS7UQ/xTdhB9KCqh0KscyGDBbGP pe9kSxZqJsrCu/WzA5N/XpzqzXly3ix7d68uXc2wuxeV1iEVqCv+eMOKFUtuOjVlz3PL 5Agg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=IwgxIbHM; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58101-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58101-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCUCo4h4UW4/Ii0uohHRVpw4C1SIYOc05vxU1Cb/v8fFWS+AgaA2N1mGvsunxIzr9K5g8NHqIZLZtICYOch/Y/4Wx/mFEbdX9RA/w2Nr6A== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z6-20020a056a001d8600b006e0385d7185si2036176pfw.229.2024.02.10.04.34.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 04:34:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58101-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=IwgxIbHM; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58101-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58101-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E7A5D286A71 for ; Thu, 8 Feb 2024 13:02:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B6C29763F5; Thu, 8 Feb 2024 13:02:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="IwgxIbHM" Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 0EC0C763E9 for ; Thu, 8 Feb 2024 13:02:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707397351; cv=none; b=Ea4zxhI9dEOa5WLW2VB+w4o8OEDTLp1482wNEhrDh89QPZLXma/RWjt9f8UYNK2KqQWox7/y6gxC7dVBgsuodtrKWCnFHf9h94T0q7g+OLEkIVkNCR4VDu1Z284O2AZpihzrDikKTz3U1TMQ1P4B6XVx9fP8tFyYKSyqslkEkvg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707397351; c=relaxed/simple; bh=PlpJiPv+jw1aT2k6PyxJHhvGRzCrE9cSPhqoqNUxN1c=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=QyG3iMS3fYzOKah4JfYTZwIQ9Jh+ez07Z1gsYCL44VOREHDTDDbR0o0BcpP3xfWXUNrMEpHnDy+fh12XUk9rNox4osg8r1J1wj5tpVNPs53drmnTBL5T68vwZabhJHsK5IbQ+WmVneIUnd7+gigIIDYnnClmHLE6fqUIzxzoCF0= 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=IwgxIbHM; arc=none smtp.client-ip=209.85.128.49 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-wm1-f49.google.com with SMTP id 5b1f17b1804b1-41001c6e19aso5198825e9.1 for ; Thu, 08 Feb 2024 05:02:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1707397347; x=1708002147; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=KslkqBZgMhr9Pa5UzxbX4ZtZqy31jeJRHoyaCwGBOVE=; b=IwgxIbHM8Q8+zHbtYvbOK/wFO/pqQn2WwW3f6zaGaAT3AfeUiRDNY6aAwRjiNNKGGW OYTGslRjOZNhOtLIjUaLFcuZaGk1utGFlKnFAaBGodkACCn/NLo/jrOPCDrj2veQJi4i BXuICyb30vCMjeqvMfEyxIJ0zLGNLOV+bOpBpWlq9BsW5Ty+QPdor64DszzvTeyVH/gT QT7uFNp96mYeMHvB23fgmM1baZzXi3FVXd02D9HMu0m+wij55wxRgWUihMOoWfimpDSq tfPPtJ7sOK0Z9DEvBoEbyY53rKg/Rykm/I01QQqmd/ELW++h7NYo8WokQ7piQQO9fcXA 4yaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707397347; x=1708002147; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KslkqBZgMhr9Pa5UzxbX4ZtZqy31jeJRHoyaCwGBOVE=; b=n3Qv4h3yIZG4J8fn5gtxRHwN63Tyt5wG1PID+j9D0F1ouR3Cq/oEPNY/rQAmlg8OuO +I5KWHEw3BWhgbo+4Lh9ifSnIpTIUQ1558RFprPQXKkR59Q+ZjCUkxoWfkSrEurNCbaI gOV1av82NT6HJ8DZR6lUSCi7vMaqlOO0EULEYudh7EukuFuXSYWIRzp6GI9ndjSZAVwL xJ3UzaYKRV3UZC5qT2vhaHzPU8y8J3p61MTc3fZ37aVAMW1QebPfVPsKm8Uy88eH9eUs HfJD7PDQlUnTPOddX5ifkziUWUwC3k+5OyaSNw50qv73ePDBWjIJBZHfJeqecX1Jhy7u UAOQ== X-Gm-Message-State: AOJu0YxjocHLCJ7rHYcvmcfCfHumRpfvZ9XhUfehJV4dvXrIsp0Jbb+A /Ir2LDA7CkvsUW0JjLpGmE5YYgB1dQ/DQ5nUdMwdruQTonM1rWR/fIj609HtGo4= X-Received: by 2002:a05:600c:45c7:b0:40f:c2f0:7ed3 with SMTP id s7-20020a05600c45c700b0040fc2f07ed3mr1921728wmo.18.1707397347317; Thu, 08 Feb 2024 05:02:27 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVdwXHNypH1uvDaGJJlWre62DtyvZEl42XjlTMZdtLVCOB7a5lRly6Ui04anloUq5UGoH3oN45LYduaVoORMjwuvVKwuJdaStp9eTVQLMjlq+us1d7DCpKaA1oFXRWXccxU6JOZ2m1KLmZFX/vA+TmnJALVRqZ6gYDwWy2Rr7uci9ewkDkG8dMnsQRngpPkv+4U2WkMwKe90KBTHmWWZ8bbPA9vimCljh96XR4y9YF2DwSTkGETeT3imwNBqOWxRQ1o9N8vcJZip5e3AgTvOaYXcBUmDyFFwidgk3+Q/L/B92HtNqsWN2VijoR30CmON01WnBOTtBRJg0C8emxjsCJYgDfwGvM74/9TAyS2ZrAm8dj9PXMUrTvVqQ4YUZ5ro7OIIRKEyHndG1Pf1NblKk9J1x+XHevdWol4+rHV+ChR0cxsjtYTKNxDygUsBdtk6e+6d9k69MzF0vEbdRTBrc2o2HFhL2tLE/QmdUFC6u4kZcc+bHFCh6l5PZ5g9BB+jgKunidcbpVpWRBdco/dkur2+rd24X20Z4+4sj8BXx/m1qo05KLZNvbr Received: from [192.168.50.4] ([82.78.167.45]) by smtp.gmail.com with ESMTPSA id f17-20020a05600c4e9100b0040fd24653d4sm1565037wmq.36.2024.02.08.05.02.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Feb 2024 05:02:26 -0800 (PST) Message-ID: Date: Thu, 8 Feb 2024 15:02:24 +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 v6 2/9] watchdog: rzg2l_wdt: Make the driver depend on PM Content-Language: en-US To: Geert Uytterhoeven Cc: 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, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Claudiu Beznea References: <20240208105817.2619703-1-claudiu.beznea.uj@bp.renesas.com> <20240208105817.2619703-3-claudiu.beznea.uj@bp.renesas.com> From: claudiu beznea In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi, Geert, On 08.02.2024 14:53, Geert Uytterhoeven wrote: > Hi Claudiu, > > On Thu, Feb 8, 2024 at 1:26 PM Claudiu wrote: >> From: Claudiu Beznea >> >> 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 >> Signed-off-by: Claudiu Beznea >> --- >> >> 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 >