Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp465541pxb; Tue, 19 Oct 2021 06:35:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPLI9YqlOPzg6p4AuqSzN0RNxAALcft5p7RYEoe1GqPX236BYO0yprullGJg+QI2wP/Aha X-Received: by 2002:a05:6a00:1ad4:b0:44d:9ab:c129 with SMTP id f20-20020a056a001ad400b0044d09abc129mr35970363pfv.14.1634650551241; Tue, 19 Oct 2021 06:35:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634650551; cv=none; d=google.com; s=arc-20160816; b=lCtfcUOyoLwxUr1mQESlJoOhNKxr2CeEd82Dt2UUQZV9o3LcHjpY6w9+A5pWdciWC5 OVNkSIIn1uyXiqwapQMxNWIM2uvBnJoKRtm1nBTXTSPqKjJUQb4admEr1GgcdZ4M7Mas v2TxN8yNRjDiZB/r4p81ZWlXKNX5Y1P4gwX63pGEqGdI5M7G2fdJYLJg9vHRvs6VeT31 nPK6NINimfHAL+3aHE7fa0S5imfc3H69BqlC2Xg6OOcnidutUsLugdygIGlQ2h2Q8LTm cxOZRSyd5yqwmGVA5G+1T1ZhqeI3UJGHS3k5DK11S47T+HBMA8VuD5eEMLeMRhL0oWrP pdng== 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=8VTzO2VtQyI7pa9ECzIuQcqfVd9XYwvhSUdsnki7qKo=; b=tEwIUYWoXHcPP/qx9sWXtrHwBllIf+mQ2BO1YRH8YNzRVM0XkMphnNz/0SZCvBEGfP FMpkuKO6xobkTemmB1LORak8vi3U9jhtfK/TehkWbzRQxEoijxyeSmsXNKKGnA9O+tPQ +uEYzlvBlEDc5mmu9pvYERavkfoVY4V0mxNlqqMrfdwpTMbPtCzXscM7vyH3DnFapO7f HYmL8BE9mmJbTVrXtMD+zfKenOKLKR9hP/Sxfp01W044uwUXfd8lgUB1dVs74ZZwjspS SweCjWP3Ds+9DD3DohbxgxILt7PCO6+po75Go4PJn+/+kWG4TJStccyOleFnwlxXz9Ge VA3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gZJGzhC7; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v7si19972424plp.330.2021.10.19.06.35.38; Tue, 19 Oct 2021 06:35:51 -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=@linaro.org header.s=google header.b=gZJGzhC7; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235894AbhJSNel (ORCPT + 99 others); Tue, 19 Oct 2021 09:34:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235741AbhJSNei (ORCPT ); Tue, 19 Oct 2021 09:34:38 -0400 Received: from mail-vk1-xa2f.google.com (mail-vk1-xa2f.google.com [IPv6:2607:f8b0:4864:20::a2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0555C06161C for ; Tue, 19 Oct 2021 06:32:23 -0700 (PDT) Received: by mail-vk1-xa2f.google.com with SMTP id n201so10308572vkn.12 for ; Tue, 19 Oct 2021 06:32:23 -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=8VTzO2VtQyI7pa9ECzIuQcqfVd9XYwvhSUdsnki7qKo=; b=gZJGzhC73ekiMSFsm5NIbAOtA95yvj+swmFDW6M2YYj/wxCed6cORyTNTGha9LMEDe 6w4cZxFX3fOTYL2GqgHYEjCCD8umZ7gaJ6Q1qpIE6ZU9BWiq45YZRJrIhl/oFaQYvNHy s5JPzUPAxIplPZgpKEPgvB1hvTEO57b8WaOhqm3LLlbFlNMrilKaDqdl+T7vsqn+Kl52 x4dL1au5eXgs4sLlu3s/2Ngpk5kwnsxkOLjNOmn4GlVaEYY7eCZ52tjAaUJFHjU6yiMK x8mK/xoeJdhAtjzNxT+aOD5DC8aX1ySNPMYisUntkO3tK8flRWrHzjX9yUpQ2Ih7GYG2 Xsrw== 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=8VTzO2VtQyI7pa9ECzIuQcqfVd9XYwvhSUdsnki7qKo=; b=48NiB2bf3AGAFvrP8k45jhKKq6GKX31kyYYewe+WrJYg1XPlV5lwZWgDwwT1lRo9lE 4m82VGKfAL/ClK0sF5zWARVIxbZ4fL5QJFKyvyZMbMIpC/Y7LzI/Z8H6dkEKB38Oc4Xx SxvXr2SU+e8+Tr/+XZZA7/Xi5JBShpA0UCXimNgK2lTb6iHWRkwLgZdTk3m7movjadtS QABuyQRHGysV2O/hINhv0PHwjLv+Se3EoqT6PkrMyrCrYnH9BxFQqOU3wPcKbcFpO9hK SB+JZSoVirxGqx/HMJgy1dEAGlzzzMSfX+AXBLkZAHAaK7rK0M5QjkAl5IRrq60mWqEO NNXA== X-Gm-Message-State: AOAM530r1tdsiJIIfThiMbUb/umR15/ItvX14fOlNj6FQPBOuj5o12qY vKubMkANM+/9mShNZR6+9yce418xoEcTUcZONmXgyA== X-Received: by 2002:a05:6122:da0:: with SMTP id bc32mr32144871vkb.4.1634650342790; Tue, 19 Oct 2021 06:32:22 -0700 (PDT) MIME-Version: 1.0 References: <20211013172042.10884-1-semen.protsenko@linaro.org> In-Reply-To: From: Sam Protsenko Date: Tue, 19 Oct 2021 16:32:11 +0300 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 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? Thanks!