Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp328610pxu; Wed, 14 Oct 2020 02:23:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHnxahuXBArJIjDNyG/0mNFP/ybuOFA6Ngs9pp/5Ig5BI0ePuVCGIANMOuiSp2CRnkfB4M X-Received: by 2002:a17:906:1a10:: with SMTP id i16mr4281540ejf.162.1602667406906; Wed, 14 Oct 2020 02:23:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602667406; cv=none; d=google.com; s=arc-20160816; b=YI519aaKyprMN/5dEBx0hTir9krLhok5sLB4Ver2Bbf7JphuHSHj8C2oF4rlEY9yke /kwclgkfm1r8Zx8zj8eo8ALFfHN47l3yHxI7cFjgUaXuSjD2elu3lTGU7BgQidhDnZ/q iVDMEoKzU27lArONKJqdqt8SG4lL1BZvciaOIt2rQd4iytT00oFO1AZZDuN+iFf3LDko hOC8zFZHBEOoPKChrxb3MiXX/KxKte+IJYkI6yDScOGiEOq2NSVmZozeyGN4CNgvBpW+ sQKQVXppLomItycPh8dO3NMoeU8M7kAKONAQ+UX1ZsdMwdRzqA+oCVfh6NKHSZ39SQAK mKbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dmarc-filter:sender:dkim-signature; bh=wlKCgSDPNjIWu6V9NAf13pQ5o5l1qmNNLLlSVijYfUI=; b=ibS/oHODFi44fckfVkIMxDpaXpbQKOxWA/jnYlqpkKfdya+rfptUzwQe6CzP6LAGfu oME/XQC/+42lKYgXvFVKw3czQpyZrCLdwBq4ZPbfSrAuHmMh3J7In4KomVT1qySSmNF7 7gJ0x5pkEOLmWCAagC+mEMwha80K2W80VvoQ1J1CJwR6AgjlbB13h1QuGrorEhsRlbvM SBN8hWqCmYgmFI6+fv/bs6PewHJ6dt2eIKrzAtwpPDj6wNzzLZ3pcBgWyRxSt1BxoEDD HgnhqEOxZduj89v0UjiCMtmpQjN8oTfHkX39VdT3IAUEDzCRLSqTYCvP6acKUokmTfw5 jZZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=wbgLxeft; 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 d2si2091622ejm.716.2020.10.14.02.23.04; Wed, 14 Oct 2020 02:23:26 -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=wbgLxeft; 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 S1729095AbgJNJRL (ORCPT + 99 others); Wed, 14 Oct 2020 05:17:11 -0400 Received: from m42-4.mailgun.net ([69.72.42.4]:22128 "EHLO m42-4.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726323AbgJNJRL (ORCPT ); Wed, 14 Oct 2020 05:17:11 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1602667030; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=wlKCgSDPNjIWu6V9NAf13pQ5o5l1qmNNLLlSVijYfUI=; b=wbgLxeftnQx7O/mA4Z3sbMifmrxeDfn6ZVjJ+Q4llViDCBk+pLWk8wrwpPbGwKjqONA1Su3E cYb9Ws1GPMOsaTDb4EVM3prlBk7PSQlOAZirsrDrK54TE+DLYUZkdSh5u7Tz6y58QKUkbVho f4mq3tjpu2aw7FiI/dlGWGDfxEo= X-Mailgun-Sending-Ip: 69.72.42.4 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-west-2.postgun.com with SMTP id 5f86c216319d4e9cb57a93b1 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 14 Oct 2020 09:17:10 GMT Sender: akashast=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id E2C00C433C9; Wed, 14 Oct 2020 09:17: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=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, NICE_REPLY_A,SPF_FAIL,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from [192.168.1.100] (unknown [47.8.241.85]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: akashast) by smtp.codeaurora.org (Postfix) with ESMTPSA id 663C1C433C9; Wed, 14 Oct 2020 09:17:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 663C1C433C9 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=akashast@codeaurora.org Subject: Re: [PATCH v2 3/3] soc: qcom: geni: Optimize/comment select fifo/dma mode To: Douglas Anderson , Bjorn Andersson , Wolfram Sang Cc: linux-i2c@vger.kernel.org, Roja Rani Yarubandi , Stephen Boyd , Dmitry Baryshkov , linux-arm-msm@vger.kernel.org, Andy Gross , linux-kernel@vger.kernel.org References: <20201013212531.428538-1-dianders@chromium.org> <20201013142448.v2.3.I646736d3969dc47de8daceb379c6ba85993de9f4@changeid> From: Akash Asthana Message-ID: <4aa43d91-b470-afae-bb1c-3955136fb969@codeaurora.org> Date: Wed, 14 Oct 2020 14:47:02 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: <20201013142448.v2.3.I646736d3969dc47de8daceb379c6ba85993de9f4@changeid> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/14/2020 2:55 AM, Douglas Anderson wrote: > The functions geni_se_select_fifo_mode() and > geni_se_select_fifo_mode() are a little funny. They read/write a > bunch of memory mapped registers even if they don't change or aren't > relevant for the current protocol. Let's make them a little more > sane. We'll also add a comment explaining why we don't do some of the > operations for UART. > > NOTE: there is no evidence at all that this makes any performance > difference and it fixes no bugs. However, it seems (to me) like it > makes the functions a little easier to understand. Decreasing the > amount of times we read/write memory mapped registers is also nice, > even if we are using "relaxed" variants. > > Signed-off-by: Douglas Anderson Reviewed-by: Akash Asthana The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,\na Linux Foundation Collaborative Project