From patchwork Mon Jul 22 09:50:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 11052001 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 125BD912 for ; Mon, 22 Jul 2019 09:51:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F366F28421 for ; Mon, 22 Jul 2019 09:51:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E50E528508; Mon, 22 Jul 2019 09:51:27 +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 1411428421 for ; Mon, 22 Jul 2019 09:51:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728021AbfGVJvZ (ORCPT ); Mon, 22 Jul 2019 05:51:25 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:35547 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729428AbfGVJvC (ORCPT ); Mon, 22 Jul 2019 05:51:02 -0400 Received: by mail-wr1-f67.google.com with SMTP id y4so38728823wrm.2 for ; Mon, 22 Jul 2019 02:51:01 -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=bWP5xS/4YYzdQVyLQ3+texqZ8kAemNHSwaQHX5jsQwQ=; b=nHHruWm11yckWxNykJfOsz9XcXvSNUyeaA7NSVCJWFqG9us6WcySaPabt7WprIsSUR wP9dWNuHAhwiU91FTYXvRMDCopEmn1534xz5aLuB7yd/AaZZUlse3dknne1Y++W7Q4iu hMDxPdDMlCisFkNrrgkVS9FdiwRBJ4ispJGxHc5GYJKotyiDkL3PF32gZ8OGntUkjZjx YN+yzZa/akUwMmGOtCPqBcQLNFeUW1hbFi4gwgFHns88vo1oQzKHvgL1iCvzuEaTBoIi kijywq1IvG3ywooo4YsmAt9jQi7ZRc+zqt1bAzCqxVAyr+uMSXlgZ6OVSDuZ9fsEX1DL qShA== 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=bWP5xS/4YYzdQVyLQ3+texqZ8kAemNHSwaQHX5jsQwQ=; b=hlNc5G1gK4k8yCor9TaY1ugOAZeQx322fm55LFSUwEz/0eD2XqeBjAjx3mwRGc8jjb OpNkmtzL1BwvZuE5UzzdxTVlxCheEeyv9cx6y4nQkLiiyay1SMPLnaPPhDr0bkpbZRGX ChtgD8LjcPTCdQCGAfRiLBY410WurEgm9IGIAhkwJJt+iaOEfSU8zX5hDAkiTfTu6gYZ SrGkZBIO4A5CWVlBS9zuNWg0XKlq4Lw78Fdr/FRUMLwNmjt8MJw950irRA8BdwKYfobS B+t+41hn7lhzFqPyv2pZWpyjk8ixPr4rcc+aCWzfPWu+oj0Hh008ya1qdD4wrcVBgcYx N7LA== X-Gm-Message-State: APjAAAVhHvOSrjvtGEf2CoZlikS8bDXJNmVbfKBrd1pViffxW77hJjdz y7OutOzUXTxIY8hnH5IiKteR1Q== X-Google-Smtp-Source: APXvYqy1nKso+GnHov2Vamg3HX7qKDmtTy9gNOQdWWtffkvp3JgGap0R3bk+1lQNEs186TKMf9sKBQ== X-Received: by 2002:adf:b64b:: with SMTP id i11mr73312101wre.205.1563789060893; Mon, 22 Jul 2019 02:51:00 -0700 (PDT) Received: from pop-os.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id o3sm31050738wrs.59.2019.07.22.02.50.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Jul 2019 02:51:00 -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 0/4] clk: meson: ao: use the new parent description method Date: Mon, 22 Jul 2019 11:50:49 +0200 Message-Id: <20190722095053.14104-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") 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(-)