Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3701105pxb; Wed, 13 Oct 2021 11:07:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxezmOei67jRvvG/TkWy92ReM1jI4ozQIjbNp2a+wJU/YbCpG1lUAP5vE8DtbbVX3+i12Ps X-Received: by 2002:a17:902:aa02:b0:13a:6c8f:407f with SMTP id be2-20020a170902aa0200b0013a6c8f407fmr523782plb.59.1634148425996; Wed, 13 Oct 2021 11:07:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634148425; cv=none; d=google.com; s=arc-20160816; b=uLBTz/Ldpo5QyoxINYQt8yB8BY4zj7PqxMhhCnuYIhpNDnDiy9sk22bK/Ct7fWGpZQ i8Cpr8Zi6UyYqfAc32ak4D8dAd6gf0YoZ3nxA5Cnku6IStmTiVc9Y1og13QRi6vBsrkC Adz/UNia0wXCXMm6JFsjgU7O2ilALNjGSrBm0BRHVjRp2nJN1T/2WKnLLZ816PQQH8X/ bOFVKLOJjTMFw24i3bNrXBtJZmOvaOBU0/RajAtBiNdUqjPH5vtBdYP24d34Y0ZrYO2H icZhWFUuq/t6pAOe5Zv920Ls/laQ+z3OU3qw2lc8nr4i2/3Mztr1DTkhEFHvGtn15xD/ dlMQ== 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=5JZ6j7pYu0Wx/PJu3hozdlLGPftJkPZScKEEfc29Dvo=; b=GTM2R6kLcCcB+2mLoSFLdsDty0gg2+hM1UZV9Xic1RAb9cknmsdcQcuDdowLbji5mI w5YObEWyfyQ/CWO3uHjAlk9SaCeYcUlvqcoyMGkHpFpDoox/e9M/NIwvTMnt3dXhbDvC zVjkYIrluvilL4A4idAmSUsProHWTGt2HJQB9usfSZNV+RJNAReLt8QgxDQ40gT2aDSz W5jmBoIdaAF52YtZ3ULliMo3bNim7ChKHODnUyUiGc+y86x2ncpY0tGdDYLx/DVwonvs eayl0WORMFiNXQqzaunhUyKObqEDdMy+NgKts66XTJmwhbD8tw2DmktuYnPQx1613D7O boUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dJBTHItF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t2si244551plr.426.2021.10.13.11.06.45; Wed, 13 Oct 2021 11:07:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dJBTHItF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S233315AbhJMSG6 (ORCPT + 99 others); Wed, 13 Oct 2021 14:06:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229814AbhJMSGt (ORCPT ); Wed, 13 Oct 2021 14:06:49 -0400 Received: from mail-ua1-x935.google.com (mail-ua1-x935.google.com [IPv6:2607:f8b0:4864:20::935]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DB4DC061570; Wed, 13 Oct 2021 11:04:46 -0700 (PDT) Received: by mail-ua1-x935.google.com with SMTP id 64so6210517uab.12; Wed, 13 Oct 2021 11:04:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5JZ6j7pYu0Wx/PJu3hozdlLGPftJkPZScKEEfc29Dvo=; b=dJBTHItFFnYUxSqezPmcOIaOJhKF9pfKGq5xP5so++hgKwgNebGpoUCqlFg/2HGIuH Fect8/cA0qmd61q9CeSUzLdj3aiajliCmVpZeFJDnVgFbM8C2B1n49NcbpRnmmEuYl0T xMjDLiCnYNlli1mnLn/mbwUMfioU9AWvIBUOHnVd28wss0fucLXctERv33Z9JALbVHfe 8mRTaE8+x548nM8JSZ+M6PQGxk3EFmBfR3F5GBB8eShnmnrZFx32xfFIjwtXiOwlSSz9 1dEH1BKeYgzUfpUKFRt+tdCzs2MYtumECWyfg6DgrQ+DN8ZkspYWkq0060Z2KQsEiNDs 2DVA== 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=5JZ6j7pYu0Wx/PJu3hozdlLGPftJkPZScKEEfc29Dvo=; b=p1OAp1Q+IYq4t+RXdb5OeuOvag0kMvr5JTRBZcGccKd6VlqQHQgW/m7J0pbKqv5G4/ k2QeiqfVwscKX1yqVbKFsWDIvJGE5k8wxlGk5ppsFdS5SsHX0z6V0+0vVNXTilz2KD/z dS8KAO11y42Zqfypez7a77VotrcUnxliE0MTUoNKUcypMIE2rA6OQNmY6E2QcnXVQYwR cZh36zJ0xzP2pkiY7pvGXZjUYVtE3VbATt9zvtfFMuKCYiLBacuXzuo0XGdq6SMbjgj9 bOWXzTWAqANtX6QKazpKvdp/XhjiAkUA4po+ywfHpFffAIolxUU22SFgd4KChqGYNLVn kiDg== X-Gm-Message-State: AOAM531mQd8wSwW0bLmQ1p53IFKKDboemrAqvflJTRP+ImjaSgDURjdm tvhXXCJjWSLM1ebFk3OmRG65If1vWRERgLqh1Y/Ga9us X-Received: by 2002:a67:e28a:: with SMTP id g10mr740508vsf.5.1634148284580; Wed, 13 Oct 2021 11:04:44 -0700 (PDT) MIME-Version: 1.0 References: <20211013172042.10884-1-semen.protsenko@linaro.org> In-Reply-To: <20211013172042.10884-1-semen.protsenko@linaro.org> From: Fabio Estevam Date: Wed, 13 Oct 2021 15:04:33 -0300 Message-ID: Subject: Re: [PATCH v6] clk: Add write operation for clk_parent debugfs node To: Sam Protsenko Cc: Michael Turquette , Stephen Boyd , Russell King , Chanwoo Choi , Sylwester Nawrocki , Krzysztof Kozlowski , Mike Tipton , Andy Shevchenko , Andy Shevchenko , Geert Uytterhoeven , linux-clk , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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