Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4477070ybz; Tue, 28 Apr 2020 11:58:33 -0700 (PDT) X-Google-Smtp-Source: APiQypLmb2z4duYH9lv5ukRDkeLi7tYsTEnKSZUuiqUSBucHTec8/cv7bgmrARLP5kSrrFbsmFgT X-Received: by 2002:aa7:c40c:: with SMTP id j12mr23213298edq.169.1588100313746; Tue, 28 Apr 2020 11:58:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588100313; cv=none; d=google.com; s=arc-20160816; b=bYDhRbsT3zadhOVd51f5y0WBBbj7gsUGXNHVjdfJ45h3L8IELK1+p+A6c//sGPwe03 E25s/j4TfjZl3sMX9Xi9202O3qN/mFzwp8BO43MUiDx8MMY6nO9ve79x+j757oJ99beQ rTDXvnK8bgzZNIhlWxo6+yjITZyqtmtHYbjga54+YZao+kfT4+v+g+vZatBL9e1KVtVu k+MT5JyKRqmX+mlYTRCHS4MdIHMXmnWeKfr3e12OA+jcvs28ZJm3Ty468DiKhtKRoXxm VTYzK5zKkiUvtoSOdVxKx6wBcn5YgNo/E4xv0w+kK8pfR5oG00iSyp6vQrUxTPD1iLt/ StpA== 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:dmarc-filter :dkim-signature; bh=wBBFoP1nlQZwT1olHqun3h+s+Vta5d2qFcH5weMHSD0=; b=j0bBOVVTb12+fs4nupGYAa9MCE0F/PkoT/J3ACkiZkotCqd9s06ey+JpdyzIK4PFCN HFiPwiBL83/IaYhUk2scBJbDjh4bP4ze3DDTA6ssEAMtpWWIT29reWFHIbrTl5qqKaxR AO6ajqa9HwWk52GDYV58CNkhnVLgE3y/1Lmz6MSgTLb94GfqOPo2jm4JUGRxTqn/qvN8 I6nbYpJDleWBCPI3AhWyB18S/E/2JdbUSS0SV029BusZdYBJrdvvUrzFKPkA0Zl2xNOy yK3R9QzMvxhDumP0xfqpBxotlhtMa7T46sJ/kBpPXdnZrqOPMyWL3yPpmP0mpzdRKKZv WRDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=Dqd2nQnS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i26si2398225ejg.474.2020.04.28.11.58.10; Tue, 28 Apr 2020 11:58:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=Dqd2nQnS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728829AbgD1S4S (ORCPT + 99 others); Tue, 28 Apr 2020 14:56:18 -0400 Received: from mail26.static.mailgun.info ([104.130.122.26]:53225 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729175AbgD1S4Q (ORCPT ); Tue, 28 Apr 2020 14:56:16 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1588100176; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=wBBFoP1nlQZwT1olHqun3h+s+Vta5d2qFcH5weMHSD0=; b=Dqd2nQnSbQSLC8OVmEiD2KU2nDD3ND/BzC0dHDf7jdRiOrW1r1MDqYmpjZA4emC274VwxiOM x48YgW607YqjWzIyigUjeF1IoHrdhzZ4fh9ntvB7a7f876897aw9obslVm9j1M6s8wB1odWs QsbFXyTUvStuAeInqJUpyeM1LM4= X-Mailgun-Sending-Ip: 104.130.122.26 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5ea87c46.7f3530f41e30-smtp-out-n01; Tue, 28 Apr 2020 18:56:06 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 4DF57C433F2; Tue, 28 Apr 2020 18:56:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from [10.46.162.249] (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: hemantk) by smtp.codeaurora.org (Postfix) with ESMTPSA id 4D712C43637; Tue, 28 Apr 2020 18:56:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 4D712C43637 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=hemantk@codeaurora.org Subject: Re: [PATCH v3 3/6] bus: mhi: core: Offload register accesses to the controller To: Jeffrey Hugo , manivannan.sadhasivam@linaro.org Cc: bbhatt@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <1588003153-13139-1-git-send-email-jhugo@codeaurora.org> <1588003153-13139-4-git-send-email-jhugo@codeaurora.org> From: Hemant Kumar Message-ID: Date: Tue, 28 Apr 2020 11:56:03 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <1588003153-13139-4-git-send-email-jhugo@codeaurora.org> 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 4/27/20 8:59 AM, Jeffrey Hugo wrote: > When reading or writing MHI registers, the core assumes that the physical > link is a memory mapped PCI link. This assumption may not hold for all > MHI devices. The controller knows what is the physical link (ie PCI, I2C, > SPI, etc), and therefore knows the proper methods to access that link. > The controller can also handle link specific error scenarios, such as > reading -1 when the PCI link went down. > > Therefore, it is appropriate that the MHI core requests the controller to > make register accesses on behalf of the core, which abstracts the core > from link specifics, and end up removing an unnecessary assumption. > > Signed-off-by: Jeffrey Hugo > --- Reviewed-by: Hemant Kumar -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project