Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B133CC433EF for ; Mon, 22 Nov 2021 16:03:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235114AbhKVQHF (ORCPT ); Mon, 22 Nov 2021 11:07:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229955AbhKVQHE (ORCPT ); Mon, 22 Nov 2021 11:07:04 -0500 Received: from mail-ua1-x933.google.com (mail-ua1-x933.google.com [IPv6:2607:f8b0:4864:20::933]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81BF3C061574 for ; Mon, 22 Nov 2021 08:03:57 -0800 (PST) Received: by mail-ua1-x933.google.com with SMTP id r15so37628698uao.3 for ; Mon, 22 Nov 2021 08:03:57 -0800 (PST) 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=k01X7HLQW+k2kjIuefa6cfmdvw6hKa9dfM63nn0fC24=; b=tEFZfAxLA9Ph2Oo2CFd7i4n+xuUSG1w6qoBmYut6gEDnchWzNHOC/zt4nkaL+YyG4t WKMyqObdem1DJw4YBT+Th0UJT7tPmXjOLdJ3nBx5TyGL3F4AQY7aRPrJRFuiWqtuHOIw x3pUPG2Bk0KhfSCaBJVN7IMcgNJuZQlqajueKiOVU6EffMA3ItMwheOtLWCzXL4ROa7o Ku00+QsKYjHgTFPLN3LvV0uECgKcBY4/Q2xgldOIAEsAs5WvmcCY20sj98ysDMYn1ESW nABieCPiHTQoyt01ynvy9acBERyMQDF7K9VuR5MXTIJNZdDO27Kp5+OsuZMpQc2UBNu1 i7ug== 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=k01X7HLQW+k2kjIuefa6cfmdvw6hKa9dfM63nn0fC24=; b=vKBqygbQ4qbANdGkTGl4xcZVbOqRpyaDYkrR50LICkhMpofjHlAVfVNW55Jdunx8ic SgAtzx4nMBH8NtvsseWy8ob6pQm1ETAu9a3pE8b7Y72Y4wxz8NIeY1FaxhypQPji6aMm zJXubP0YAqSF9HsTrBlkA9pjBrkuvftkEiU5NqykPUZfEw+kCLKunRaQn+oyIa1kJLE7 GSszZg0RpIz908anups7eTJTpdEek2Wn1qh2Vc0aVfFoI82OmUKcll8N/UGILWJwQljB 2gi/vUlCzq6FbrFWahXLhlq+x9wK/nmbULITwuf7GMQ2X3cJMSTfFG5n/lY8gEhHW94/ G6JA== X-Gm-Message-State: AOAM5316rCD4pfdlHUxApecBVqm/vxKx3ft9QZjTAGhW9oFxYzWBqQyo XZpNqwPnJiwKM0VYLM/GXd6hF48as68OpEfafQCBeg== X-Google-Smtp-Source: ABdhPJz4CLAMIeE69lGuhlgRG87VJp7SsFQbPEx7lhqds0H3jnLEbxgyl225ynuwfmyWEDQqrCSd4hjXxwXXvCICwJE= X-Received: by 2002:a05:6102:ac3:: with SMTP id m3mr117236680vsh.1.1637597036721; Mon, 22 Nov 2021 08:03:56 -0800 (PST) MIME-Version: 1.0 References: <20211013172042.10884-1-semen.protsenko@linaro.org> In-Reply-To: From: Sam Protsenko Date: Mon, 22 Nov 2021 18:03:44 +0200 Message-ID: Subject: Re: [PATCH v6] clk: Add write operation for clk_parent debugfs node To: Michael Turquette , Stephen Boyd Cc: Russell King , Chanwoo Choi , Sylwester Nawrocki , Krzysztof Kozlowski , Mike Tipton , Andy Shevchenko , Andy Shevchenko , Geert Uytterhoeven , linux-clk , linux-kernel , Fabio Estevam Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 19 Oct 2021 at 16:32, Sam Protsenko wrote: > > On Wed, 13 Oct 2021 at 21:04, Fabio Estevam wrote: > > > > Hi Sam, > > > > On Wed, Oct 13, 2021 at 2:20 PM Sam Protsenko > > wrote: > > > > > > Useful for testing mux clocks. One can write the index of the parent to > > > be set into clk_parent node, starting from 0. Example > > > > > > # cd /sys/kernel/debug/clk/mout_peri_bus > > > # cat clk_possible_parents > > > dout_shared0_div4 dout_shared1_div4 > > > # cat clk_parent > > > dout_shared0_div4 > > > # echo 1 > clk_parent > > > # cat clk_parent > > > dout_shared1_div4 > > > > > > CLOCK_ALLOW_WRITE_DEBUGFS has to be defined in drivers/clk/clk.c in > > > order to use this feature. > > > > > > Signed-off-by: Sam Protsenko > > > Reviewed-by: Andy Shevchenko > > > Reviewed-by: Geert Uytterhoeven > > > > This is useful, thanks: > > > > Reviewed-by: Fabio Estevam > > Hi Michael, Stephen, > > If there are no outstanding comments, can you please take this one? > Bump. > Thanks!