Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2961509imm; Fri, 20 Jul 2018 07:51:20 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdFNXRtIJUAhe0aVDBSgjepYRsPGR7gPk9OZU0FVQJzOA6bz4OW03O8lNLEWdgyMTwOJYQT X-Received: by 2002:a17:902:3281:: with SMTP id z1-v6mr2459442plb.226.1532098280937; Fri, 20 Jul 2018 07:51:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532098280; cv=none; d=google.com; s=arc-20160816; b=uyBkjWGYB0JYzFv/SIQ4QR2/Cg/EUKKOla3Hfq/pgU+tKzUizvoj5ddEj314Z26IbT XAgISgHF1i7oLDAfqSk9zUwA8T0fEBoMUBhKjwrcAYWX2Kq02k8u81nqWF1P4eDtWQj1 KAKMazgz7Qyp9T5Co57Eq9A5QNM+cPCZ2rHO+zoR+wv1BIc/CayN+hiUggLv9pdhpO0p TdDgGYBWOL4PRwCGd+ra6SdLVUYCU+B9IXXu1mDDBj79yRyYSFfRB0WSldWXRt5nJMqy tmfIHHWPQVDsFE6Ys/vNlO582LfLAZA7tcYTY448Zg/Ct/aS/unBHPEoR+yBx1o0e5fs tK2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:date:message-id:autocrypt :openpgp:references:cc:to:subject:from:dkim-signature :arc-authentication-results; bh=NqTubvQD7oLVcS1+64zkm8Axm3ZSq8UguOl6NavgE6E=; b=Ka3HAf4dyiCrm5qdEms4c7UwTf59nDu8f5r8sFnbacR+3KUdeP7nzYdKMO1O6eKW8b 6RUJxQCB5BerPtos9dSNLB1n3PjdOHY+rjxUkxRr2UTSJI42/SNC6ml9JeDBblF15bqn B0K9fng8+SLMKhaLTVbI2SMPyOUPouZkK5S2moSjSZC19Ue4n0S2NDuxDdCcTYisenRn JbVJYTLq/doxe3NkERsDfbBRM6bHaXpkCNAR95jFDLj9nAAQKyMK9xqK2QLNc0L0a1Sp 8jFWG/9I/7FAQkZwBGDqomgLKMP+Yhtx5r2Fp42HL2aDoGB6V+ntcx6mfsr4AKdSXzSV NjsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kxoxz9Fs; 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 x16-v6si1668760pln.165.2018.07.20.07.51.05; Fri, 20 Jul 2018 07:51:20 -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=kxoxz9Fs; 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 S1732138AbeGTPiv (ORCPT + 99 others); Fri, 20 Jul 2018 11:38:51 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:44669 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728409AbeGTPiu (ORCPT ); Fri, 20 Jul 2018 11:38:50 -0400 Received: by mail-wr1-f66.google.com with SMTP id r16-v6so11557706wrt.11 for ; Fri, 20 Jul 2018 07:50:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:subject:to:cc:references:openpgp:autocrypt:message-id:date :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=NqTubvQD7oLVcS1+64zkm8Axm3ZSq8UguOl6NavgE6E=; b=kxoxz9FsfKyeTDDUl0kEgal8WAdsCaGQdjkbSmhTJrPlP4MimcQd/JtR9wjW2PNSWJ 7ZRIpVUpEekUbkSJAOeNGj59OFNVJPxA8qtLTg8Jlb4tfYZsvlEEwQE3jXZxU6IhWQQF K6rVlVw03Yyhx/swTknq4ZsNXe4Wry5weEPLo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:openpgp:autocrypt :message-id:date:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=NqTubvQD7oLVcS1+64zkm8Axm3ZSq8UguOl6NavgE6E=; b=V2UUpxbSCv5zNIcCUW2SgAllS9qZqMDC6Kie0rAgQhsRowF3t/6xf+PxHhdIAYd9LR ej7ywZAClCqwLdX1YH5gJSbMZEyQkJRtqLr10GwvWqiPN6BITtbRWoh3y3ONOg6NJZZU KkZhoT4o4SExKswk7PXc7L7NErpFEi9JB/jOh6q4Bfeg5TZIXlrYh3LYfQiqVAvTDrNW NVkcKvJtSAzO3CmrLPJbg30IXc6Sf6S/ch8YE72JhXapDQD93dhuAeI2FqePT4sEVNGX tRjSH+GlPMhgQ72R0wj3A9GC80J5421FUgVMWzhZtmx+Lto+TflYfrIajrjnFH0T+ham fVQA== X-Gm-Message-State: AOUpUlG+6qwjVCnXtYWb0dmoZsYdsu06AISsxAaZ7jKMrP3OYvCYXUeq 3uHD6PiLi+rD8KBuCtRqODANkgr2eoc= X-Received: by 2002:a5d:5641:: with SMTP id j1-v6mr1809449wrw.209.1532098210859; Fri, 20 Jul 2018 07:50:10 -0700 (PDT) Received: from [10.44.66.8] ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id i125-v6sm2555914wmd.11.2018.07.20.07.50.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Jul 2018 07:50:10 -0700 (PDT) From: Georgi Djakov Subject: Re: [PATCH v6 6/8] interconnect: qcom: Add msm8916 interconnect provider driver To: Evan Green Cc: linux-pm@vger.kernel.org, gregkh@linuxfoundation.org, rjw@rjwysocki.net, robh+dt@kernel.org, Michael Turquette , khilman@baylibre.com, Alexandre Bailon , Vincent Guittot , Saravana Kannan , Bjorn Andersson , amit.kucheria@linaro.org, seansw@qti.qualcomm.com, daidavid1@codeaurora.org, mka@chromium.org, mark.rutland@arm.com, lorenzo.pieralisi@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, tfiga@chromium.org References: <20180709155104.25528-1-georgi.djakov@linaro.org> <20180709155104.25528-7-georgi.djakov@linaro.org> Openpgp: preference=signencrypt Autocrypt: addr=georgi.djakov@linaro.org; prefer-encrypt=mutual; keydata= xsFNBFjTuRcBEACyAOVzghvyN19Sa/Nit4LPBWkICi5W20p6bwiZvdjhtuh50H5q4ktyxJtp 1+s8dMSa/j58hAWhrc2SNL3fttOCo+MM1bQWwe8uMBQJP4swgXf5ZUYkSssQlXxGKqBSbWLB uFHOOBTzaQBaNgsdXo+mQ1h8UCgM0zQOmbs2ort8aHnH2i65oLs5/Xgv/Qivde/FcFtvEFaL 0TZ7odM67u+M32VetH5nBVPESmnEDjRBPw/DOPhFBPXtal53ZFiiRr6Bm1qKVu3dOEYXHHDt nF13gB+vBZ6x5pjl02NUEucSHQiuCc2Aaavo6xnuBc3lnd4z/xk6GLBqFP3P/eJ56eJv4d0B 0LLgQ7c1T3fU4/5NDRRCnyk6HJ5+HSxD4KVuluj0jnXW4CKzFkKaTxOp7jE6ZD/9Sh74DM8v etN8uwDjtYsM07I3Szlh/I+iThxe/4zVtUQsvgXjwuoOOBWWc4m4KKg+W4zm8bSCqrd1DUgL f67WiEZgvN7tPXEzi84zT1PiUOM98dOnmREIamSpKOKFereIrKX2IcnZn8jyycE12zMkk+Sc ASMfXhfywB0tXRNmzsywdxQFcJ6jblPNxscnGMh2V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PsyFebzcKGbdEr6vySGa3Cof+miX06hQXKe99a5+eHNhtZJcMAIO89wZmj 7ayYJIXFqjl/X0KBcCbiAl4vbdBw1bqFnO4zd1lMXKVoa29UHqby4MPbQhjWNVv9kqp8A39+ E9xw890l1xdERkjVKX6IEJu2hf7X3MMl9tOjBK6MvdOUxvh1bNNmXh7OlBL1MpJYY/ydIm3B KEmKjLDvB0pePJkdTw== Message-ID: <6bc5a4bc-5b66-7cfa-8820-4cd1053c6f8e@linaro.org> Date: Fri, 20 Jul 2018 17:50:08 +0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 07/11/2018 01:34 AM, Evan Green wrote: > On Mon, Jul 9, 2018 at 8:51 AM Georgi Djakov wrote: >> >> Add driver for the Qualcomm interconnect buses found in msm8916 based >> platforms. >> >> Signed-off-by: Georgi Djakov >> --- >> drivers/interconnect/Kconfig | 5 + >> drivers/interconnect/Makefile | 1 + >> drivers/interconnect/qcom/Kconfig | 10 + >> drivers/interconnect/qcom/Makefile | 2 + >> drivers/interconnect/qcom/msm8916.c | 499 ++++++++++++++++++++++++++++ >> 5 files changed, 517 insertions(+) >> create mode 100644 drivers/interconnect/qcom/msm8916.c >> >> diff --git a/drivers/interconnect/Kconfig b/drivers/interconnect/Kconfig >> index a261c7d41deb..07a8276fa35a 100644 >> --- a/drivers/interconnect/Kconfig >> +++ b/drivers/interconnect/Kconfig >> @@ -8,3 +8,8 @@ menuconfig INTERCONNECT >> >> If unsure, say no. >> >> +if INTERCONNECT >> + >> +source "drivers/interconnect/qcom/Kconfig" >> + >> +endif >> diff --git a/drivers/interconnect/Makefile b/drivers/interconnect/Makefile >> index 97fca2e09d24..7944cbca0527 100644 >> --- a/drivers/interconnect/Makefile >> +++ b/drivers/interconnect/Makefile >> @@ -1,2 +1,3 @@ >> # SPDX-License-Identifier: GPL-2.0 >> obj-$(CONFIG_INTERCONNECT) += core.o >> +obj-$(CONFIG_INTERCONNECT_QCOM) += qcom/ >> diff --git a/drivers/interconnect/qcom/Kconfig b/drivers/interconnect/qcom/Kconfig >> index b0c2ff928d88..a87afdef1bf7 100644 >> --- a/drivers/interconnect/qcom/Kconfig >> +++ b/drivers/interconnect/qcom/Kconfig >> @@ -2,6 +2,8 @@ config INTERCONNECT_QCOM >> bool "Qualcomm Network-on-Chip interconnect drivers" >> depends on INTERCONNECT >> depends on ARCH_QCOM || COMPILE_TEST >> + help >> + Support for Qualcomm's Network-on-Chip interconnect hardware. >> >> config INTERCONNECT_QCOM_SMD_RPM >> tristate "Qualcomm SMD RPM interconnect driver" >> @@ -9,3 +11,11 @@ config INTERCONNECT_QCOM_SMD_RPM >> help >> This is a driver for communicating interconnect related configuration >> details with a remote processor (RPM) on Qualcomm platforms. >> + >> +config INTERCONNECT_QCOM_MSM8916 >> + tristate "Qualcomm MSM8916 interconnect driver" >> + depends on INTERCONNECT_QCOM >> + select INTERCONNECT_QCOM_SMD_RPM > > I'm not a kconfig expert, maybe someone else could chime in. I have > this impression that folks don't like select. Is there a way to do > this with depends instead? If I'm way off here, ignore me. It could be done with depends, but i think that it would be easier for the user to choose only the SoC driver, without having to look into what dependencies need to be enabled for each. Here we are using select only locally and if there are any dependencies on other subsystems (like the QCOM_SMD_RPM), they should be put under the interconnect platform driver. Of course i am open for other arguments and suggestions. Thanks, Georgi