Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2706398imu; Mon, 19 Nov 2018 04:59:16 -0800 (PST) X-Google-Smtp-Source: AJdET5eKwoF6lnEJYiBYoZJJjXezqIemzBxmFnL7Na/ztEhuUh4UgvuXkO1aZEwkCRI7QK/mVBtu X-Received: by 2002:a63:c10f:: with SMTP id w15mr19836393pgf.199.1542632356064; Mon, 19 Nov 2018 04:59:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542632356; cv=none; d=google.com; s=arc-20160816; b=jlpqRoefUlDC1lREItryASVWq+evhnhLvmsTwhLUO8kG+lL95Ew+tR5b7gQ+Clos2B 38wuRtohFJmKBXXBOneCR1iI3snADRxw4z6L88QK5yOruaQJuv9vmWN3KY5RJlVMpc7L y0h5v3g3XRcPD0B9MmIwMf5Y8eXhsSNoJj6wNBzFHCQbsWw1P4nmpa4Nto/UDUinJ3/Y bDiQeCTyqYQqSUkKshxPcqKAlzue6dSqXoHZ1dpGXB5CcCVB9SspxfnmBf8+oNbY1fxU Qn5u8Ro8Uhv+3cmfBAuxYAhgADOcoLlftOyUTytq4BRWKR7hkaIivNHtqpYl5rOcZFzT Q6Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=QAqJNxkWI3ww4XqAyn7hGFTKHZWRGh+wqHV2spIQ2O0=; b=gjwuGAgnpDTKSctkiD1YiNTOJSEsdxkecv+nhZr9pbuCw70NP4hUF+qOFEFcLYUtoj z5t07Yee31s8YnjA+jwFRP83Iwdlz5bFDm7396eTR5NIaEJ/WCeNiub53EHmTxG72Zlh PnNp4wkuFxhcQv0p2pxWuwQmddffEp5NygLODFu9tw6WJb2qj5FsUtL/nQd87zOw55LP YBRZDhCvUnt5sOpPtbzAB+kKubSi7a+1bPW+mInNb+/4o8NpCpQUnMeEAf3IL3nRYhWX TSVSq49VPzb+Jor9vj6YRt0MwSbCb0YaFeXpKdwSNam0h4o7jo6r28sPasy3KZD4ZIHU rAqg== 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 n10-v6si27064936plk.255.2018.11.19.04.59.00; Mon, 19 Nov 2018 04:59:16 -0800 (PST) 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 S1728956AbeKSXVy (ORCPT + 99 others); Mon, 19 Nov 2018 18:21:54 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:46787 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728724AbeKSXVy (ORCPT ); Mon, 19 Nov 2018 18:21:54 -0500 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gOj80-000520-9y; Mon, 19 Nov 2018 13:58:12 +0100 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1gOj7z-0005mK-6o; Mon, 19 Nov 2018 13:58:11 +0100 Date: Mon, 19 Nov 2018 13:58:11 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Phil Edworthy Cc: Stephen Boyd , Michael Turquette , Andy Shevchenko , Russell King , "linux-clk@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-renesas-soc@vger.kernel.org" , Geert Uytterhoeven , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH v6 1/6] clk: Add of_clk_get_by_name_optional() function Message-ID: <20181119125811.6bujcow5wf4hvfz4@pengutronix.de> References: <20181116145937.27660-1-phil.edworthy@renesas.com> <20181116145937.27660-2-phil.edworthy@renesas.com> <20181116160128.pkuya6rwqm4schdn@pengutronix.de> <20181116161122.hhvslbzdujxpk3up@pengutronix.de> <20181119104603.qzuvpoha622l4xvy@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Phil, On Mon, Nov 19, 2018 at 12:53:46PM +0000, Phil Edworthy wrote: > On 19 November 2018 10:46 Uwe Kleine-K?nig wrote: > > On Mon, Nov 19, 2018 at 10:41:42AM +0000, Phil Edworthy wrote: > > > btw, do we need to add of_clk_get_by_name_optional()? I only added it > > > as a counterpart to of_clk_get_by_name(), but it may not be needed. > > > > I don't need it. Given that it is easy to add when someone has a need, I'd say, > > skip it for now. > > I'm wondering if we actually need clk_get_optional(). For me at least, I just > want devm_clk_get_optional(). That would get rid of the arch patches. Given that clk_get_optional will be that simple, it can live in linux/clk.h for all implementors of the clk API, then you don't have to care about different archs. (Unless I'm missing something.) I don't think it's a good idea to drop clk_get_optional even if you'd have to provide arch-specific stuff. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |