From patchwork Fri Aug 31 14:07:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Phil Edworthy X-Patchwork-Id: 10583839 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 D6B1914E1 for ; Fri, 31 Aug 2018 14:10:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BD66B2BF61 for ; Fri, 31 Aug 2018 14:10:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B123A2BF87; Fri, 31 Aug 2018 14:10:40 +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,RCVD_IN_DNSWL_NONE 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 56C462BF79 for ; Fri, 31 Aug 2018 14:10:40 +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=PYRU3Pc30TF7yQ2R7b69Eqxya6JVpjPu9VMevdlx29A=; b=EO4 4QNaO/apQiax0GxigPkvnM0AMmUYY9hkUh2LBQLlW7caX/+2kn6J774gOiWrHonhuSBr9aHvnyijp zpdah8Kjqx5czIdp7/QCR6IYX+qopSCIkFXozAiXI+XY8Q+EtMQjJ2JQKV9dSctyfs7g4QtVMCOSx 8t30Oew64TM4D+HHq2pmad1uAvNU5ZgmWv+FRC1Zsv79rhp9mBQT0CtUwSIe0bISGeUzuEHa5Mldn w+CdCBv6X6wvydSmOXGkj1dVtBgCIFDpTj4ElasRSYDsG+oID0ZxWqhI8GvnxNrjSMLkpxGxtdcSe aK2Ws8zWRG/Dz8ZBY0Nrf7QB1ULQDhw==; 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 1fvk83-00042f-Tx; Fri, 31 Aug 2018 14:10:27 +0000 Received: from relmlor3.renesas.com ([210.160.252.173] helo=relmlie2.idc.renesas.com) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fvk5N-0002JA-SZ for linux-arm-kernel@lists.infradead.org; Fri, 31 Aug 2018 14:08:13 +0000 Received: from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151]) by relmlie2.idc.renesas.com with ESMTP; 31 Aug 2018 23:07:28 +0900 Received: from relmlii2.idc.renesas.com (relmlii2.idc.renesas.com [10.200.68.66]) by relmlir1.idc.renesas.com (Postfix) with ESMTP id 1719A78C7B; Fri, 31 Aug 2018 23:07:28 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.53,311,1531753200"; d="scan'208";a="291197088" Received: from unknown (HELO vbox.ree.adwin.renesas.com) ([10.226.37.67]) by relmlii2.idc.renesas.com with ESMTP; 31 Aug 2018 23:07:25 +0900 From: Phil Edworthy To: Andy Shevchenko , Michael Turquette , Stephen Boyd , Russell King Subject: [PATCH v5 0/2] clk: Add functions to get optional clocks Date: Fri, 31 Aug 2018 15:07:21 +0100 Message-Id: <1535724443-21150-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-20180831_070742_059454_B654F063 X-CRM114-Status: UNSURE ( 9.21 ) 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 , 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 bus 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 | 74 ++++++++++++++++++++++++++++++++++++++---------- include/linux/clk.h | 35 +++++++++++++++++++++++ 3 files changed, 110 insertions(+), 17 deletions(-) Reviewed-by: Andy Shevchenko