Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6319979yba; Wed, 1 May 2019 09:56:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqzoZI6BA/+GHE/A11BbdrGfO9cb5NlqEW7x5bmr1jfunI6QkXsBiK+qFtJFaoo4V1HYJkHy X-Received: by 2002:a63:4006:: with SMTP id n6mr1839519pga.424.1556729808642; Wed, 01 May 2019 09:56:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556729808; cv=none; d=google.com; s=arc-20160816; b=oUyaGrzjRJCc6Yi3FQRxMXuJqaUwrR2/Fo4OpbrFzHn6f+92L7FxgFwzwBngKly2t9 lJCrU1hqU2R/LNMdwHMjGp83gcTRzgMgMnQ2IPn01BWAlcHLAJwoXo/e2OMvCYtSSUoR ppQvam+m76TEw0fY7a09JPgqLklmPI8u1u+xMUEKV/nslx18xReD4sBfl7qFt0D4pF6S nIRV3draM5c2uCIYO9C4AuUMffYUCJvFxp/J9ANIMKmfpqscTUFe09Lz4q/wHTzKOEwE 14MFyhOZ4RSgLzcG0jR+uRzxMTRR1b5WS1TkJLZz0s6chZ4GxUu8E8KWYZUW8aFN++P/ QwSg== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=xONlzx3IaXMZ6M2dIMHdENsla+SllYiw67kc5eZCItg=; b=z1EX7xTYXlGCs6eFIhPSJKgF29HFeLmzdhcfWzNHSPkIM7RiaUBl9Uks6+7ua+ktAF RgQU6q7ZH778X9U4JiDGfZ7DS3m3VQR0rzRSF9X1smHNId8np5RO4+vCFqf0Fq4hpRQQ IcggTCPjbiRMdXxn4Y/DmIXaWTsUpVwTZYvCBEOWwSnwIwHnu8RKC6AwxH4gL6uPFM4/ DfPW1FgAOMGo/U8RK8zi72IgurnVw+4ImvPtJeUvviGycPDukyJspB6MRniOXZCwhvpP pdkAjYFAMHf4sVOF+vgXz5C0J4W3TKebyXUXqV7GrgW5bhlwoyKrRDZ88ZrJR0B1usf1 FcPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mdmHe26O; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k5si24337652pll.254.2019.05.01.09.56.32; Wed, 01 May 2019 09:56:48 -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; dkim=pass header.i=@linaro.org header.s=google header.b=mdmHe26O; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726517AbfEAQyH (ORCPT + 99 others); Wed, 1 May 2019 12:54:07 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:43043 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726418AbfEAQyG (ORCPT ); Wed, 1 May 2019 12:54:06 -0400 Received: by mail-pf1-f196.google.com with SMTP id e67so8838088pfe.10 for ; Wed, 01 May 2019 09:54:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=xONlzx3IaXMZ6M2dIMHdENsla+SllYiw67kc5eZCItg=; b=mdmHe26OBi9kOgFFLbKVTkeFrr/oF7ylBvU855Q+odT/xOzuTNul9rItz3QAEJD0Oe IYQEGUcYenG1Hvwks5L36dSwARhC5uiRVulTqgCNAuiBvmJ86HlXK9xxNZ4mc3xI/TOh m0ZYdFFI2iGNENCIsW+jnZIjhpRhyBOyXL9R9qgx/iPr0MgejOrJwkZQ9z/jPOATBchZ ljykq3BK8ezWbsX2WJVG9i/qDXnwLuQ8wIzuFbKOqMIO5F1BJK3ocgrKxgeZKags1cWH Uo6z0T7WEKDsgyiLA92M+r8PxjRC65a8GzXoV0Nix+j780MTA95B4UEScAdGlBv6WSAh +1sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=xONlzx3IaXMZ6M2dIMHdENsla+SllYiw67kc5eZCItg=; b=osDxIg9muxXcecQEKqS8Az1QMXncSiR3PFzesYlUdGgwMFNo0iqtBPvzVYSLsCuxFg TQBLUdiCuqIAOXkph5vw4e896gl6oaQOnO/uu2nibW5tOe6HosuuNG2XSik4p6BVkmWp uuc32wo+TIOQeRZPTI5YqSVm+Gpxc/iq2api15YB7cOO474qBaiQ/fj8E9Aqg95W5FBx +n4lf6MGg6kOvu8CA7hDggFlNcFFt+dwciGtoSg5UsjKQH1udmeNzOvCgaKE5rfDGnrR XckvhvAcsqi7wcr/ZMxUv6uPGoKUn5yEG52sdQN6xpBNkCnp06TMzUKn2i+wR4iO1DKl TYlQ== X-Gm-Message-State: APjAAAUmiTzP/ippE1LKuB8sF5Go+JqLxyOBejwJnW72ecNUglSXaPyL KCFNRHJDoOjW1e7O/SYw5AA1YQ== X-Received: by 2002:aa7:8e14:: with SMTP id c20mr47798607pfr.14.1556729645920; Wed, 01 May 2019 09:54:05 -0700 (PDT) Received: from tuxbook-pro (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id 4sm4316877pfd.55.2019.05.01.09.54.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 01 May 2019 09:54:04 -0700 (PDT) Date: Wed, 1 May 2019 09:54:06 -0700 From: Bjorn Andersson To: Jeffrey Hugo Cc: mturquette@baylibre.com, sboyd@kernel.org, agross@kernel.org, marc.w.gonzalez@free.fr, 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 Subject: Re: [PATCH v3 5/6] clk: qcom: Add MSM8998 Multimedia Clock Controller (MMCC) driver Message-ID: <20190501165406.GI2938@tuxbook-pro> References: <1556677404-29194-1-git-send-email-jhugo@codeaurora.org> <1556677642-29428-1-git-send-email-jhugo@codeaurora.org> <20190501034314.GE2938@tuxbook-pro> <0513163c-5088-6168-64fb-04fa51f711fa@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0513163c-5088-6168-64fb-04fa51f711fa@codeaurora.org> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 01 May 07:25 PDT 2019, Jeffrey Hugo wrote: > On 4/30/2019 9:43 PM, Bjorn Andersson wrote: > > On Tue 30 Apr 19:27 PDT 2019, Jeffrey Hugo wrote: > > > +static const struct of_device_id mmcc_msm8998_match_table[] = { > > > + { .compatible = "qcom,mmcc-msm8998" }, > > > + { } > > > +}; > > > +MODULE_DEVICE_TABLE(of, mmcc_msm8998_match_table); > > > + > > > +static int mmcc_msm8998_probe(struct platform_device *pdev) > > > +{ > > > + struct regmap *regmap; > > > + > > > > Don't you want to wait for "xo" here as well? > > No, I don't want to. As far as I recall, Stephen would like to make a clear > divide between clock providers, and clock consumers. Since we have the uart > issue in gcc, and gcc is pretty critical to the entire SoC, it seems like > there is a reason (not sure I'd call it "good") to wait for xo there. > > Here, I'm less confident in the reasoning. mmcc is not really critical to > the SoC, and everything it services is "optional". If you have a headless > system with no display output, you won't even need it. On system where > there is a display, I expect the realistic driver ordering to be that > everything which consumes a mmcc clock to come up well after xo is > available. > > In short, seems like a bit of a kludge to maybe avoid an issue which doesn't > seem like would happen. > Okay, cool. > > > > > + regmap = qcom_cc_map(pdev, &mmcc_msm8998_desc); > > > + if (IS_ERR(regmap)) > > > + return PTR_ERR(regmap); > > > + > > > + return qcom_cc_really_probe(pdev, &mmcc_msm8998_desc, regmap); > > > +} > > [..] > > > +MODULE_DESCRIPTION("QCOM MMCC MSM8998 Driver"); > > > +MODULE_LICENSE("GPL v2"); > > > +MODULE_ALIAS("platform:mmcc-msm8998"); > > > > MODULE_DEVICE_TABLE() will provide the alias for module auto loading, so > > drop this. > > Huh. I did not know that. Will put on the list to fixup. > With this dropped (and your objection above) I think the patch looks good. Reviewed-by: Bjorn Andersson Regards, Bjorn > > > > Regards, > > Bjorn > > > > > -- > Jeffrey Hugo > Qualcomm Datacenter Technologies as an affiliate of Qualcomm Technologies, > Inc. > Qualcomm Technologies, Inc. is a member of the > Code Aurora Forum, a Linux Foundation Collaborative Project.