Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp5572320ima; Tue, 5 Feb 2019 14:13:55 -0800 (PST) X-Google-Smtp-Source: AHgI3Ia4K8Mccz7xMtv+oC3jPQXtWoba1n+CCGhI7Ooq3GkfF2oyHc6B3IS/liDUYax8rgmqkJYB X-Received: by 2002:a63:fa48:: with SMTP id g8mr6601328pgk.203.1549404835595; Tue, 05 Feb 2019 14:13:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549404835; cv=none; d=google.com; s=arc-20160816; b=AZeCuwRH1yNL4xAJMv7AjDNx46aRgjXYwZcue1EXi0Sd+S1xQ6kGy34QbEU73y1T1E mC5s5cLSiSBE5W8bVruiRRHCpVG/X2RZGH7wxrsW2/B12roOBmO+LYwT4AXF+GaGHDDI W47BWVrOfAIyh5s4rim0BIr2Kq8x0NoUHZE9F9R0Cd/vVjC21z2h5bKa8h9dr+piDbxi v5mJrgZUlN7EyiZGwOoHdDUOTBSntz57POdbxaHLhyeDYN1DdDReMCDKKRVM/oZtmuxA mQUvEAzArJhI5iwmpzmTvu8w6N7aGQME2YBRWtgKC+vNpXoGprUPqb2arEpNFEiQgLHm Ud1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:in-reply-to:to:user-agent:references :cc:message-id:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=Wcnb7CU+ifDiSp7QZD1Km/63dKM0iadA/bsKsZjfdiE=; b=BIAcOrILx2eYwHg9YyhKytvjGZKJgauFTZMoLoTJx981wG2n++o/UQU0EVryzW1FFz FSPAuZLjvtqYEAWZMpbyNhk6sQKMQdSMzaOM3GRVv9o7AdqwtR7bYaVBkrjAk/PPkBbV btjvLVtY+pUrKLCAUDXNN6HLxpuqGajD0fC6Ykife4Bq/2yRD+LsKjZ+Muw2hLm6aYQw 3MckAUfT17kjT1o+i4YvSAQ2aquXeH9/A2vVXeruGaEB4XI2ma1JyPVjE6aBABQuGt6u p21Gvr9zJoPmaq1pYcRSctKXYj1yh3uJBwo8TPJoOVqKl4qkl2kk0L0kY8srHie+dGr0 s8Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=F72Gfywq; 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 j70si3976795pgd.138.2019.02.05.14.13.40; Tue, 05 Feb 2019 14:13:55 -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=F72Gfywq; 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 S1729829AbfBEWGE (ORCPT + 99 others); Tue, 5 Feb 2019 17:06:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:54118 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726114AbfBEWGE (ORCPT ); Tue, 5 Feb 2019 17:06:04 -0500 Received: from localhost (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 41F5C20823; Tue, 5 Feb 2019 22:06:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549404363; bh=w81ITJMN8u+b48e9VWxQXXngvjnJaSMFPdzCoNer34w=; h=Subject:From:Cc:References:To:In-Reply-To:Date:From; b=F72GfywqCJD21WGno8EeI3vBg+Rz30zNXog6KIi0uqqzqx3HwTlZF5Be2sI+dfKTx DnQKrYxE/RkB8zhWjORYQ0fdo2ANlKL40tT8kmiV0B0hX9rp5Dtd84ZeBgaDcAURSk GfsyDwbEncaKGg2/0gbKWW7ukCw2SWnHoby/ZJ1Y= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH v1 3/4] clk: qcom: Add MSM8998 Multimedia Clock Controller (MMCC) driver From: Stephen Boyd Message-ID: <154940436246.169292.7591382350282828249@swboyd.mtv.corp.google.com> Cc: marc.w.gonzalez@free.fr, andy.gross@linaro.org, david.brown@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Jeffrey Hugo References: <1548866102-30224-1-git-send-email-jhugo@codeaurora.org> <1548866171-30341-1-git-send-email-jhugo@codeaurora.org> User-Agent: alot/0.8 To: Jeffrey Hugo , bjorn.andersson@linaro.org, mturquette@baylibre.com In-Reply-To: <1548866171-30341-1-git-send-email-jhugo@codeaurora.org> Date: Tue, 05 Feb 2019 14:06:02 -0800 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Jeffrey Hugo (2019-01-30 08:36:11) [..] > +}; > +MODULE_DEVICE_TABLE(of, mmcc_msm8998_match_table); > + > +static int mmcc_msm8998_probe(struct platform_device *pdev) > +{ > + struct device *dev =3D &pdev->dev; > + int i, ret; > + struct regmap *regmap; > + struct clk *c; > + > + c =3D devm_clk_get(dev, "xo"); > + if (!IS_ERR(c)) > + dummy_xo_init.parent_names =3D > + (const char *[]){__clk_get_name(c= )}; > + else > + return PTR_ERR(c); > + > + c =3D devm_clk_get(dev, "gpll0"); > + if (!IS_ERR(c)) > + dummy_gpll0_init.parent_names =3D > + (const char *[]){__clk_get_name(c= )}; > + else > + return PTR_ERR(c); Urgh, my parent mapping series can't come be merged fast enough it seems! > + > + regmap =3D qcom_cc_map(pdev, &mmcc_msm8998_desc); > + if (IS_ERR(regmap)) > + return PTR_ERR(regmap); > + > + for (i =3D 0; i < ARRAY_SIZE(mmcc_msm8998_hws); i++) { > + ret =3D devm_clk_hw_register(dev, mmcc_msm8998_hws[i]); I think we should make this common to the qcom_cc_desc now. Can you throw in an optional list of clk_hw pointers that also get registered as its own patch and update the existing drivers that are all doing this? > + if (ret) > + return ret; > + } > + > + return qcom_cc_really_probe(pdev, &mmcc_msm8998_desc, regmap); > +}