Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3475410yba; Mon, 8 Apr 2019 20:49:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqxoNWXTf6tMTEC6IKjFGwKz7SKpms7B6c2A9+7p1NfSB+YaXYkj27LJXh97bfSDGPK5raen X-Received: by 2002:a17:902:7441:: with SMTP id e1mr33527737plt.13.1554781798006; Mon, 08 Apr 2019 20:49:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554781797; cv=none; d=google.com; s=arc-20160816; b=VWreZDnDtUqKPzXQ7KMsJXb3KxWnJZfNlPGY6AS08q6suDkmYBtrcfwJIoR019ZLTG C4Ozu5okEF1VMxyUiy+aGKdTdcE8I/MSlKlAJibH+IgJXKxfrelChQ9/cVPAEDUGwvVE y3eygUJq64N30H7NUORUWLDqpN6E7mMzyNmw10xuYI/Fwr8Ho7dkczMEafl3iokF7CAm 2zK5d04WbizJ0DM+SwVxY7vwRXD0Mg8a8r2F3VHO1Dq8IK46tbx7TFErkoilSgBGlHvd aZpJhIrES0rE0F5zEOS0ne/vfV23McrE+XT9AVK9R3GW61cKXRFdjyxWqaXEzSwkbi04 5XgQ== 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=JBW7znSTK5u+NcnjHQQNoax3ZsvZZDyQhDwb7fk3Tos=; b=vhLyEF6QE6/ikcJsWezdhWouju8XPuqIQV4b3djBzJehLe64+rmhtMdTgHzrYqnnQq 6NazwVfqIBt75tq/FogJCOBfW3BKQQINbu1nv3JnC6TRb6aBfbQ+jPGhf313aNntkV/9 jg/FQ0soQ4qk7vWouS2IzCRbpvsQ/r4di1Szod/xTJaAxM8n5kkZEg6wH9cGfhQOlo8u hFaLKET/raNp7wYuKSYwqMrg040AF/Mbt9z35H2VLvuwA7KgWeM7hpHoQY5HgSxiv/io 7++bJuGC702QsaRlI7I5NXREODnvgv64EfALrFmv0xWK9rP1YpyjMx9IfQQKlTEf7+0a SzDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=POYQ5Z9K; 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 c186si28222606pfg.160.2019.04.08.20.49.42; Mon, 08 Apr 2019 20:49:57 -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=POYQ5Z9K; 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 S1726920AbfDID1S (ORCPT + 99 others); Mon, 8 Apr 2019 23:27:18 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:43682 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726492AbfDID1S (ORCPT ); Mon, 8 Apr 2019 23:27:18 -0400 Received: by mail-pf1-f193.google.com with SMTP id c8so8829058pfd.10 for ; Mon, 08 Apr 2019 20:27:17 -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=JBW7znSTK5u+NcnjHQQNoax3ZsvZZDyQhDwb7fk3Tos=; b=POYQ5Z9KTB/FEKN616wWh8UQafyl0K0tiwB+SHsQoS3rpFRKAB87EA/hQWbY6jHJL4 gcsf2QYY/BcxsCinDPXeh7k4Cqiz89W1APG/DeRjCS0dTAIuXJYerEOfRk296VXwwSEv z0vS6ZwnBXg5ENk3OxIs4xrRvsldhiKmmMQpS51z40MsdZ/ZS1HpMeunm65Wv8s3d6JK mn+lv810uvg1k4/XAh6SsPs48b0Qs6DtHsf3k1dJs5wnUSW2yj5Q+ToUxvkDzezIEEJI nW+6gDGbEdbM8dJl/5hdXAqjynE6njZJ/KgQ36ZDwhFsA0oMuzNi4WlcuVe6Dq6P6FCU ObmA== 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=JBW7znSTK5u+NcnjHQQNoax3ZsvZZDyQhDwb7fk3Tos=; b=JAIJLz9hGm1LJxS6yGFaqlgEis6Dc8nLo2rR8LeUEdfp01pHwuaZHO5qiek+M/iPam 4wW0W0ys/j0WQ4gR5wqC57DTtdu5ypH3u9XS1WX6bCj6zDnVIia64kiMmGVYEmN5MZYB LGObwzAW+sqE6ifwbkrqO1vY2kKTWRj2jiqTEEp8rzfOLEvJxi9UFbEiSkrzkBMm4Tan 2vI/2GnWF+W2MCv1zNWuK5cAl5slm7WoxRRTE+RC0KBrc8N1r3h10WIlZF5N5eN+iH95 4Womiw7yvvPphfRMDnkbLhV0Afr0OINu6G3ix+m1vRkyQtHFQZcyV+9I4mz91NjtFSr1 BMEA== X-Gm-Message-State: APjAAAUPfmtDj35TbNlBjEDTgbDTfim/MuWfJtjOhMtIAYlmPM+GIuRa +1qzAQAIev+hC2xrsSm2bGiMZQ== X-Received: by 2002:a62:1647:: with SMTP id 68mr33731518pfw.113.1554780437354; Mon, 08 Apr 2019 20:27:17 -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 w21sm42124197pfn.48.2019.04.08.20.27.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 08 Apr 2019 20:27:16 -0700 (PDT) Date: Mon, 8 Apr 2019 20:27:14 -0700 From: Bjorn Andersson To: Georgi Djakov 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 Subject: Re: [PATCH 2/3] interconnect: qcom: Add QCS404 interconnect provider driver Message-ID: <20190409032714.GT1843@tuxbook-pro> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0ca7862f-31ba-748a-945d-a925a40a16de@linaro.org> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > > > [..] > >> 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. Regards, Bjorn