Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1263653imm; Wed, 23 May 2018 13:03:28 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrZJdLjQmEk+pKkTCQM7FZEqh6nqvI7Zb2/SqeYGiVV3C1XQLDRRTmx+5mwy1z0nh1oXKUX X-Received: by 2002:a17:902:164:: with SMTP id 91-v6mr4316030plb.134.1527105808216; Wed, 23 May 2018 13:03:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527105808; cv=none; d=google.com; s=arc-20160816; b=sOmZ+urKNEPRLBQ45h3nUEqwxGZnsfFrRjcnO0UMUiNhy52D7Ysuuf1C4+Zu26wu3Z vCMOGdxyfabVifs8Bf9UBd+6X+i1n41WwBwVpy6ed/zbH5KrM4tXC5V/5tI7jXvtI2Qr d2dxRC6p9YxQM36J3rmNljNxmyYrK9nz6t3MWPJKIPz0BH/zRdqKrVUbki9JVOLUc/dh Xeual17sQhccC8K0npqfdR/zzsFN3cQ74zrP8HQMF7YZsKp01aXIsqgY6C8bo7UvVkNo 9vGDAbUNwT6u7Qj8Hpsfug1Dr9gUC6DE4ZAl/nFPl4bzk5vxSC9WmB71OHkYKHr2ElCT Kb5A== 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:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=c4Cef6ATlJNUVGNzfInP5BA6yyeZjrh4Xw/V3PIOESE=; b=eLtY9fyJ2w19YrbkNoDR0NYZWb87L6/RCfLTFY+DQ3yrOCU6bL8a94LfuzJDLn4trK 75MrY7KUVGzf0pMieDhdOx/t/0/V6ER84iOwN3e7wRsds/BDile96cC06FkL2YwvAp7e SaeWkDOG3sw736Jj6A+vTZEh8Yu5Esu2go31okDwvRCfJKhtnW3+pE4LC9xcYvtfwk9F Lq8UuKd0uSN9XwsCxLndyON6C/wboNF3xmnLCG7LPBqcOmiS3dEhGKgp/UhUsROZhr4L h+USU8VQXWg0Xw9AnCgiQSbMuHyUfZh0QjH/1YuSUNRmMhRwKiEUfXaYItGBfule8pWk LpFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jT1KhwGv; 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 d7-v6si14853741pgq.305.2018.05.23.13.03.12; Wed, 23 May 2018 13:03:28 -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=jT1KhwGv; 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 S934463AbeEWUBt (ORCPT + 99 others); Wed, 23 May 2018 16:01:49 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:32886 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934417AbeEWUBq (ORCPT ); Wed, 23 May 2018 16:01:46 -0400 Received: by mail-wr0-f194.google.com with SMTP id a15-v6so21387307wrm.0 for ; Wed, 23 May 2018 13:01:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=c4Cef6ATlJNUVGNzfInP5BA6yyeZjrh4Xw/V3PIOESE=; b=jT1KhwGvEc7Ks1rmuV/KoU84CovxKEvSIWpGv4BcNEPBfGvxyFyLSk0M8wdEMz5eed 734RWcy4FSU3ZAcvzqe2Yrf1RueLO1NSmCsKcD+A05C6YvssxCeX1nG3kReokeD/iet7 fHvBF5L/87dqlkb+qginKcVBXQGdWV1IQnGxo= 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:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=c4Cef6ATlJNUVGNzfInP5BA6yyeZjrh4Xw/V3PIOESE=; b=WdoWx8sBV/QZFdQTQq7i+mo3lQOHCuVfioWO6HolIRBeJADaz3walbnOV86mkei0X2 aOXYAth93qfdYx3WX05zD9rhIlN9i5XP6MtkIOCFGK+bCXhXoZTKdrbR3YrLfDn2D0Mo F0+aOh62dDs9kC34uxR/ou+VpcHX+84h1r9NNuovN1LqLunsPSPgiBOndxvO9VvjuC1E 9zwWHnnzlIlsRZfgjsb+h23//fJOISQMZSn2OKIdbl/O8VpweR4LDt4PjDav5LfsobTK ivtCy0Ow+eg0BeNzisZSdpLubnXG/eIJ3NRSUPCr2YMu/dkOD86EOuGOeW8SSG4vBKw0 95Hw== X-Gm-Message-State: ALKqPwd96myZpqDPk+CAQXfhW6Mg5VI+v8e3oVWr3efduwkuvRyo9F/W em9yfEDPp28n5k3cyUNNwXD0oQ== X-Received: by 2002:adf:9162:: with SMTP id j89-v6mr3683903wrj.196.1527105705560; Wed, 23 May 2018 13:01:45 -0700 (PDT) Received: from [192.168.0.12] (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.googlemail.com with ESMTPSA id 44-v6sm44550518wrv.47.2018.05.23.13.01.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 May 2018 13:01:44 -0700 (PDT) Subject: Re: [PATCH 1/2] slimbus: ngd: dt-bindings: Add slim ngd dt bindings To: Rob Herring Cc: Greg Kroah-Hartman , Karthikeyan Ramasubramanian , sdharia@quicinc.com, girishm@quicinc.com, "linux-kernel@vger.kernel.org" , Mark Rutland , Banajit Goswami , devicetree@vger.kernel.org, Mark Brown , linux-arm-msm , Linux-ALSA References: <20180516165118.16551-1-srinivas.kandagatla@linaro.org> <20180516165118.16551-2-srinivas.kandagatla@linaro.org> <20180523164023.GA24671@rob-hp-laptop> <4b83b699-59ad-b177-f360-3e76ba847892@linaro.org> From: Srinivas Kandagatla Message-ID: <9bf83e8b-df06-ead9-1075-8b1a387d6052@linaro.org> Date: Wed, 23 May 2018 21:01:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed 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 On 23/05/18 20:28, Rob Herring wrote: > On Wed, May 23, 2018 at 1:11 PM, Srinivas Kandagatla > wrote: >> >> >> On 23/05/18 17:40, Rob Herring wrote: >>>> >>>> + >>>> +- qcom,ngd-id >>>> + Usage: required >>>> + Value type: >>>> + Definition: ngd instance id in the controller >>> >>> Why do you need this? >>> >> Please ignore my comment from previous reply. >> >> There are more than one instances of ngd in this slim controller. >> We need this to make sure we are programming the correct one. > > Doesn't the parent-child relationship of devices on the bus provide > that? Thanks for the hint, that sounds like the actual problem here, If I represent the node with proper parent-child relationship like this, it will remove the need of this property and would work perfectly in case we want to support multiple ngds in future! slim@91c0000 { compatible = "qcom,msm8996-slim"; reg = <0x91c0000 0x2C000>; interrupts = <0 163 0>; dmas = <&slimbam 3>, <&slimbam 4>; dma-names = "rx", "tx"; #address-cells = <1>; #size-cells = <1>; ngd@1 { reg = <1>; #address-cells = <1>; #size-cells = <1>; codec@1 { compatible = "slim217,1a0"; reg = <1 0>; }; }; }; If you mean to provide consistent numbering to userspace, then > that's not a DT problem (nor one that Linux plans to solve). > No, this is not problem am trying to solve. >> We also need this instance ID during powering it up using QMI. > > Wouldn't that be a QMI ID? It is passed as parameter to SLIMBUS_QMI_SELECT_INSTANCE_REQ_V01 request. thanks, srini > > Rob >