Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3965005imm; Mon, 30 Jul 2018 06:33:05 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc8H+3uBPkrF2Un5lGVHeiMBcgiQzxhVv2A7ue62sWwTjyswFKzE3d24Ygpe3csCm6K1+On X-Received: by 2002:a62:43c8:: with SMTP id l69-v6mr18167818pfi.196.1532957585248; Mon, 30 Jul 2018 06:33:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532957585; cv=none; d=google.com; s=arc-20160816; b=e4FLoapdDG2/45320yN45NQmDfPm7U5esJbToBiRJsKN4LYDQQBxX9ko/QF9n7hTLc NlKxrRET4SZivHqlYARF880l/6gy96AMiG95zwvwj2THQxlNmObqbz8GwCexreZbF0rG WBX70yqhS/2uFURq9Wviu908Xx4WTDVGDRo2KTYC+4cOMePDgpS4ipIVUpg5V1hs2vP9 B/KNpqGOLLNUFzYSIKy2Fyh+2QEFtpoFJDgFsHDxtrfI++pR7emAZVFmUzEXnTwF9P8p Gl4XukURGJac0wpuaGkVQCA0Qx66SrkyDadYr1E1dm+9L/vlp1Fzzt6EogF5WQIbOcrh B9bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=dDdADFlhP5TYzUJbM0FVQIHaBpLFtyzbbQ8N39aH2Uo=; b=DCMIZTxy8PIuORcCgIeN2KGnS+doWcodQP+BlTrEAVcvjs73kAsKkOwlLlVGuhL/1o NAmI1goh3dVE2MntCDIKVFH+rxg2G4oTj41uLrxRuo/zQgDUVT0p/11lH6HLY6T5U8FL WxyMJs7pDTqkUKk2RfcFhFTTyh0DeDt4Xr0HxQ0ZCt9hjua3xjRqOU0xalA6qhEu+Zy5 rI+YrrZBxuGfWZRBT98MXvsDc/IpmSxYTicryE5kyhOriML6IkhEXRBPkRy/kR3U4Ek0 uD1du+SvJFJV6t/BlQQWZqi2vqiyK0ZNbY7DsuFw8ag4CuzUNq5lVm1kU+cly9VaTRge 6Kyg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t8-v6si10342949pgl.620.2018.07.30.06.32.50; Mon, 30 Jul 2018 06:33:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731576AbeG3PG5 (ORCPT + 99 others); Mon, 30 Jul 2018 11:06:57 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:34099 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730125AbeG3PG5 (ORCPT ); Mon, 30 Jul 2018 11:06:57 -0400 Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie3.idc.renesas.com with ESMTP; 30 Jul 2018 22:31:55 +0900 Received: from relmlii2.idc.renesas.com (relmlii2.idc.renesas.com [10.200.68.66]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id 202FB7CC33; Mon, 30 Jul 2018 22:31:55 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.51,422,1526310000"; d="scan'208";a="288321360" Received: from unknown (HELO vbox.ree.adwin.renesas.com) ([10.226.37.67]) by relmlii2.idc.renesas.com with ESMTP; 30 Jul 2018 22:31:52 +0900 From: Phil Edworthy To: Michael Turquette , Stephen Boyd , Russell King Cc: Geert Uytterhoeven , Simon Horman , Andy Shevchenko , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Phil Edworthy Subject: [PATCH v3 0/2] clk: Add functions to get optional clocks Date: Mon, 30 Jul 2018 14:31:47 +0100 Message-Id: <1532957509-14541-1-git-send-email-phil.edworthy@renesas.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 | 51 +++++++++++++++++++++++++++++++++++++++++++----- include/linux/clk.h | 35 +++++++++++++++++++++++++++++++++ 3 files changed, 97 insertions(+), 7 deletions(-) -- 2.7.4