Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3722234yba; Tue, 9 Apr 2019 03:28:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzAi0Ur/JaHc+9nECXv+QBudDxMfUUb94+Gmgf/6UgydSg9TQVebIL3wJpVYCb96khi5haW X-Received: by 2002:a63:3281:: with SMTP id y123mr1424062pgy.272.1554805730560; Tue, 09 Apr 2019 03:28:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554805730; cv=none; d=google.com; s=arc-20160816; b=sFSgmYdooXxhW7QJk0lLtw/6VDOy3zdlqHGr4Jm3oDzGvveMPtybcbHiG+AnEo6KVj i2bptcXht7j1FV7hQl3eLxRlLWwMftFI+6LCk8xb/ZKWM3+58eJDmb+TKx3lTMFEJDtX VzF7Z6WVbPrmzTVuFyr6WSA5vHLwI/dVluCbRh1QoTE+QJ42m1KB+uFiDBDhrhKpZQGe yuk+/gew2jOfaN2YoKhb2hj/k1+jLx7SMghL8de77ttWDZOe+JlcBNSyezqlEYQxmBR4 taXmnj6xdwwJ1GNCnE16pqfUDBZj+G6PwkDykL70e8A3c18HMFUzZezok10C7wvhjV6f XGPw== 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:from:references:cc:to:subject:dkim-signature; bh=VMrK8jUpoqwWSX9soRdD0cY7VS6A2f28uwVwtbpC+og=; b=IaGrYtW+DV/O6EvRY0/LRQbdbYYVYGP2hr/QSWFOk4oBsML6EmvFp0rc3E3NNIZppo F/go5cVnkFv2ku1JCSCy4qFYmQ1wOTKtAZxAnuPsPWwSZz1A6ACoMmLh/liK0ZRZH1PO u1LzfJ2vUvRxADmuErA0sF7Y6F5JFVCDWcx47+cCtp1vKlEXX02Ee3+9gg1ORqlls5b5 qU8CGGvWqp/R8qEPkUMI7MtMEl4hD+qShV7lsVk+sb8j1WMvrtMALvEBitmGhsW87X04 szjA3UuMrzXIv5/k7djNwgYa9TbD2HXMaznck2e5u/xVCOeMd/IfRkHM0gszDoi6UI85 KXHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rxYqx189; 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 32si2280514plg.389.2019.04.09.03.28.34; Tue, 09 Apr 2019 03:28:50 -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=rxYqx189; 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 S1726920AbfDIK15 (ORCPT + 99 others); Tue, 9 Apr 2019 06:27:57 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:35185 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726079AbfDIK14 (ORCPT ); Tue, 9 Apr 2019 06:27:56 -0400 Received: by mail-lf1-f65.google.com with SMTP id u21so11925473lfu.2 for ; Tue, 09 Apr 2019 03:27:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=VMrK8jUpoqwWSX9soRdD0cY7VS6A2f28uwVwtbpC+og=; b=rxYqx189cdsCWpQTRBHyApiyztz8ZJSDLLwGP/VYH/od7HTtxQ0CjMW4ZI0Cz/LUWf S8UvgLMKyJS4IPwcwTrqOfhx+tvsRQihqEW2le67wF2TmzSXPzbN25GT9qj703akmV+B X0geAV8+3lBtegvYZsBNyef3DxZixtQN/gt204CujXeEUWrgRDQa5p1ZMN9SyCylb7br wLwmCiZAKN9GxewNUdZtzqtOYux2bOrP7NmDpFh/Y3kbE2VbjaEcyMuu5Xx8bJvMEW0Y Y1V6DSVuXQW11MVHwyOozCkpvP52OHq7+aO4DU4s97DZWhYvVUtiEg2VouKA0trOQFeZ 7LCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=VMrK8jUpoqwWSX9soRdD0cY7VS6A2f28uwVwtbpC+og=; b=M0NSURH4uv2DHLaxsFmvezO4/23DG87HUlxdGWoTrqWlO1EXa4Leip3fXpVebQHASk gj2BDjl3ATdAxdT/4HrtC0FsY1KTy0zdls2tqLN8DCBSQE1ncHnb2rPlfJtTSgzbAH4l P5sm0fiLJYbE0AsymmPKfjXEN8S1tusbVsHRnOjtV1lvqssueKWc9uSPkDy0PFG8tMsi /m2QODDs+z9vgUaNrryFxKBz6zAhzeVuQj5H1+dSBU3TWnJ+0o86S5KwfmL70dMqwxp0 ZHzSln3zHvlTwI/Yca7O/MlNidoJ/LQ4w1fTyXwfM2WahAkGY9s8TiendVhOKWn9GUc3 TM2Q== X-Gm-Message-State: APjAAAVw29SkjWWqy57afb2ws4C/tt+ji67YExWD2juXZ4F0Jp1pJt2F rqjfRIlvsr70Nsz7cYJRjKd3pQ== X-Received: by 2002:ac2:5a01:: with SMTP id q1mr19432360lfn.147.1554805673797; Tue, 09 Apr 2019 03:27:53 -0700 (PDT) Received: from [10.44.66.8] ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id y7sm6723919ljy.65.2019.04.09.03.27.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Apr 2019 03:27:52 -0700 (PDT) Subject: Re: [PATCH 2/3] interconnect: qcom: Add QCS404 interconnect provider driver To: Bjorn Andersson Cc: robh+dt@kernel.org, vkoul@kernel.org, evgreen@chromium.org, daidavid1@codeaurora.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org References: <20190405035446.31886-1-georgi.djakov@linaro.org> <20190405035446.31886-3-georgi.djakov@linaro.org> <20190405145756.GN1843@tuxbook-pro> <0ca7862f-31ba-748a-945d-a925a40a16de@linaro.org> <20190409032714.GT1843@tuxbook-pro> From: Georgi Djakov Openpgp: preference=signencrypt Autocrypt: addr=georgi.djakov@linaro.org; prefer-encrypt=mutual; keydata= mQINBFjTuRcBEACyAOVzghvyN19Sa/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 ASMfXhfywB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2lLL2Mt5lsqU+6sup Tfql1omgEpjnFsPsyFebzcKGbdEr6vySGa3Cof+miX06hQXKe99a5+eHNhtZJcMAIO89wZmj 7ayYJIXFqjl/X0KBcCbiAl4vbdBw1bqFnO4zd1lMXKVoa29UHqby4MPbQhjWNVv9kqp8A39+ E9xw890l1xdERkjVKX6IEJu2hf7X3MMl9tOjBK6MvdOUxvh1bNNmXh7OlBL1MpJYY/ydIm3B KEmKjLDvB0pePJkdTw== Message-ID: <63aaf5f5-4750-f1e9-f82c-9fff3e6c9214@linaro.org> Date: Tue, 9 Apr 2019 13:27:49 +0300 MIME-Version: 1.0 In-Reply-To: <20190409032714.GT1843@tuxbook-pro> 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 Bjorn, On 4/9/19 06:27, Bjorn Andersson wrote: > On Mon 08 Apr 07:33 PDT 2019, Georgi Djakov wrote: >> On 4/5/19 17:57, Bjorn Andersson wrote: >>> On Fri 05 Apr 10:54 +07 2019, Georgi Djakov wrote: >>> [..] > [..] >>>> diff --git a/drivers/interconnect/qcom/qcs404_ids.h b/drivers/interconnect/qcom/qcs404_ids.h >>> >>> You use these defines in the driver, so I think this file should be the >>> one in include/dt-bindings... >> >> The ids in this header are in a single global namespace in order to >> build the internal topology and could be used for drivers that support >> only platform data (although not sure if there would be any). >> > > As you say these numbers could be used by drivers on non-DT enabled > platforms, but for that this include file should be in > include/linux/interconnect. That said, there are no such Qualcomm > platforms, so these numbers will only ever be used internally in the > qcs404.c provider, so it would be better to just define them in that > file - to remove the risk of confusion. Agreed, will put them in the same file. >>> >>> [..] >>>> diff --git a/include/dt-bindings/interconnect/qcom,qcs404.h b/include/dt-bindings/interconnect/qcom,qcs404.h >>> >> >> These header is using per NoC local ids and should be used on DT enabled >> platforms. >> > > I had missed that you implemented support for xlating NoC-specific ids, > so this makes sense now, nice. I presume we won't ever include files in > a way where these defines collide - so this looks good. Thanks for the review! Georgi