From patchwork Tue Jul 31 12:10:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Phil Edworthy X-Patchwork-Id: 10550701 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 DD76D1708 for ; Tue, 31 Jul 2018 12:11:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C238D2AC1C for ; Tue, 31 Jul 2018 12:11:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BFA2B2AC52; Tue, 31 Jul 2018 12:11:41 +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 1F5BD2AC51 for ; Tue, 31 Jul 2018 12:11:31 +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=fx6vd/QCakriM/AKFn2w8wlEtfP4FIQQM6M659D9nCk=; b=coO xrkgI7+5RxrNRyetC4jgqTzadDr9ty0O+GxT5GKtkpi4vp2Z+h/ufQr473RltdqUUG9dbxllQnvbn MYO2xPmzUDQ053AH3gIUVK8eAkCFjmqQlNUm5gYYJwYbN3HqhBzXPlBEvZVdghkKWpSzwXdcGO+MR t68KNYOe6s7wA60Rxqsh71rQKtVFUohm9jcbasB7IhvOA97JToos10Izmo8MYRXc1SjStEESih2c8 WAQ9J+hwlZs3SnOb0/QGQrsgNn6S5ig0Ls9JlUyKdSJe3kB9cBdbjYa7srTCkNVmT0sG580jcPx81 qlUMoBC9UeooBKIQU7JpvhQgVq9lz4g==; 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 1fkTUq-0005fu-BK; Tue, 31 Jul 2018 12:11:24 +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 1fkTUm-0005E3-Pj for linux-arm-kernel@lists.infradead.org; Tue, 31 Jul 2018 12:11:22 +0000 Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie3.idc.renesas.com with ESMTP; 31 Jul 2018 21:11:06 +0900 Received: from relmlii1.idc.renesas.com (relmlii1.idc.renesas.com [10.200.68.65]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id 4EFE0852F8; Tue, 31 Jul 2018 21:11:06 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.51,427,1526310000"; d="scan'208";a="286905146" Received: from unknown (HELO vbox.ree.adwin.renesas.com) ([10.226.37.67]) by relmlii1.idc.renesas.com with ESMTP; 31 Jul 2018 21:11:03 +0900 From: Phil Edworthy To: Michael Turquette , Stephen Boyd , Russell King Subject: [PATCH v4 0/2] clk: Add functions to get optional clocks Date: Tue, 31 Jul 2018 13:10:58 +0100 Message-Id: <1533039060-18779-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-20180731_051120_943362_07370311 X-CRM114-Status: UNSURE ( 6.03 ) 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 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 | 58 +++++++++++++++++++++++++++++++++++++++++++----- include/linux/clk.h | 35 +++++++++++++++++++++++++++++ 3 files changed, 104 insertions(+), 7 deletions(-) Reviewed-by: Andy Shevchenko