Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1523161ybx; Thu, 7 Nov 2019 13:07:15 -0800 (PST) X-Google-Smtp-Source: APXvYqw1Kg3BxpWFWAC9Oq4WbnqAF3NXlpyRmdnNx+aFjpqrhF4r9ZTMGev4fEWL7yIG7c4R21e1 X-Received: by 2002:a17:906:4bd4:: with SMTP id x20mr5304535ejv.200.1573160835006; Thu, 07 Nov 2019 13:07:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573160834; cv=none; d=google.com; s=arc-20160816; b=zPtkgtDcUIeMsk2F7hOFOyV6UwaGiTTRU0VJlLijRMKe+uv8hT9Rp9WXbV6yMVsrBD 2vZKchW0Qw6tGNCYAJPygQMzO4x9RCM86pULlW/IQKVpgDMEecuNCdvFq8ByQoksRWd1 fjIiz30gwu6SJcuX3vGnv0GMxdpMzDUVsrAqyR4tHG7myBdWsyXzTssr/hqZtya2s2Ze gZTgUiJOWsF6eSpYtNLZu1jBOpGz8nyGRYCPCT8RXl1kYasVZHor/OfHZrUg9Gg5ALxL NsTi01kXeaGyIEIT5PdKHReDZl3XgBDB8+s05wNhYxOAgC710ZzuDnVPRfEewJHs4S44 TD5g== 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:user-agent:subject:cc:to :from:references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=2FHQdSSPEz5qpv7cwu3J4Rnf5aHH1Cb3vjHNy3zolo0=; b=t+OA+1QGZ5EHQqmHYHd2yAN7SRfnY2MRGFk33N9RqK2v8JMzK7YklVJofgOUfSi1aS vBZPwuPlt3HUeokfwMeLeTBP2O+6bAg1j0B//I6rH4w/pEAMJZvTCR7uHzU5o4hP0wqO MHhfniM2a5/nkUJivJI3+pfUtYZXF9vlvfSWbUWbM6p3jpu/zIwSj839T6lLRdt77EyC 7XvXLsHIQtJ49HUENm/I+uw0lHfOyTAca30ySffVGPWug3CDIBpZ/gL631PM3PFTxOza Krkm9xFPj/JXec55U/h3sxQ69H21Z4pzfy9qEXKOdIMmMMfwFcS0iPhc48iTordsnUG2 aSvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jIKB5C2x; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x50si2671791eda.155.2019.11.07.13.06.49; Thu, 07 Nov 2019 13:07:14 -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; dkim=pass header.i=@kernel.org header.s=default header.b=jIKB5C2x; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726943AbfKGVGI (ORCPT + 99 others); Thu, 7 Nov 2019 16:06:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:43832 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725870AbfKGVGI (ORCPT ); Thu, 7 Nov 2019 16:06:08 -0500 Received: from kernel.org (unknown [104.132.0.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E536F21D79; Thu, 7 Nov 2019 21:06:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573160767; bh=P+gx8Y/MLONswYmjEe2LF/E5o+K8Co2kGUVThgIx6LM=; h=In-Reply-To:References:From:To:Cc:Subject:Date:From; b=jIKB5C2x+SJZOlNufX08NfzFtDu9aVv23suQ4ls9Rloi1ALvkEhRVGcYNncwfIycj jFg0hk8QdtOYiTIg92DIRf4FzqaB8ZyIk0vliOFuHOiMLpglU1rB6m81J/ce9FYDfd zNcCVL4thHL7MIMliT6h24Gj8v9uPLz8XKLnu/bo= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20191031174149.GD27773@google.com> References: <20191014102308.27441-1-tdas@codeaurora.org> <20191014102308.27441-6-tdas@codeaurora.org> <20191029175941.GA27773@google.com> <20191031174149.GD27773@google.com> From: Stephen Boyd To: Matthias Kaehlcke , Taniya Das Cc: Michael Turquette , David Brown , Rajendra Nayak , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh@kernel.org, robh+dt@kernel.org, Jordan Crouse , Jeykumar Sankaran , Sean Paul , Rob Clark Subject: Re: [PATCH v4 5/5] clk: qcom: Add Global Clock controller (GCC) driver for SC7180 User-Agent: alot/0.8.1 Date: Thu, 07 Nov 2019 13:06:06 -0800 Message-Id: <20191107210606.E536F21D79@mail.kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Matthias Kaehlcke (2019-10-31 10:41:49) > Hi Taniya, >=20 > On Thu, Oct 31, 2019 at 04:59:26PM +0530, Taniya Das wrote: > > Hi Matthias, > >=20 > > Thanks for your comments. > >=20 > > On 10/29/2019 11:29 PM, Matthias Kaehlcke wrote: > > > Hi Taniya, > > >=20 > > > On Mon, Oct 14, 2019 at 03:53:08PM +0530, Taniya Das wrote: > > > > Add support for the global clock controller found on SC7180 > > > > based devices. This should allow most non-multimedia device > > > > drivers to probe and control their clocks. > > > >=20 > > > > Signed-off-by: Taniya Das > >=20 > > >=20 > > > v3 also had > > >=20 > > > + [GCC_DISP_AHB_CLK] =3D &gcc_disp_ahb_clk.clkr, > > >=20 > > > Removing it makes the dpu_mdss driver unhappy: > > >=20 > > > [ 2.999855] dpu_mdss_enable+0x2c/0x58->msm_dss_enable_clk: 'iface'= is not available > > >=20 > > > because: > > >=20 > > > mdss: mdss@ae00000 { > > > ... > > >=20 > > > =3D> clocks =3D <&gcc GCC_DISP_AHB_CLK>, > > > <&gcc GCC_DISP_HF_AXI_CLK>, > > > <&dispcc DISP_CC_MDSS_MDP_CLK>; > > > clock-names =3D "iface", "gcc_bus", "core"; > > > }; > > >=20 > >=20 > > The basic idea as you mentioned below was to move the CRITICAL clocks to > > probe. The clock provider to return NULL in case the clocks are not > > registered. > > This was discussed with Stephen on v3. Thus I submitted the below patch. > > clk: qcom: common: Return NULL from clk_hw OF provider. >=20 > I see. My assumption was that the entire clock hierarchy should be regist= ered, > but Stephen almost certainly knows better :) >=20 > > Yes it would throw these warnings, but no functional issue is observed = from > > display. I have tested it on the cheza board. >=20 > The driver considers it an error (uses DEV_ERR to log the message) and do= esn't > handle other clocks when one is found missing. I'm not really famililar w= ith > the dpu_mdss driver, but I imagine this can have some side effects. Added= some > of the authors/contributors to cc. NULL is a valid clk pointer returned by clk_get(). What is the display driver doing that makes it consider NULL an error?