From patchwork Thu Jul 25 16:41:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 11059241 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1BA5E138D for ; Thu, 25 Jul 2019 16:41:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C2A7289BA for ; Thu, 25 Jul 2019 16:41:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0057E289BF; Thu, 25 Jul 2019 16:41:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1082B289BA for ; Thu, 25 Jul 2019 16:41:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389465AbfGYQlq (ORCPT ); Thu, 25 Jul 2019 12:41:46 -0400 Received: from mail-wr1-f48.google.com ([209.85.221.48]:37747 "EHLO mail-wr1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388123AbfGYQlq (ORCPT ); Thu, 25 Jul 2019 12:41:46 -0400 Received: by mail-wr1-f48.google.com with SMTP id n9so26411607wrr.4 for ; Thu, 25 Jul 2019 09:41:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=k3owj89F9XfdBkrf47dCANR14zVA50NeVSBAUPPeOPs=; b=umW0sPsijyVEs9DewxFfVmBnd2sgqpy2A5TDYly45YOZVg+e6lcZGkAsggcArbEi1o he4Cg9YBfldmG3hxvat9Naz2uLBE/pRRenuCA6Kddum/X3DPqXkdn999wFqDb0gQ8mnN 1nQQ12cfttNg0NMX4LGYQ3ejD4bJj67nWPOE9qXxn9eF5otUBqDmqJCFRCxrHQWl7Ufw xkRiVOQGhCkI0hiOWyMYBbxltt2IuBW1XihVA42EoN0IcVTYgBAo9qoOydRjP3QvUT9E p8mGmfrJ931/M+hbgxFfqwEdwflDVYx7cH1S9yqiydezGJxgIv7bLVg961Cd+y8BySES k3pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=k3owj89F9XfdBkrf47dCANR14zVA50NeVSBAUPPeOPs=; b=VvznnrnKIG51OkzW2jYnE+DBft5Yp6b0niYmp9+wdMsqCMeTn61LXHm1Tw6+hXAXCG gDFYllzoDXHNakSEM7u0SrP9+NihHDjiRLusIsJNeIRubQ53AuQddsL4kjVizYfkX4BN UHtqywzca60DGkJeOnvARo3aTxlnO50+pbd7cX7agxzqtQayIV68wIvHB1aWaAbDhZ3H pWyvJz6jDMsCaYR6DHJUhXK26xmxv7Fn3SDYzKILQ07h36p4xAkIhLH+gL8je2BebHvq Kf8Fc+GpgAz6VZfU2RWXzy88IrvSzpSP6Qzyw9kZsupurGFDPx6tZxhLRaIT4K3Pd+Dn OgMg== X-Gm-Message-State: APjAAAUNY11sRd/1jFyAoVFMaIQH4R3aURempQXDfR7ed7CBqrw8PSRz 4kzu+2S/AoXWxl1IxfsVQjrBXA== X-Google-Smtp-Source: APXvYqz7o0o69gasiQIG+rfUkpDkVoXb5hycjwGXWhYjF6LgNk/JI9765FCz1bEwLJOV1/QXnPsxmQ== X-Received: by 2002:a5d:5448:: with SMTP id w8mr95321121wrv.180.1564072904380; Thu, 25 Jul 2019 09:41:44 -0700 (PDT) Received: from pop-os.baylibre.local ([2a01:e35:8ad2:2cb0:2dbb:fac9:5ec0:e3ef]) by smtp.googlemail.com with ESMTPSA id y16sm102488858wrg.85.2019.07.25.09.41.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jul 2019 09:41:43 -0700 (PDT) From: Alexandre Mergnat To: jbrunet@baylibre.com Cc: khilman@baylibre.com, sboyd@kernel.org, narmstrong@baylibre.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, baylibre-upstreaming@groups.io, Alexandre Mergnat Subject: [PATCH v2 0/4] clk: meson: ao: use the new parent description method Date: Thu, 25 Jul 2019 18:41:22 +0200 Message-Id: <20190725164126.27919-1-amergnat@baylibre.com> X-Mailer: git-send-email 2.17.1 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Meson SoCs clock controllers use the string comparison method to describe parent relation between the clocks, which is not optimized. Its also use bypass clock made from device-tree clock to provide an input clock which can be access through global name, but it still not optimal. A recent patch [0] allows parents to be directly specified with device-tree clock name or without string names from localy declared clocks. This patchset replaces clock string names by clock pointers (as possible), removes bypass clocks and uses directly device-tree clock names in parent assignment. Tested on GXL, GXBB, Meson8b, AXG SoCs by comparing the clock summary (orphan too) before and after migration. [0] commit fc0c209c147f ("clk: Allow parents to be specified without string names") Change since v1: - Improve clock parent assignment for "fixme" using name instead of fw_name. Alexandre Mergnat (4): clk: meson: g12a-aoclk: migrate to the new parent description method clk: meson: gxbb-aoclk: migrate to the new parent description method clk: meson: axg-aoclk: migrate to the new parent description method clk: meson: remove ao input bypass clocks drivers/clk/meson/Kconfig | 1 - drivers/clk/meson/axg-aoclk.c | 63 ++++++++++++++----------- drivers/clk/meson/g12a-aoclk.c | 81 ++++++++++++++++++++------------- drivers/clk/meson/gxbb-aoclk.c | 55 +++++++++++----------- drivers/clk/meson/meson-aoclk.c | 37 --------------- drivers/clk/meson/meson-aoclk.h | 8 ---- 6 files changed, 114 insertions(+), 131 deletions(-)