Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp678665rdh; Wed, 14 Feb 2024 08:16:37 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXEQ7jQMl7yuYfXxq2sf6vcNzq1+b9fzCA5BLFxHtBJSVoVmnKjoaKrABAAPLDkNQWxUwECKrQuarWEP8cI8zzW6D5DESh60EiB7CbfYA== X-Google-Smtp-Source: AGHT+IEyakpzPb1LfdtjBnWME0rorAr7LRrwDvTlj8kxdTEHWmdo1IBCpZ/rQEMgtkHJbtMaDTKN X-Received: by 2002:a92:c8d1:0:b0:363:b9f4:f14b with SMTP id c17-20020a92c8d1000000b00363b9f4f14bmr3346903ilq.22.1707927396815; Wed, 14 Feb 2024 08:16:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707927396; cv=pass; d=google.com; s=arc-20160816; b=k9vozORqtx/uXhZlaE2snFjOQmkIK16MfEeTN4q8dFiEXnB/k3EGQBqru+l07U+J9R cX2Zv4w8PhSATB1LaD3HEOrPIKoDgltkX5oD0zomlhm0Oai3/17U8I28TGKp4Q/RDvmN qnzqkFTmrybLaL8o7FFkAHtA6TcTqiLWPM/gXC36drCVPp+mWzHRtvNCFQvLWbi10F3R uIbrYR+Dyc2x0ls8wMRPuBWenfXwAq8pHLqTSrBuvRkN43AbCrRzA4uyn+zDZhzRbk2H QWkHtaCmwZu6fUhmv8s8Q+NAO6BkqE1n/KQM3inWJi6ABtkEXV0K1Bny7nlsA9/Utfzy RSyw== 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=ckkUsVwgCVmMoCiQoUiMKNTCmR3exiIWp1NLASK9lUQ=; fh=upPbozsNIbXcmEgY7lVluA3qHBtIPxYFY6yGz4WK9Xs=; b=U4tqQ6FvgyhDVmUz1xQ8GCI7fwc0MZypjaJIWH8uui2qvReDC+OxltUvy2s75eFzQJ N98jB1VlrhNN4D8I3eXU7zz1Aj9aLQ5V3MmQ8YVAZk4El8n67OKBdwiTOmuU0jFyyESa aagsKcHGM2Ab5x1+CpbXoi2/r+b3nOzUfBfucU/tBV+KAUxktgN3Cc7EUreBH8Ho+G2g j6zJPAI4VkLuwlgZ1UYSXjcT5qQO2yz7CHRvk0DGLwzTrouzquHL2JAHiYTIH8Wu+91n Yd9xRaOH/M+22vsINJr4J4qAhyK/hoPTk2mgEvKKW7WJUnZjzVA7cWIzTdi0vObsoSBo CTvQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=egfMvVmC; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-65460-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65460-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCXiTIs4P0lnxgLM0wxCDq0uEP+tFYNFGBeuqCe3NhiSb3P40Yd8hpvWbdbp8b3ST3+vCaBCtrrQYLTDwQq+ljPcaUtj17gvdKv1OSqsMg== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id e36-20020a631e24000000b005dc957fe132si1048971pge.0.2024.02.14.08.16.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 08:16:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65460-linux.lists.archive=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=egfMvVmC; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-65460-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65460-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 8B3CDB215B2 for ; Wed, 14 Feb 2024 15:51:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 30AE95FBBB; Wed, 14 Feb 2024 15:51:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="egfMvVmC" Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (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 9A9965D90F for ; Wed, 14 Feb 2024 15:51:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707925894; cv=none; b=STJiJvmPoavCQykC/VqA8HtoOY5nGWwMtldDIFVJPGD2UuBdKS3ks26BONAYKNHWMybBYy1kVN3786767SIfUao6vs6ZJIVCei0e31+UUC16d28m5BxlLNXENpBs5keOV23PRZSw/k5gPXzOp1Lm8rIbxUHRBRntduV2bdlT/No= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707925894; c=relaxed/simple; bh=hqo2GevEBm5pyLsgR6cwWD6Si222BK7J5bWCR3AUBRg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=hIvDFqlFtbZUBU79WPwZ9Hv1T51iIj9b+diaKlBRcOzU8d/otEDlWGIGLIFPSWOw8Vk9M9lzLYkIRW91dWJydU8Nzh8uhUKJrnhFu39DgKMcpDMrvBus0Qxjp2g+1DCBoM3OjWiJagA0r4bXbFXzxzq6gnqYNE0UhgORot4QDOk= 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=egfMvVmC; arc=none smtp.client-ip=209.85.221.52 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-f52.google.com with SMTP id ffacd0b85a97d-33ce8cbf465so407857f8f.3 for ; Wed, 14 Feb 2024 07:51:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1707925889; x=1708530689; 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=ckkUsVwgCVmMoCiQoUiMKNTCmR3exiIWp1NLASK9lUQ=; b=egfMvVmCnmRlf82UsFf38F9fQVI325kqptKHrXu5T6BE5yIpUbtRnLVXNn3LoVfmLi cVWaK0fAroF+Fzzg6Z0AoMzsyYLbSteEDEL7bQeFfsDY+x+olFFZpgZCcHAivUhpO9jp sjg5/BOD5xp5hkqZa+gfoe/7zxIi67yyeP07dgzI3XmTpWCJcJFNxNvmhJkyU+D6u2bj DJbXEQ7l/H1+ZiW7PqsfJG0Jjpjx3Tq2qYYQHFZvZAICJF5zo8upgGvxh+g1QtYO0ZAr 8TnRBOI7kVQHRVOAmOUnFcL/xulMBvpDfzDPk/FnolHoCr+hr8imtbkX4VOo9KpxOAwm w1Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707925889; x=1708530689; 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=ckkUsVwgCVmMoCiQoUiMKNTCmR3exiIWp1NLASK9lUQ=; b=MQ0jJO2Duwn3d7Ht5AMdGADXnn4EcF/kH9uzv53tvFiiA14eyEs0yVpEg4pewzEgeQ uBMniQPJiy12ENVHuTp/nE7OmbF8eulZ3lphjkknBG+TlnLVZ2UACmKgXDzD0KhM3BXL iwjdM54hZNc6dzWbtAAyzIekxgI3H4uan7kRDzyH402NkE7+7baAE567guaObkG0Jyv5 buzzwdAxaHtPSXpost4BQZ67JvvXDZek5+vLLZme5IH3Og8RjF5+0qh+bF8v4bB6MxMq BUs9QX6t3NZvTroISbBfBMPxxVQTO6Yquaxd3fDfKqHFKpw+27GQpPOIL6WHf23C4DYl vrdA== X-Forwarded-Encrypted: i=1; AJvYcCXvr9qZDRfDJ96lfdnDOgLKn1BWB6FG0QJK3EgyHtgPfcBD6WYxf8TTLrCXo2Hc8XMZg0n4rLCyWRD536S9ZwGRrYTVQPp6lvWuv11S X-Gm-Message-State: AOJu0YxP3yYJeOc4W2l58eKQp17LRg+9roTn2P8I0m6Hdun+agxIeMW5 rimd4Ij4vMBUGfH0CkZ2DZizdnl3irJlcT0/c3+qrwkKpOD7D96p+EOkj0YY8JA= X-Received: by 2002:adf:f70d:0:b0:33b:3ec9:bac8 with SMTP id r13-20020adff70d000000b0033b3ec9bac8mr1966513wrp.26.1707925889382; Wed, 14 Feb 2024 07:51:29 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUyY0+8ebFKZ6vQKw16tiiOdkDZpQDTJBSOjatwe3jxEdnAuofYJ2PCOuE8XmQlDlvvL3Gj1zRxJo/LJZNPg/cRVp5s6A/DnmrKCebT2gpXvg3tic8GhZLLQdTHX1GlNLLgbX8ahGxgs4buMpIRig7he1Xdv8LJthIYOVc7R5FGgW+Znrm1256Cqz2yOB6s7HYfJoH0IbVTO0hZgZsU2DZZ8FyZKp6r9yAetG8TJZrCJa6lrKUTqEx+VZmpq+t5E14H+CDOJH5LbVGrkyO9Au2hnePWXrq7icl1So4GQSfbJomV7Xix/GYeutOCPCdPsqwvXx2/uGzBPf3VX8A4bBXyU0XZFi8onlhMMaBm0SBrVRhfM8d3kDn2HBXAwW/iZH19U2j3iRHjsbnffDXndcJARGW6DdMlDruwGZ4nlQCeXo3iLQu599+aO0aOJNUSbUqFfAvEI08Sj6Y6ylslkXOab4NSGmj5h31UbaByeWSivNRkmno+pXRZN6jewUmvfUOEc4VW3Cg1Ll4VOehbnUUANmPxq68za+9ktokskoVGcLMNxxGSvQzY Received: from [192.168.50.4] ([82.78.167.20]) by smtp.gmail.com with ESMTPSA id g7-20020a5d5407000000b003392206c808sm12694287wrv.105.2024.02.14.07.51.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Feb 2024 07:51:28 -0800 (PST) Message-ID: <497c4fb6-1ea1-4e14-bd43-ce4a4441694e@tuxon.dev> Date: Wed, 14 Feb 2024 17:51:27 +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 14.02.2024 17:26, Geert Uytterhoeven wrote: > Hi Claudiu, > > On Fri, Feb 9, 2024 at 1:25 PM claudiu beznea wrote: >> On 08.02.2024 14:53, Geert Uytterhoeven wrote: >>> 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. > > 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 >