Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp5762559rwn; Mon, 12 Sep 2022 14:05:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR4FS4fpftiHRRaNyVFuEb4RCfV1yqUSJ3R7T1fNa73V8Vo9Xr+y0hRP2g/zwqvYQ5tZqnnr X-Received: by 2002:a17:907:8687:b0:77b:f46a:12e5 with SMTP id qa7-20020a170907868700b0077bf46a12e5mr7034979ejc.747.1663016757435; Mon, 12 Sep 2022 14:05:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663016757; cv=none; d=google.com; s=arc-20160816; b=NM3U9eAeWVEZQux9zZFfeCz6i2XctZVvsQNIi7rcm9R4VzB94AI3sWQem8NtKfX+4k pSdjgRZwwYoX6JLHQ11k9jd/I2iQUOx68pG3RCGzecQzRuTVXbX4j2iOrC4WTamWTIqY 1OMesO3rsYK5+iUtkwHtdympy9Al0BP04hNX/5WlfDT/38PJCv0vLsuClArRnHHiE+4R lKbVIpoXElwgJu6ISqqEHns45k1amZJ4agaNafdCLvMLrcdym89UU78JlpOF2OMLZ4rm Fs502KfzfOEOmGYiImrE3W5eEbp9s0l42GCBN/5GWEEXlxh9AfrjAjU8H3JQMBBH+xOq B+Qg== 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:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=wEszEHUyzXdDAbDnhA3UlL1WJ5ZcMn3gra5lLB+dYuQ=; b=0LXipJC0+YCjO80WuvkgCu3CnqhBiU8AMyT/HNKVZ6xoCgjpz/uThzof6CTPhlL6Kp lKik4mSGL08sEmtD8orYiKyuHpWMtRbM26KFPAHiTS2dRZhSkkgvYfuxXkyInDVWH62H Ce7EyiEuoD27hNLJHgV2pSo0f+Nd9/Ti+Q5TPkqkmh21SlxMuzczx3JBQbvU7gleRyr/ 0i/17+A2O8hmQ0xEXX01Zbj00mhLodE3HVn/Uah1wMu4RfIQCy1rEqI13UFHQMjA729E cHRMZm5DXtOEMoYYUz9QAEiGC8W+R0dCo+k5ySzLTkUrMZtnu45CKVQHGM9AsB2OWyru Ub4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="fU/j7Qgr"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds20-20020a170907725400b007313314bb73si392274ejc.806.2022.09.12.14.05.32; Mon, 12 Sep 2022 14:05:57 -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=@gmail.com header.s=20210112 header.b="fU/j7Qgr"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229909AbiILUku (ORCPT + 99 others); Mon, 12 Sep 2022 16:40:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229817AbiILUkq (ORCPT ); Mon, 12 Sep 2022 16:40:46 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CDDB19285; Mon, 12 Sep 2022 13:40:44 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id bj14so17322551wrb.12; Mon, 12 Sep 2022 13:40:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id:from:to:cc :subject:date; bh=wEszEHUyzXdDAbDnhA3UlL1WJ5ZcMn3gra5lLB+dYuQ=; b=fU/j7QgrNqVGu58i0I7YtynmaDz/NzALnT1aKQSQIK7SwUhinPEKa4Lpb4/aS3DgS7 0SSVvVbeZUC1O61pXSvy9jedmiptdWfmjKTghs3ptmHUaUiWRSZ8p/z1gYN/FYciYjG+ tisxYvbzUZkEuBSNpQCg8+JBtKiEdtrDo6ZkOr1xeRE9qzLmDxSSnXbWGxmo88RQu7Bw wMwAjwKGNqx8Gm1/g4GmP5yxBsG4TfDW/pZUlqLBF++jLE/zv/eUcKZzCRN9f0THUWHy EQ9Tf44z1VNZ1QLSjPZDB2J2Xau5jvKzAras1OfKT4IqY7nEqQ+GnHqkMBVVZMsplD7e ecug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=wEszEHUyzXdDAbDnhA3UlL1WJ5ZcMn3gra5lLB+dYuQ=; b=tx/VHS91eLhCm2U1vDRKvGDlgVvrsDMKXfmVQ0vIPhtThNTVr4pzs0t3otZ/gm4Qma B7gx2/OeZ639gF8Q3BTYVKe5EKFQY4IJuWwm91xsT5Bu5cw66he4owGfNvn1LSCYcdD9 46tNiwE7KRv3+GTUdmGGMaxzB8BI8Zlpz9/Ng4zaMVBsQ4mZc9NN52AYgRrGPc5Cysz2 dZ//GxJ2SVjpcxRLIyTL4pWIfyyOBRcQQ0BPEOXxw3bIRjagw5clO85wJtT1hohW6/gb DibmsfrkTwGR2/LZ2pFVKsBD2YdsKCSuIYrsuJnVOlbhO/zQWaNHuK1nAmF5TpJmBuwD dq5Q== X-Gm-Message-State: ACgBeo2GuPstnvnri7s7l8VZrkxMpDuWIszYceihjo1ErFNkP6PJclVy SADxWzm8cBiMZBPjfF8TaTY= X-Received: by 2002:adf:ec03:0:b0:228:76bd:76fc with SMTP id x3-20020adfec03000000b0022876bd76fcmr16244105wrn.533.1663015243110; Mon, 12 Sep 2022 13:40:43 -0700 (PDT) Received: from [192.168.42.87] ([212.2.175.203]) by smtp.gmail.com with ESMTPSA id ch16-20020a5d5d10000000b0022abd7d57b1sm270753wrb.115.2022.09.12.13.40.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 12 Sep 2022 13:40:42 -0700 (PDT) Message-ID: Date: Mon, 12 Sep 2022 23:40:41 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Content-Language: en-US To: Tim Harvey , Peng Fan Cc: Marek Vasut , Peng Fan , Stephen Boyd , linux-clk , open list , Fabio Estevam , Shawn Guo , dl-linux-imx , Michael Turquette References: <59b6dd0a-7cbb-5dbd-8da0-57baeba3327e@gmail.com> <2ab24cc4-4aa2-d364-9b29-55f5d6b23626@denx.de> <8736ba4e-1c61-995a-f090-ef322d84e5f6@gmail.com> <0c924574-d2b4-2a23-0cc2-63f32d521854@oss.nxp.com> From: Matti Vaittinen Subject: Re: BD71847 clk driver disables clk-32k-out causing RTC/WDT failure In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 9/12/22 20:15, Tim Harvey wrote: > On Mon, Sep 12, 2022 at 12:40 AM Peng Fan wrote: //snip >> >> After a thought, maybe an easier way is to add a optional property >> xxx,32k-always-on to the pmic node/driver. >> Yes, that would be easy. Yet, creating a driver specific DT-property feels a tad wrong. I don't think the BD718xx is in any way special so it should not need such a vendor specific property. It might be better to find more generic solution. > Is there simply a way to add the clk to the snvs_rtc and the wdog dt > nodes so they have a use count and don't get disabled? To me that does sound like the right thing to do. If we have a consumer which requires the clock, then describing this dependency in DT sounds like a correct approach - assuming this keeps the clock enabled without a race between instantiating the PMIC and finding the clock consumers. Finally, if adding the consumers does not help, and if there will be no consensus regarding the generic property - then I think it's better to have a vendor specific property (as Peng suggested) than it is having the boards broken. Eg, if all else fails and if there is a buy-in for the vendor specific propety from Rob and Stephen - then I can also live with it (even if it sure significantly decreases my happiness level :p) Yours, -- Matti -- Matti Vaittinen Linux kernel developer at ROHM Semiconductors Oulu Finland ~~ When things go utterly wrong vim users can always type :help! ~~