Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp223765iob; Mon, 2 May 2022 17:43:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOCauxgyRkECXFL2idCxhkbElghbt/QhG9FJYp5NbJ/CibzjL/VU/sEf2jy1DZZ4ScMUao X-Received: by 2002:a17:90a:7c04:b0:1d7:d7e6:2916 with SMTP id v4-20020a17090a7c0400b001d7d7e62916mr1984861pjf.25.1651538599624; Mon, 02 May 2022 17:43:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651538599; cv=none; d=google.com; s=arc-20160816; b=YjVBiUa+6e1Edr7hZnx16dNa5+PSy18wHx6fb5kC6YRzsJQsH4eyhQhZoGzKmx3uxu A/gI/mOXheoheVFqn0EGdlPhBlEksJjzoC8bLT9dR2iqbXM9IAl0gCDDOmY95PIFk9Dl 6en3xFRNDMlP79pv9Y8dn0ln4AMTfM55L+gJ/G01sBKqB20d5VKvJvyLUGp6hElZOM5Y eOcN6g6C6OPxnWrLIOFDXCQL97D1adDDv8Lm98HOu7OpduZ33KnAkGs2v28WDE7KdHlO 56bw87DIohBOVsMWxmB2itg0kodJSs4vCJ+F71DvGWLeCIENgwwwDqd9+IvbuRHPBuzJ UyHA== 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=xAskLmoBXOcHx2RtzTF77xCmBBRnwL5PyD4a1eKKNdI=; b=XgYigpHpNkWsG7HfyWoqMXXIq6W/GNgGkba42h9xijCNwr4kxaDF4D/OxmOKM4Hf/j 5XtH1mPch/1joY5Fy6TPSZlkUDodnWU+Ymkf6KRRGlgTbU8ZUzFmAW6AeyDxdL45YfPt RYidKEkp97ycVY/ab97Mt6JmZA/tX+s2sYglE9TKo8s6HI5sHN3EV88GcKQGRGjhLCGT FiisH+9AWx6hIuJDpU0z6m4fkvLtD/F6cd01fMSy0YnHpC4IMAss8noJvFX1Dk4huHAs DYwV10zAvDSioZ0kmZ0/pvXAN4AW5XOJc/+stWK56v6xlIFZyZSbnnrGmKvrwgV4SZRQ cTnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="hYV/EhhA"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 14-20020a056a00072e00b0050d4f5ccb83si14014854pfm.311.2022.05.02.17.43.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 17:43:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="hYV/EhhA"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8462C41FB1; Mon, 2 May 2022 17:33:16 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355035AbiEAVai (ORCPT + 99 others); Sun, 1 May 2022 17:30:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235897AbiEAVah (ORCPT ); Sun, 1 May 2022 17:30:37 -0400 Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36C342FFEE for ; Sun, 1 May 2022 14:27:11 -0700 (PDT) Received: by mail-yb1-xb35.google.com with SMTP id e12so23226743ybc.11 for ; Sun, 01 May 2022 14:27:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xAskLmoBXOcHx2RtzTF77xCmBBRnwL5PyD4a1eKKNdI=; b=hYV/EhhA2DcuXyipnbt78bMz1dzGRCn5wcMaI6OoOVP96sHoLhcaPCJ0RGRIOGrJAm akN8ym/xEl5RrJsPUfiMKwLpUrl0diGOu41mklHmoaSjLl8YtN0M+zkRZ4ap9kQ2hZh1 iQq36tofaypj/mKFC2FKc0yP07ar7Qd0mLhPdltqDfCnFf3eRe/r5DWLpGiT5y8qvDTt GL7z9tExa6U/BM9Wf6zM4+YFtP9EAuI7gVIMlNQghw/8L8ztHTS7Vb4Z4rp2PkDnUETx ktBtv1I24NFPbSdl1tEVkgUvlxpfkbZLG+7vLp8cTR9Vps6SwdjRRtgQfvvLtyUUviAu 5biQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xAskLmoBXOcHx2RtzTF77xCmBBRnwL5PyD4a1eKKNdI=; b=KquSp9B1R2Gh7Wh86cleOdvg9YB0H38zz+f25hR6YIdyYjVvdo9EGIuWIX4aVHLgUZ 26DO6yEkHzHw14cPg4sN7TmAZjM9rj7WxjgUXV2D3n7RZPogX3HpwUHiP/5bVp7qquVz DFFpcYSBQfojiqpEw+LK8IUTRp8+36oSyeS1EyiuklyjuJZJ/Pu5Qoa9wsDRdl88TaW5 XZ8qbciHkjnHAZi+yL/xekEopPabRU4ZIBQTJXtGVbv8y9yPP6mZJX4lB38bnmraOC6k RJoiPhEkPNlydm85+NEgap/GHetAjKMyxJTC4dKFJN1+ssDfZIxDJvQOTMT5iMp9/gZ6 HQfg== X-Gm-Message-State: AOAM5310exd54DR9m31CX5VPX/G+5OMbFOTAG9QTr9R2WlYNdZjF0/a8 xD/eylIgnUKKevch5RW4uNWtu18OtGoc2YOL8Tp9MWyH1Zg= X-Received: by 2002:a25:e684:0:b0:645:d429:78e9 with SMTP id d126-20020a25e684000000b00645d42978e9mr8625979ybh.369.1651440430413; Sun, 01 May 2022 14:27:10 -0700 (PDT) MIME-Version: 1.0 References: <20220422143608.226580-1-fabien.dessenne@foss.st.com> In-Reply-To: <20220422143608.226580-1-fabien.dessenne@foss.st.com> From: Linus Walleij Date: Sun, 1 May 2022 23:26:59 +0200 Message-ID: Subject: Re: [PATCH] pinctrl: stm32: improve bank clocks management To: Fabien Dessenne Cc: Maxime Coquelin , Alexandre Torgue , linux-gpio@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Marek Vasut Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Fri, Apr 22, 2022 at 4:36 PM Fabien Dessenne wrote: > Instead of enabling/disabling the clock at each IO configuration update, > just keep the clock enabled from the probe. > This makes things simpler and more efficient (e.g. the time required to > toggle an output IO is drastically decreased) without significantly > increasing the power consumption. > > Signed-off-by: Fabien Dessenne Patch applied after merging in v5.18-rc5 as a prerequisite. Yours, Linus Walleij