Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp623615ybl; Thu, 23 Jan 2020 05:00:03 -0800 (PST) X-Google-Smtp-Source: APXvYqzX4MtRpuoKrwLj4awPY4BIgBWyL6WUYUguEUmbd8/eO8gv96CuaRhemWoehB3luRbG3d5G X-Received: by 2002:a9d:3a66:: with SMTP id j93mr11549843otc.25.1579784403558; Thu, 23 Jan 2020 05:00:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579784403; cv=none; d=google.com; s=arc-20160816; b=Tn4spLTYxNOKs1IeawPUbwVZ/DeGdcq4YqUs8+Ha3u8J9PYLQrgyE02JXV0uod9BFD mZ0T1zKOC/8OewiCcOwRoPohsbHJvGXa6aHOHiVz6JUToIiSO7Qh68reix9zSkyrwC27 FuCoTxFsWyu2MwItFR5jdXXYsF9OV4SsTpZhlrXYSq76ilfFqjts4VvtdHsmcn8HYp9H t+wbHtWPS3P0Tjy/o+cb9qVzeZCtwaC3N3jO8etaaHMJXUEO5OItuaotIU1kJIml/DsM cO4ldq65auafQ3FZFlmlwvBCYzT2/N7JJMuOBZvuT377j7pODbHh9LuM7C+Afnj5o6s5 6BQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=gRrS+wAVapcVeTwDEyb5xLab5wOMQ7qAwvxR7ZkfMzo=; b=kjuIhKtYUHNPemQakquG5uIQ+4Y5MSw0vD+i4sbSleuZ+CkxMmxQISjS2UKQiW/xHc ApePgp5EfbEIIqbNrUCB3L/hiKiPuL9Ir5SVObxA7UodNacVtoS/RKOeVRbedER7polM EIVO6GBtfDnkz9VucZIeS1uK3u03HayMtuQ/qCwR4s+ZifNLP3z6P7+uqbqenCRwXipO 1vDGGo58qK9s3Un2RVQjNfiOJuax5w85XBCeboxIvkk4anWPLeLiZpRUeAFnQZbRpKIf VIjPA9SPlzVAQ4YGMa3F9fpAN0gV8lEI+Agj1giytsb//i/cTIA0XDbHtI+PFsH0T1Qe ZIuA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g16si1078980otj.79.2020.01.23.04.59.48; Thu, 23 Jan 2020 05:00:03 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726885AbgAWM6l (ORCPT + 99 others); Thu, 23 Jan 2020 07:58:41 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:37381 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726227AbgAWM6l (ORCPT ); Thu, 23 Jan 2020 07:58:41 -0500 Received: from mail-qv1-f45.google.com ([209.85.219.45]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPSA (Nemesis) id 1N0G9p-1jr6dM0q8N-00xG8e; Thu, 23 Jan 2020 13:58:39 +0100 Received: by mail-qv1-f45.google.com with SMTP id t6so1412664qvs.5; Thu, 23 Jan 2020 04:58:38 -0800 (PST) X-Gm-Message-State: APjAAAWhSrSmpmINUrzcXTkhCSOxhUmueZghXd1m+DLK9z0SDQXiLN1v Cl+1NEXhz9Ef79GfqOaFrf3xSLwwelHjY0RG9Qc= X-Received: by 2002:a0c:bd20:: with SMTP id m32mr15794234qvg.197.1579784317864; Thu, 23 Jan 2020 04:58:37 -0800 (PST) MIME-Version: 1.0 References: <20200123111836.7414-1-manivannan.sadhasivam@linaro.org> <20200123111836.7414-2-manivannan.sadhasivam@linaro.org> In-Reply-To: <20200123111836.7414-2-manivannan.sadhasivam@linaro.org> From: Arnd Bergmann Date: Thu, 23 Jan 2020 13:58:22 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 01/16] docs: Add documentation for MHI bus To: Manivannan Sadhasivam 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" Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:LadYn9yPM9kSuNNXed3cD/yTDIZ1fpTY2bl3GiBYQQs5A1tzaeH qXmrW4zIjNo7lPDt5QuuIYk1KOVfewmETyTSPByRtGEag/JSInPthZaCCtpducSPjuqBC9t 8NTRfryL1j5PRrR5mc0UERtyesBc0EG0qTihJJVXDtWwUgTxi8DEZUBC5Sw9jhJropaPdRp z/vLIcSEHACm+VBviYFAg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:tFCkEN7Qgog=:1fNz5XBBuB2Iv6eB8g6pDF GGODdvzoj9mhuOSljWQ7uK2D/6Fw2kMXCPTga/r80N/TaqiqkdWZV8lGmBDSGXckpfzHcwZGc mrebIbRAr74zZCBipM4AZb/YMEMvlL8iYQA5zKyHMzpm3OvoJUB+i+jtRBCUV6b2amlcU0ohp TgEhGbSfCoVt+IDPCWfjqbn0X2JJj2U8aByxvEOIvbpzilyRXks56Ci4AbjiIkwjBGMhynN7z K+ZnQXMvGdXFKMhYc26fiHGcbN/VMNuKYzFQvf5/azkojXLPUASspiLSNuKsiiZi/AMw8aehP ex/+79IUHcoNOataPUp5NzaqPA8i8Ta7ilX/fA/9afmOy9FA4EtTnbR1H+afOgDlsm34+ax59 rwiWCkmvSyXsI2kQivM66fcoUkwubXXSnyAZGNDS2fN7rMKLdmSD/4Hn+IWqt3xx4JpGe0C2c 2zmld7Iom/MnGvdHTebASKuUEu2uH5XVNDZbXQxKMRmJJlRK+XpQLUepFs5ZV0FgJLNaDtVKB Kv1fg5xYU11EuFvepSun79Qs8T5b8NPZmryZLreWl0MpGWW6uAp3c0oUSVFF04LZmXxTVJhco ASTwU8bWhnNAjJYCm5sWBpwyiMoUdpRtiy3n2/EkIjg5i5bKHj0hLFtyvTmVbBeGz7A7izGIv oHzPm549BUmU9Tfn05i1gkYwLpVkBQzFHiDZ/7HDlYFVkXx6OPRv+VCbQ/Jemzpd/0rmKX8qb ONsPEnjUPlavKk1I/iJENJ2q8bftpg1kcD9ixNe0yAIzmObKWbYL4axFLP7n2B3HVq/qngIIO FusSBeL/ggH9/yWfSlXpWQ4TCLA0gKvjqvW6RydBfRuKcANdvs= 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 12:18 PM Manivannan Sadhasivam wrote: > +============ > +MHI Topology > +============ > + > +This document provides information about the MHI topology modeling and > +representation in the kernel. > + > +MHI Controller > +-------------- > + > +MHI controller driver manages the interaction with the MHI client devices > +such as the external modems and WiFi chipsets. It is also the MHI bus master > +which is in charge of managing the physical link between the host and device. > +It is however not involved in the actual data transfer as the data transfer > +is taken care by the physical bus such as PCIe. Each controller driver exposes > +channels and events based on the client device type. > + > +Below are the roles of the MHI controller driver: > + > +* Turns on the physical bus and establishes the link to the device > +* Configures IRQs, SMMU, and IOMEM > +* Allocates struct mhi_controller and registers with the MHI bus framework > + with channel and event configurations using mhi_register_controller. > +* Initiates power on and shutdown sequence > +* Initiates suspend and resume power management operations of the device. 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? Arnd