Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp157454pxb; Wed, 18 Aug 2021 18:45:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYOljUoMWXqNSIQh7qivMDZ7hi27QaJ5CY3ik9H1YW8AG4XJVYy/weR6Jo/3f/WTeF3e4g X-Received: by 2002:a05:6402:22b0:: with SMTP id cx16mr13502099edb.185.1629337552686; Wed, 18 Aug 2021 18:45:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629337552; cv=none; d=google.com; s=arc-20160816; b=b5zwx2svRhXYk/3iAbFVl038wLCQruE38rZKjbBiDOsYy1qyo0tQpc4mlgl3FNQhUv ggGy8I3+h/iRwMUKcTSO1tShpdbce16tszmWoYSMgEFIWve2kuqzvKjnBS8TKUvuR2YP NEayH6elHqxpjI59uvL+M4oRE0Wowg72I9WGxom1kCECMpjHNy+n6ULFiwMGo4ZbyqLZ DbXZyTpl1aFke58Zq3IbNRHcyXiw8HUrV2wbde+ZeoNl5AJmoGoELfo/M8gnE/5XdQq2 8ynxpaQRv/OkR0BLkPCXQ81U3RztQZrVfuU2BtwAPPR4BN6Rhl96Z2tBOvlJnlDUxpbk eEqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dmarc-filter:sender:dkim-signature; bh=ydbuuQhj4O9yL/mJXIGv0cLpoZ8/eYwR36JWu50bP/M=; b=TOj1mpoz+T3DM4kHWqlJCIDkwhSSbY9aa5Nlv6EytpmHfeXY2FzfHOVvxft+O2xrO+ nSbTDaVNfG3AC+FTfCW9uMtr3odzjo0SdM93ziaQ5fH6o7Welk21s8zxERLyYO0YDq+3 U2cN0lvpA41OZELn1/lT/4UoFeyRoKfk8UyeRXNEhyrgEkmzqTVChHwPMUPriuabWqO2 fJYCibXWn2ZQ9ibWaoeBtqDO/0K4dyJ7rjdQXHCRKBAQdtqH/jh8ZYbAu3uG3z4vgFve 2dMn73sMi/nyWCukPxgXsGlYHTOJrav1tqki4Kfv2biA4u6IxCSYURh7q0UekfMba0N1 5r6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=OeTIIBWe; 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 yc10si1468097ejb.683.2021.08.18.18.45.24; Wed, 18 Aug 2021 18:45:52 -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=pass header.i=@mg.codeaurora.org header.s=smtp header.b=OeTIIBWe; 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 S235265AbhHSBlt (ORCPT + 99 others); Wed, 18 Aug 2021 21:41:49 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:12344 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235325AbhHSBls (ORCPT ); Wed, 18 Aug 2021 21:41:48 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1629337272; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=ydbuuQhj4O9yL/mJXIGv0cLpoZ8/eYwR36JWu50bP/M=; b=OeTIIBWe/cIZGLpoEtlIcQGJFlSwyNytNk4+YHWzoAokkeN8Dd8im82mZoalIHp2GY/Nejza H3rf7xEtvLIlDYxuWWb69DW37WgWMi0uKYfXZX3BsyLxFio6oAHimXO/6Y/Mw1Ps1yr7GDMT DIRzpsmAWv/xubwl+UsjJjLhS+0= X-Mailgun-Sending-Ip: 198.61.254.9 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 smtp-out-n05.prod.us-east-1.postgun.com with SMTP id 611db6b6b3873958f5d5a330 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 19 Aug 2021 01:41:10 GMT Sender: hemantk=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id B6CECC43460; Thu, 19 Aug 2021 01:41:09 +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=-4.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, NICE_REPLY_A,SPF_FAIL autolearn=unavailable autolearn_force=no version=3.4.0 Received: from [10.110.16.65] (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 E2ED7C4338F; Thu, 19 Aug 2021 01:41:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org E2ED7C4338F 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=fail smtp.mailfrom=codeaurora.org Subject: Re: [PATCH v1 2/2] bus: mhi: core: Optimize and update MMIO register write method To: Bhaumik Bhatt , manivannan.sadhasivam@linaro.org Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, loic.poulain@linaro.org, quic_jhugo@quicinc.com References: <1629330634-36465-1-git-send-email-bbhatt@codeaurora.org> <1629330634-36465-3-git-send-email-bbhatt@codeaurora.org> From: Hemant Kumar Message-ID: <62646f45-6b31-af0d-4b3c-cc4b5c355a92@codeaurora.org> Date: Wed, 18 Aug 2021 18:41:07 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <1629330634-36465-3-git-send-email-bbhatt@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/18/2021 4:50 PM, Bhaumik Bhatt wrote: > As of now, MMIO writes done after ready state transition use the > mhi_write_reg_field() API even though the whole register is being > written in most cases. Optimize this process by using mhi_write_reg() > API instead for those writes and use the mhi_write_reg_field() > API for MHI config registers only. > > Signed-off-by: Bhaumik Bhatt Reviewed-by: Hemant Kumar -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project