Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp656694ybl; Thu, 23 Jan 2020 05:31:26 -0800 (PST) X-Google-Smtp-Source: APXvYqwEDTcp7JkmZDhqjBH6TNwoga4oGRKZ1R+oEDqpLypAIAIXyjqZF6RzVp7UxINPGtnbgv46 X-Received: by 2002:aca:8d5:: with SMTP id 204mr10196301oii.141.1579786286589; Thu, 23 Jan 2020 05:31:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579786286; cv=none; d=google.com; s=arc-20160816; b=yddCLFtyOI2K7Nr7yz84ejvkb6CvYmm23vbbOXRfY2IoBJBpietJi+XpGfbx8Q8oYX O1UtEtcgBa3bAWd7mtQ3spKDJRT5tj37k4Ef9dy1xTPikz0RNNPm+K0h5B2bgt5TISM0 vryDkx3fi6ef0TQHyFUeUFJ/TInYZQpqOW6Q9Aq9YaulWQMvZ/ec6A1o47wAQS7xLfNp D3bIyxRo7Aifeow+0lCsAN8d/0/DFuzHeqUsiakyWZZ3l/iCd+xjbYhdvh1s2DSABMGp Cwi7n0JSDsoyYxBSYnrZVzTjuuSmDCt7mpJLKtJ2CVVfRKFEv52tr1hTmneV6b1NTbZ/ faJA== 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=c3Jf7YornRWAcLPIhzKeqbQgyPavsrhhAxYWXcZAFbQ=; b=yZlAJqcueUR+jxX5uXLDTjVsBxcxjkexXuqxPNi/RNz4rtPpGZS1fcN81+o0y2mten me+lRECdm9e+zs+Gde1i6VARDfZotGIolJPrFFCYUf0JIRdBTIQXL0wWxCFx+ZoAQjwo cV4sFsrG8FuDsyJlMyo9B0OlApA5T82Qc5F0hNW8FCLYUO3aBTKFiNSp2bV3kejf3zxs klFZCWtg6ppg9iO2u1pT+O6eZqwp0/j3+Sp6KyFH0idmqJg7olmogGe3ls++bdvTcb20 Ys/RVFgM6tAG7KOySaR4fE1ZW6SEZpq3PKFx0CprGfp7ItkNLnZFyLYcTIqGdFqjIoWy yaeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DEyMGAeW; 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 a10si876737oid.84.2020.01.23.05.31.14; Thu, 23 Jan 2020 05:31:26 -0800 (PST) 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=DEyMGAeW; 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 S1726761AbgAWNaT (ORCPT + 99 others); Thu, 23 Jan 2020 08:30:19 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:33448 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726729AbgAWNaT (ORCPT ); Thu, 23 Jan 2020 08:30:19 -0500 Received: by mail-pl1-f194.google.com with SMTP id ay11so1379133plb.0 for ; Thu, 23 Jan 2020 05:30:19 -0800 (PST) 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=c3Jf7YornRWAcLPIhzKeqbQgyPavsrhhAxYWXcZAFbQ=; b=DEyMGAeWS1/dCHnfqvubuElHzwpwoHrxLr1c2h4oYR0RbGR2X54v5m7I+bXyLqI9uI JnzxuyDNAjCST4K/hvvOD9FKhuv/2UYfvOFmzW0VtSna7dqiCx54Cd88hrfME/wG1ivG cDlLbz63wJt517U3IpkeOnCXc5p+jukIT88/29CqI360gZCzQv6Q3gAPXpOJTE6KEXl/ vpgPT4LAYpscBQaNh/aJUfHH2dHFIvvFtpJBb8R86G5Cn+iyU6YnafU3TNpJVRfaxOub cPtxmYWWY6ka7GINgvGUcANfLVQGXMeeBkW8ThFAYvxXUFNByRYGnrUT/q9d/btyjnpT +6VA== 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=c3Jf7YornRWAcLPIhzKeqbQgyPavsrhhAxYWXcZAFbQ=; b=rIiT7fIpYs+c3hXbXlksQysPHDB0p2nFBPJPVQeS+RF2jclixBzCtAFfNeWxVS2Rfe bPw12H6wb9WTnR6A/XGcNpJVObVbHg0VzCfCA1s9QcaWzlBRfiVQx3/XJKD0+ObPJ9uW 2Y8Hpo3xpZSAEZASxyIclok7FGUYt5KmSiR3grJZm/5deizyfYeF9ZyYFa++pmVcqxQt wZx6QXQadMlHxgx0zMSvkso1wHOqr/A4wpR8hQgm2NDA5PwYYS3pYIZtciNWVPEL3pD4 M6QHOA+W5r4NaWqNgeFfcCdvJq5YX0f6fSKq3i6+H9nYHZOSFC2Qir8QzeEWrH84qsea yejg== X-Gm-Message-State: APjAAAXz7h38vZfP0WUdFEtziXTmurAqkD3/rSHu6GiDVX3GTHuPlYUX uxngEaDdcqoqNBExPS/Gg6lB X-Received: by 2002:a17:90a:8001:: with SMTP id b1mr4503509pjn.39.1579786218610; Thu, 23 Jan 2020 05:30:18 -0800 (PST) Received: from mani ([103.59.133.81]) by smtp.gmail.com with ESMTPSA id r6sm2755819pfh.91.2020.01.23.05.30.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Jan 2020 05:30:17 -0800 (PST) Date: Thu, 23 Jan 2020 19:00:10 +0530 From: Manivannan Sadhasivam To: Arnd Bergmann Cc: gregkh , smohanad@codeaurora.org, Jeffrey Hugo , Kalle Valo , Bjorn Andersson , hemantk@codeaurora.org, linux-arm-msm , "linux-kernel@vger.kernel.org" , Jonathan Corbet , "open list:DOCUMENTATION" Subject: Re: [PATCH 01/16] docs: Add documentation for MHI bus Message-ID: <20200123133010.GB11366@mani> References: <20200123111836.7414-1-manivannan.sadhasivam@linaro.org> <20200123111836.7414-2-manivannan.sadhasivam@linaro.org> <20200123131015.GA11366@mani> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 23, 2020 at 02:19:51PM +0100, Arnd Bergmann wrote: > On Thu, Jan 23, 2020 at 2:10 PM Manivannan Sadhasivam > wrote: > > > > On Thu, Jan 23, 2020 at 01:58:22PM +0100, Arnd Bergmann wrote: > > > On Thu, Jan 23, 2020 at 12:18 PM Manivannan Sadhasivam wrote: > > > > > > I don't see any callers of mhi_register_controller(). Did I just miss it or did > > > you not post one? I'm particularly interested in where the configuration comes > > > from, is this hardcoded in the driver, or parsed from firmware or from registers > > > in the hardware itself? > > > > > > > I have not included the controller driver in this patchset. But you can take a > > look at the ath11k controller driver here: > > https://git.linaro.org/people/manivannan.sadhasivam/linux.git/tree/drivers/net/wireless/ath/ath11k/mhi.c?h=ath11k-qca6390-mhi#n13 > > > > So the configuration comes from the static structures defined in the controller > > driver. Earlier revision derived the configuration from devicetree but there are > > many cases where this MHI bus is being used in non DT environments like x86. > > So inorder to be platform agnostic, we chose static declaration method. > > > > In future we can add DT/ACPI support for the applicable parameters. > > What determines the configuration? Is this always something that is fixed > in hardware, or can some of the properties be changed based on what > firmware runs the device? > AFAIK, these configurations are fixed in hardware (this could come from the firmware I'm not sure but they don't change with firmware revisions for sure) The reason for defining in the driver itself implies that these don't change. But I'll confirm this with Qcom folks. Thanks, Mani > If this is determined by the firmware, maybe the configuration would also > need to be loaded from the file that contains the firmware, which in turn > could be a blob in DT. > > Arnd