From patchwork Mon Jul 30 08:36:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Phil Edworthy X-Patchwork-Id: 10548751 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 906B513BB for ; Mon, 30 Jul 2018 08:36:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 820AF29979 for ; Mon, 30 Jul 2018 08:36:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 75B60299A8; Mon, 30 Jul 2018 08:36:38 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2E32729979 for ; Mon, 30 Jul 2018 08:36:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=iwfkNxdpknr1J3YJNEgTg0MixTPwHUrjRiMq97bJz7w=; b=Q62 9I9P/et7iteeegw0kOqK4ZnGbMl8IflHwezeXtzPsW0a3S974JmgxLPce4dHu4tC4hgLJVqY560lY jz/Sf3abemXgqJuMM87yWdSxJUsgExnutMJkDoZPWfDD6XBqccOWtYON/W3CfwSDIcG37FaXhZA3q IWGWb3u0hfARLRZQQkZRBwH/b/c3QuMhQmLvXRf1fytDZHEiJhPZvIyTJqbyDabPTrjSQ+SLpLEET SeU3TdF30JwAjjVOCqJohubOLuiB+KML5/9e2Ho3my2hcvTSmd+bhP9OZF0rHk0xNsGMjXj6xQVBT gdfk/vWLDW4EHHgRebnTubG3v2IJafA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk3fN-0001HZ-Jl; Mon, 30 Jul 2018 08:36:33 +0000 Received: from relmlor4.renesas.com ([210.160.252.174] helo=relmlie3.idc.renesas.com) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk3fK-0001GQ-AO for linux-arm-kernel@lists.infradead.org; Mon, 30 Jul 2018 08:36:32 +0000 Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie3.idc.renesas.com with ESMTP; 30 Jul 2018 17:36:16 +0900 Received: from relmlii2.idc.renesas.com (relmlii2.idc.renesas.com [10.200.68.66]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id B06D284612; Mon, 30 Jul 2018 17:36:16 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.51,422,1526310000"; d="scan'208";a="288300604" Received: from unknown (HELO vbox.ree.adwin.renesas.com) ([10.226.37.67]) by relmlii2.idc.renesas.com with ESMTP; 30 Jul 2018 17:36:13 +0900 From: Phil Edworthy To: Michael Turquette , Stephen Boyd , Russell King Subject: [PATCH v2 0/2] Add functions to get optional clocks Date: Mon, 30 Jul 2018 09:36:06 +0100 Message-Id: <1532939768-7018-1-git-send-email-phil.edworthy@renesas.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180730_013631_355079_DA20E1A6 X-CRM114-Status: UNSURE ( 8.36 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Phil Edworthy , linux-kernel@vger.kernel.org, Simon Horman , Geert Uytterhoeven , Andy Shevchenko , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Quite a few drivers get an optional clock, e.g. a clock required to access peripheral's registers that is always enabled on some devices. Phil Edworthy (2): clk: Add of_clk_get_by_name_optional() function clk: Add functions to get optional clocks drivers/clk/clk-devres.c | 18 ++++++++++++++++-- drivers/clk/clkdev.c | 49 +++++++++++++++++++++++++++++++++++++++++++----- include/linux/clk.h | 30 +++++++++++++++++++++++++++++ 3 files changed, 90 insertions(+), 7 deletions(-)