Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2446295rwb; Mon, 3 Oct 2022 00:13:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4LBwz2O44nghZj1eKR1efqiW1t4Z/FT2sndFW4R87UL2RdhPmyklIQUjqso5lnUiYblDem X-Received: by 2002:a17:907:7625:b0:78b:a607:8492 with SMTP id jy5-20020a170907762500b0078ba6078492mr2255731ejc.470.1664781200416; Mon, 03 Oct 2022 00:13:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664781200; cv=none; d=google.com; s=arc-20160816; b=ZhLxXhlg6gLWw3JRRJSPQ8bYrv5jF6kfc07AxUcQZMMQdQ+hhIy1wufvarzI4PjcQY BP1f6T6s+rgMWmXKMNZBK9nXg+NbeYheR4Fo7Z11tkRBfyDtCMXqPYYaid1BA55gHpHE ERtjYvX70Tt9rf5JbAPDFJobfcYmSus8F+UKNF+fiGcdy6bNG2EzWrixmsCMIVxF7yIX VuInROBu85juqr+ZFEmYv/tx3925xfRUaAl8Z24ugzyxbFxlOe8cCJ9zmUivOWNlVCiA IgCLVaulSRvMiqHm/CMcLEM7nBpGs5mAb6ILWs7lI4Oiaym4T7XCb1yDzYg2N7YP+h3M lREg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=vmX/+5akulDOCofIBHD+M8QnLzZXAedqVxnThx38IY4=; b=K5x2t/bn9+z38xkTUAUliyVynUfELuqrzU6f46xW3tlJWEwb7aRcln9mnoE9yiqo75 VzItS8h+zWEIqQmmpZxuXBg1fK0UmW7OXvsEiqKiSRKpQr0ZdNAdNR8jrWrY5Sw9KzMp WwNfJ4aNF3gzVkZRvH67RWH53cIYkRxDbsBaqB2UBTvogQX9h+hbIF5v8KHu/OJsJhAX z8E8F/pulVVCG5YHXGTp/XOd6vJelhTyvmLrp8YAjt8k4t8aC8bpFN2gUHGhXLebqDK2 TwUEPJtCn+yis/kOymvURWEtyRHYPQRpY1SPpj38iDNtNgMzmld0Kc4QRKfP1huy2omC RWMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fuX9+4t9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e5-20020a17090658c500b0077afe48c791si8619677ejs.538.2022.10.03.00.12.55; Mon, 03 Oct 2022 00:13:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fuX9+4t9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229695AbiJCHAa (ORCPT + 99 others); Mon, 3 Oct 2022 03:00:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229657AbiJCHAU (ORCPT ); Mon, 3 Oct 2022 03:00:20 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1280212AC2 for ; Mon, 3 Oct 2022 00:00:14 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id bu25so15237866lfb.3 for ; Mon, 03 Oct 2022 00:00:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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; bh=vmX/+5akulDOCofIBHD+M8QnLzZXAedqVxnThx38IY4=; b=fuX9+4t9ZGOXAgE6XMgw+mjIIdS5blIto35t4y0d84ktX+02fOHMFdAsQE6pP9w9I1 pXHgYsIX20ykr/GklszG1CNTIbTp40KPdGHVvnAT1n0rCHPop0u76Ntg0TMjP1qMlVK2 +ZY/fi9hWQ50YC5MxhDntNcMXwFxhUuY4izI6oZiEfoMDfflkkhaaShINj1autH5R3ka tl9nTkMT/u2cvU5Ozxu2k7/mtzyGz9BTnfZP+d+7SIFW6XXL1e6hA/VUZUB1pDQxU/hf PTehFFKs2SUtsWBH49kcN47E/Wga0In87bsJGN64EhcNmi+nAj8r0bGkQ5FUSiyW15tG QDsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=vmX/+5akulDOCofIBHD+M8QnLzZXAedqVxnThx38IY4=; b=rnMUNSqWZUFLZcM3OD6veVLPXwEMvgkbXw37uVGGjW8H4ORVd/iei51T64NHozSkJl N+ax+gUEiXWjOx/Yss+jVPcXhErbYrYbXn1oFapYjYkoACaPIV5k1d7CM0RW3trY3QT4 JdoUR4uiMHIV85vbf6xnm50ee/2c1H31pxzOJE9zitK0CZuh69QNSWMQthC9At4GoPUS b4NEd+rG0kr03ZFiSf6t8iP8T/7poBpBzpSV8LdHezTV7XC75thcWuvEfEDGFKzoHXfS 23XdxtGen1xMZQj6fZDzu0lli6Gg8nCRcDvJHKp/21MFKU2R9EcYCenvQNWVfJDSkIRn HfIA== X-Gm-Message-State: ACrzQf0BLrm+ItgYfGALv5AgbWlZdjezk4Vc4MM+Vf8AYA4ZkAwM2Bk1 Ma1BLGc5jNv5jR+3XDkYg3dw1g== X-Received: by 2002:a05:6512:3a89:b0:4a2:fbe:5573 with SMTP id q9-20020a0565123a8900b004a20fbe5573mr5038065lfu.546.1664780412454; Mon, 03 Oct 2022 00:00:12 -0700 (PDT) Received: from [192.168.0.21] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id z13-20020a056512308d00b00499b57032c1sm1334433lfd.144.2022.10.03.00.00.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Oct 2022 00:00:12 -0700 (PDT) Message-ID: Date: Mon, 3 Oct 2022 09:00:11 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH 2/3] watchdog: xilinx_wwdt: Add Versal window watchdog support Content-Language: en-US To: Guenter Roeck , Srinivas Neeli , wim@linux-watchdog.org, shubhrajyoti.datta@amd.com, michal.simek@amd.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, git@amd.com References: <20220927110257.41963-1-srinivas.neeli@amd.com> <20220927110257.41963-3-srinivas.neeli@amd.com> <1cb7fdb7-ebad-a61e-490c-80e6c9feab2b@roeck-us.net> From: Krzysztof Kozlowski In-Reply-To: <1cb7fdb7-ebad-a61e-490c-80e6c9feab2b@roeck-us.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/10/2022 18:29, Guenter Roeck wrote: > On 9/30/22 03:35, Krzysztof Kozlowski wrote: >> On 27/09/2022 13:02, Srinivas Neeli wrote: >>> + >>> +static void xwwdt_clk_disable_unprepare(void *data) >>> +{ >>> + clk_disable_unprepare(data); >> >> If watchdog is stopped and then device unbound, don't you have double >> disable? IOW, where is matching clk_enable? >> > > After looking into the entire driver code, I see the problem: > clk_disable() is called in the stop function. That is wrong; > if the clock is disabled in the stop function, it needs to be Yep. clk_disable and clk_enable are always paired. In probe they are pared with remove() or reset-action. This one is in stop(), so it does not have its pair. Best regards, Krzysztof