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 D2DD9C433EF for ; Fri, 10 Dec 2021 01:17:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235217AbhLJBU4 (ORCPT ); Thu, 9 Dec 2021 20:20:56 -0500 Received: from sin.source.kernel.org ([145.40.73.55]:48896 "EHLO sin.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233408AbhLJBUz (ORCPT ); Thu, 9 Dec 2021 20:20:55 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 98669CE25DC; Fri, 10 Dec 2021 01:17:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3E13C004DD; Fri, 10 Dec 2021 01:17:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1639099037; bh=P8EOenvo2nuHAw+DOVUAUoRUdPP2urCA48hW4wDJXMU=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=Ai8m6YPTKgbiMPzkMK6O/mM4hR2fny15R2zbsDzGDtPCHmVMm9lUJ0lkD5sF75MQh dgTinYPydcUw8NpVO7UrmZ09XgfaFt6B1O947i5kYzDuFHunM/aTxl7X/91mHyTS+w PvZOzDC6G3LucexgzKcYNxqrJ3uSntgOCWNto0da0ZZavQuT9JUMfcfW8OYX+RPUPj 5nR3bq/Shf/OV9Mg4aZDW8YIW8DtqHFnvVKhW27AiCc/G8WkxqMUF7a0zStDddjlck Y9m3M78L9aNerEiIhIfeTzbeGwUBvuyk/x7bLqI5ew2h6rtfPUaZM5NQr39f7o72Po fDNhPch8AK/nw== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20211013172042.10884-1-semen.protsenko@linaro.org> References: <20211013172042.10884-1-semen.protsenko@linaro.org> Subject: Re: [PATCH v6] clk: Add write operation for clk_parent debugfs node From: Stephen Boyd Cc: Chanwoo Choi , Sylwester Nawrocki , Krzysztof Kozlowski , Mike Tipton , Andy Shevchenko , Andy Shevchenko , Geert Uytterhoeven , Fabio Estevam , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org To: Michael Turquette , Russell King , Sam Protsenko Date: Thu, 09 Dec 2021 17:17:16 -0800 User-Agent: alot/0.9.1 Message-Id: <20211210011717.B3E13C004DD@smtp.kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Sam Protsenko (2021-10-13 10:20:42) > Useful for testing mux clocks. One can write the index of the parent to > be set into clk_parent node, starting from 0. Example >=20 > # 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 >=20 > CLOCK_ALLOW_WRITE_DEBUGFS has to be defined in drivers/clk/clk.c in > order to use this feature. >=20 > Signed-off-by: Sam Protsenko > Reviewed-by: Andy Shevchenko > Reviewed-by: Geert Uytterhoeven > --- Applied to clk-next