Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3420149ybi; Mon, 10 Jun 2019 09:58:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqx3JhaoDI1ARAwghodRZVr11BtNoypAWrcwS8h4Fm9eKHX2UWxPXl30MI20VyVBEZWyYQIk X-Received: by 2002:a62:5487:: with SMTP id i129mr71676063pfb.68.1560185917922; Mon, 10 Jun 2019 09:58:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560185917; cv=none; d=google.com; s=arc-20160816; b=aorX8OgRH5+9+vDBj9OPE2PkuiT1bqkK2ThRTBv7pbdzjZEuTNKqZh0B9DFZtqrAD5 GJ+0+GVkqjyzsjBYiY3Qusqd9qZJB+RcNbrV65mOCSA/qDWx8DYYjsFUkXFoL3LiqNOV TvKhtIC8ma6QDZ5AZOGhpeN6mf1sxywPZSolgmLoHs938r2/fEh/XKp0hgEh5V3WICw3 YGcd538Rrlo4gisbqioVPlbbvLPUn0U94UTN64Q6w6/DDabfSljHcMJrW8Mf2jiGF9az LsjH4hlVEoPz3EK3nm/cf/kh99rO6B7J8YtAHYvT45w8+SyWuka06HQXcf7NNEMYwJ71 oZXQ== 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=02QlD+dQyEGO4EEKFz1uYHazBVRik/r7SAjjSQVxSs4=; b=fCDQPU0wxV/+QfeCRCqzQ/rhDzjaE0WklEIZrqgPdvdzyFJpijageALVQUPeEx4zRR 9SM5jdjKgLZZk12t6pUlhORM9kVk3yRmP6uVMkbIwDD3wiemucmVeErxUpJIvU2Odc9w 51J2jxgg63UXBAzb2ROoMf3sMpTN7TwA6OV8YA/wLf+by7gNJaXI7ONNveDfhtTfmI9o xK4bUL4zSlP1CXfghJsVfBsamGQzgRs3UORdJhoUcZj+sFyoyQiriATm97n4xDsbGrCA sgfQ6t5ksncJhDSYBH55Ds0PWdvE4NtgM44EPhXLgMTVRjBrqCAz5XxtILZIVoCbRThx sKNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="r9/fS6Ll"; 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 9si10985422pjy.36.2019.06.10.09.58.22; Mon, 10 Jun 2019 09:58:37 -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="r9/fS6Ll"; 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 S2387586AbfFJQ6B (ORCPT + 99 others); Mon, 10 Jun 2019 12:58:01 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:43543 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728360AbfFJQ6A (ORCPT ); Mon, 10 Jun 2019 12:58:00 -0400 Received: by mail-pg1-f193.google.com with SMTP id f25so5343307pgv.10 for ; Mon, 10 Jun 2019 09:58:00 -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=02QlD+dQyEGO4EEKFz1uYHazBVRik/r7SAjjSQVxSs4=; b=r9/fS6LliK6b9sWK/JXRrCplVnHPfXh2dJwY828nS9aFx1N6M2Rh2OrZ45pBoNUz+6 63L0i4B6ANOoEgH5b0WSX0iqrBjWAHbZOq071SW5w1UWdAcvPXt8VxuhGzrk9if+tGIw 5e0WH98Og+FomJIfAkK0vKnnVblD2abzMxb3oRzmZqihkkCJlgErDdnomlw+kS7CB9rh KiEOeKyJ1maFp146hlz1gTOSHRt60wGOBfmBrhdO+UzW/IohTj3wiStbyB3w5WbpbkZ/ BoK0X0O4fERQ6zcUNNdpuyGYzyUku+AaJdj4AYDSfNeBBQ9PVARyBxt+cyEqOth/ycO4 viIg== 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=02QlD+dQyEGO4EEKFz1uYHazBVRik/r7SAjjSQVxSs4=; b=UU2hThG1JuzYA5Rf9SVhQv3OapNj4G7dlf3nlAQIlTmDyvUjz5mVBpdVR2BVdt706N YG7MGi8J95h+5sKeNnWT76bULL5vZDx0ZcA+JNhXSrIjxqLLOripYeXx99DSpfNN445u il0w90/Gji2Ax5X5XpGkzd+NrNYCVT85oCFa4M74sf6xiE8otgGHAO+0KqWkWfuRubJL W87Y51RMTEzR22BXz44gMadQeR9hZaZicqEXb8opqBLoFT3Wcc0yAHLb0y47D684UA+s GprOMxmthFyKc4fnfGml3HaH/5qM+ZrMV91cFl0oj0mKpM97wX1Bel4ebxvc876rwybS ZeXQ== X-Gm-Message-State: APjAAAVzoyZgWeWI/bj90OqjpEl+TXYcBaQ3F8830jXvgdbwffcT1+jy 6wLLSxX4aah329pzINf4EHUdkQ== X-Received: by 2002:a63:8841:: with SMTP id l62mr14744140pgd.246.1560185879548; Mon, 10 Jun 2019 09:57:59 -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 a192sm470040pfa.84.2019.06.10.09.57.57 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 10 Jun 2019 09:57:58 -0700 (PDT) Date: Mon, 10 Jun 2019 09:58:43 -0700 From: Bjorn Andersson To: Sricharan R Cc: robh+dt@kernel.org, Stephen Boyd , linus.walleij@linaro.org, agross@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 4/6] clk: qcom: Add ipq6018 Global Clock Controller support Message-ID: <20190610165843.GC22737@tuxbook-pro> References: <1559754961-26783-1-git-send-email-sricharan@codeaurora.org> <1559754961-26783-5-git-send-email-sricharan@codeaurora.org> <20190608033229.GE24059@builder> <6583f576-acf4-a71b-d691-bce548e2c008@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6583f576-acf4-a71b-d691-bce548e2c008@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 Mon 10 Jun 04:47 PDT 2019, Sricharan R wrote: > Hi Bjorn, > > On 6/8/2019 9:02 AM, Bjorn Andersson wrote: > > On Wed 05 Jun 10:15 PDT 2019, Sricharan R wrote: > > > >> This patch adds support for the global clock controller found on > >> the ipq6018 based devices. > >> > >> Signed-off-by: Sricharan R > >> Signed-off-by: anusha > >> Signed-off-by: Abhishek Sahu > > > > Please fix your s-o-b chain, as described in my reply to 1/8.. > > > > ok. > > >> --- > >> drivers/clk/qcom/Kconfig | 9 + > >> drivers/clk/qcom/Makefile | 1 + > >> drivers/clk/qcom/gcc-ipq6018.c | 5267 ++++++++++++++++++++++++++++++++++++++++ > >> 3 files changed, 5277 insertions(+) > >> create mode 100644 drivers/clk/qcom/gcc-ipq6018.c > >> > >> diff --git a/drivers/clk/qcom/Kconfig b/drivers/clk/qcom/Kconfig > >> index e1ff83c..e5fb091 100644 > >> --- a/drivers/clk/qcom/Kconfig > >> +++ b/drivers/clk/qcom/Kconfig > >> @@ -120,6 +120,15 @@ config IPQ_GCC_8074 > >> i2c, USB, SD/eMMC, etc. Select this for the root clock > >> of ipq8074. > >> > >> +config IPQ_GCC_6018 > > > > Please maintain sort order. > > > > ok. > > >> + tristate "IPQ6018 Global Clock Controller" > >> + depends on COMMON_CLK_QCOM > >> + help > >> + Support for global clock controller on ipq6018 devices. > >> + Say Y if you want to use peripheral devices such as UART, SPI, > >> + i2c, USB, SD/eMMC, etc. Select this for the root clock > >> + of ipq6018. > >> + > >> config MSM_GCC_8660 > >> tristate "MSM8660 Global Clock Controller" > >> help > >> diff --git a/drivers/clk/qcom/Makefile b/drivers/clk/qcom/Makefile > >> index f0768fb..025137d 100644 > >> --- a/drivers/clk/qcom/Makefile > >> +++ b/drivers/clk/qcom/Makefile > >> @@ -22,6 +22,7 @@ obj-$(CONFIG_APQ_MMCC_8084) += mmcc-apq8084.o > >> obj-$(CONFIG_IPQ_GCC_4019) += gcc-ipq4019.o > >> obj-$(CONFIG_IPQ_GCC_806X) += gcc-ipq806x.o > >> obj-$(CONFIG_IPQ_GCC_8074) += gcc-ipq8074.o > >> +obj-$(CONFIG_IPQ_GCC_6018) += gcc-ipq6018.o > > > > Ditto. > > > > ok. > > >> obj-$(CONFIG_IPQ_LCC_806X) += lcc-ipq806x.o > >> obj-$(CONFIG_MDM_GCC_9615) += gcc-mdm9615.o > >> obj-$(CONFIG_MDM_LCC_9615) += lcc-mdm9615.o > >> diff --git a/drivers/clk/qcom/gcc-ipq6018.c b/drivers/clk/qcom/gcc-ipq6018.c > > [..] > >> +static int gcc_ipq6018_probe(struct platform_device *pdev) > >> +{ > >> + return qcom_cc_probe(pdev, &gcc_ipq6018_desc); > >> +} > >> + > >> +static int gcc_ipq6018_remove(struct platform_device *pdev) > >> +{ > >> + return 0; > > > > Just omit .remove from the gcc_ipq6018_driver instead of providing a > > dummy function. > > > > ok. > > >> +} > >> + > >> +static struct platform_driver gcc_ipq6018_driver = { > >> + .probe = gcc_ipq6018_probe, > >> + .remove = gcc_ipq6018_remove, > >> + .driver = { > >> + .name = "qcom,gcc-ipq6018", > >> + .owner = THIS_MODULE, > > > > Don't specify .owner in platform drivers. > > > > ok. > > > [..] > >> +MODULE_DESCRIPTION("Qualcomm Technologies, Inc. GCC IPQ6018 Driver"); > >> +MODULE_LICENSE("GPL v2"); > >> +MODULE_ALIAS("platform:gcc-ipq6018"); > > > > This modalias won't be used. > > > > ok. But it looks to be there in other clk drivers as well. > It serves the purpose that the driver will be automatically modprobed if someone calls: platform_device_register*(..., "gcc-ipq6018", ...); So for everything that is only going be probed from DT (or ACPI) this does not add any value. As such there are several other places where these aliases should be dropped. Regards, Bjorn