Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp88855rwi; Wed, 2 Nov 2022 09:36:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM64Sjl6bPrL96ijSH5W9rfbEfHZgm8MrBncaL1tPI3VlrE1tMA5H5lnRNh7CC0+t51OVIIs X-Received: by 2002:a17:906:d96f:b0:7ad:f0af:5c07 with SMTP id rp15-20020a170906d96f00b007adf0af5c07mr8500545ejb.572.1667406994499; Wed, 02 Nov 2022 09:36:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667406994; cv=none; d=google.com; s=arc-20160816; b=K2UJO2JSUSazhbcW6Raeu+QnivobCqFQlAJFjNqjuMzJSqJ1dirBjKpObvJT76OimF GDXgdwo7EOfGjtZgum8PGNrb1LDgLnO52Xh44bWfzXNuWJoE7MqZyVCsAsXZq9nQfzHi eweqZVCoVzeCTOXnYU5fopHsB3e1EKI3/gN0QCP5qqxzZYxoz1VhkzxTrkrPZXhvizek DQCVKKNJT5fbwtXC0TG1UXQ3xfWxOKbjMk4b7Atl0DDX+2Vlq9R2Vuun9uViO9qAL7HB DfAOr0AQ5OBAd47dddSwUvguB7AwMpw5McAeow2F49/Ue7TgTaqEgiDcthjcQhyQo3vp p4SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=i9lzFBitnyAp6ipWpwtICbzA7hqqgUYQcinpTzvMvYI=; b=PQ1htUFC8LnrhwrE/BPMGisKWGLDJ+49Rni1p4DhXSyy0M4Z95YOM54J7ShKtU+9xF 6VTrM3C0qrC4MPEtqZF2GI9DlbWEenwrdYjGAOvUqQGBcUbp0E7D/IXWWqJXLUUE1LFH QhUEcys7c7KP1LzJjyfuyVr2ClcaBP7OviV4PqESqXGVEyy3c4GtxLbjhzqn8zId7j6O LePkPfekcL9KSwLofFJzwfXIH/dIReMorNFElmOABIL9489Qq8sChjVSzPYLmD8TTihP TThMHI+RIAx+CImW6xQDnUQWa/7EYCs3oFCcuU+478M0lnaYWPxF1kzNfxHPWhpXyKyr saVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pE3B01zF; 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 bm17-20020a170906c05100b007aacd494fe9si13580479ejb.311.2022.11.02.09.36.11; Wed, 02 Nov 2022 09:36:34 -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=pE3B01zF; 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 S231835AbiKBQaS (ORCPT + 98 others); Wed, 2 Nov 2022 12:30:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231726AbiKBQ35 (ORCPT ); Wed, 2 Nov 2022 12:29:57 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D44A813F45; Wed, 2 Nov 2022 09:26:03 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id d3so25780240ljl.1; Wed, 02 Nov 2022 09:26:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=i9lzFBitnyAp6ipWpwtICbzA7hqqgUYQcinpTzvMvYI=; b=pE3B01zFCVw+bIUAPWnhHJVI4HcUniogBqFng7orjWDucp24hEY7aCrqjDuO6GV6hM YSu5meS5CRBEILfG0g6tdvKOR9x44wyXJAXK/wQ0VHKqUkLclJeEZX8tEklUhNyRClvC tkaWHlt2A5zuihz51DFhN6Jwlrtrkglb8YvMFNw9Q2LyLwSUpkLRmkO9Yd4vIFLeercb pHdVDYN32QXUIfuydzeuJ2zCpen7H8ise2cmH1/CEXU3af7Bky29LQAha/r4RpKRXz3C TL/nArGGa58sBE/P2nuzY7qUCjG/V+HRkVZZyoIXbguWohQuZnynAiIQ6cwVMrsjaUf1 V7CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=i9lzFBitnyAp6ipWpwtICbzA7hqqgUYQcinpTzvMvYI=; b=2cXJJIJJAPwg7xtSu8LtuiKB7bzHq6uXX9oS00+SbWOwu1I/tSWPAeWqGMrEiTujBE WtLHLPdiMNYoqOk36PLa1aQ5wZwvIFuS7WUDHynjUguuIgSjF/RNJVRsCKmWAKRGnR7F jGDf5UIL7e7sRkgM/Ba6gENp1wfSqiaoFSI504OEEVkiDV2oZpiI5dtQOpc6NONPDM9J iLysI2//tSxdl5KJi4U6r7oLaocsYoBK2qtZx/lArgNee31jJXdxWOE7LSkD7s0gTLbK r5/TZ5Vn4/IvtaPVM8D2B3HoMEp/ZPIgBqJQLUZZQWrY4TZ3tFYjoVUwp8oAnKwoptdK Owuw== X-Gm-Message-State: ACrzQf1wPOMlGV4UNIy/6Ofpma0z7IIZbG2t/SvKCvTNyRi7259RchHa q8HKywrwcCPwGbMCJZ7BxMbEv5bIRBc77bcG8y8= X-Received: by 2002:a05:651c:33c:b0:277:e2b:de4a with SMTP id b28-20020a05651c033c00b002770e2bde4amr9519495ljp.55.1667406362096; Wed, 02 Nov 2022 09:26:02 -0700 (PDT) MIME-Version: 1.0 References: <20221102141513.49289-1-fnkl.kernel@gmail.com> <20221102141513.49289-3-fnkl.kernel@gmail.com> In-Reply-To: From: Sasha Finkelstein Date: Wed, 2 Nov 2022 19:25:50 +0300 Message-ID: Subject: Re: [PATCH v2 2/4] pwm: Add Apple PWM controller To: Biju Das Cc: "thierry.reding@gmail.com" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "marcan@marcan.st" , "sven@svenpeter.dev" , "alyssa@rosenzweig.io" , "asahi@lists.linux.dev" , "linux-arm-kernel@lists.infradead.org" , "linux-pwm@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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 Wed, 2 Nov 2022 at 19:02, Biju Das wrote: > I just asked, because you are unnecessarily turning on the clock or increasing the usage > Count, even if it is not used by anyone during probe. It is used to get the clock rate so it can be used to convert between seconds and pwm ticks, and the pwm uses that clock, so it is kept enabled while the pwm is active.