Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1343411ybh; Thu, 23 Jul 2020 06:39:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2N51swZdIHzNhjOCO8zmTaaFgijqEmSw4fLEumkbdjFvursVCYKwymYqWz7wrzc1pkTpB X-Received: by 2002:aa7:d0c5:: with SMTP id u5mr3982701edo.163.1595511546376; Thu, 23 Jul 2020 06:39:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595511546; cv=none; d=google.com; s=arc-20160816; b=JX8Vir0hMhjZDcjJyfNVhEUIofScMx+T7iwxmHm2gPTtmmg9kvbLFje+kXignGGSWf ZoNAmnh8W1SHTbSLArQJ5SC03bKwEToTb+KSxURbEAx4+EuglvpcFSfouoavv7Cq2rJz SliAsiUgX4vWxYw1ZQ94uA+CWXIqntFfmttJ3IU/282CkuOVJ9qRjQFmk4tZvnzLK4E1 ZyJv/XILOmOOwDM+82fY/or5nW3zOvFwLjuUpHbqVuSYdOBowNAECkxChdxQ/5h9Qc+j AFGA++LpWuJWrA2PSRS9DMbf4D83Wue0x2v/ALS9yNOB/IiecVW0Or+Um6FYJgYwKkAi Vg0Q== 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:dkim-signature; bh=gbgUXJzoQmu/CyHCYX1gPrRyz6UxytrtLC+nHiKEIms=; b=oYBl+rcwWq3wRFqwJH3OiylslxB7GfiJnPr7/tXyLTicD5wjnOjEikzHlJT8JI8mdA oKGHsKZ7Vmezpc8CddBU9UrYHyuLAfdGur4md9DGJNx178yar3XK09QCeSmkCx9Y5qKU no4Cm6Hgl8jHEPnOiQmdKdeDFW8SXGPYM6p/kDQKE6Uty3+0JTVEXJd7G2Vc/C2IfqyK KIAU/wdKdtLm+v1epcWpffkDj97/QvYo/7p2GmFQZTE/ld4TysnPpRMYPpJqcLdvR5t/ E3ySTaqUXK0oQWcVj9Rj8K3wqo+X8UL/sbCeuhM6yMGsdgjugrZiic+zN+A1Ptrqwhnr APiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aBqqAblt; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x5si1986013eje.481.2020.07.23.06.38.43; Thu, 23 Jul 2020 06:39:06 -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=@gmail.com header.s=20161025 header.b=aBqqAblt; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729347AbgGWNic (ORCPT + 99 others); Thu, 23 Jul 2020 09:38:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727859AbgGWNib (ORCPT ); Thu, 23 Jul 2020 09:38:31 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EB1BC0619DC; Thu, 23 Jul 2020 06:38:31 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id b25so6370884ljp.6; Thu, 23 Jul 2020 06:38:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=gbgUXJzoQmu/CyHCYX1gPrRyz6UxytrtLC+nHiKEIms=; b=aBqqAbltM+xUguh9M2EcIA+vB5pJzYcXMV5fiW4zGf61niGUcbpW3cIHgEPvNA7sb+ 1MyJ3xoYb84iLhvCsV5kvenqFl05rD+1Fi3Z4S5PEyS7b0JMoPVn8mCntT8XutBLkAYE F6PQZybyGVUsAv541gjmniPmlHxoJONtO5lUESWACgtKovG4ZqZnkXbVD67VNoe1dDYu wLtkRkRQthfaJqDlxTVSZMNsQhx8lpjaH91Lnn1TR9dNIc37j7U4nLjKP0dy31+y2+J0 7RluXMONkHpUC0OnOTaiua+r6AiE0vZ91Qmet1fvR+QcfPvSHDRxOlKAeAOeWsJZg4o8 P6OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=gbgUXJzoQmu/CyHCYX1gPrRyz6UxytrtLC+nHiKEIms=; b=K44QRLEBbxS6aN2Iw9PpuNE9hkIKTnLGzN6InNvQyGgBfsbFmNVh6yof7XplIgGdoI k5WYPABLTcxHa77AXj6/EDDmLeqrWYGcCcTJaXaBIIgKJslvTlLmo+GTaWpXUUKAFTXk XHFeZhIu+tY3qm0VMYZqXJuj/egidCzyP8I/d9svm3oS77ZFIZf6TGegwf6Z+AqqjYSY bTCRrq5TcJwmTndY4MxTLxigNOOSS42bF9w0Oya3FvRI2BmDarDgyvZiK5HN9UPk1zCN Zeh2jZZYVhOYW6MtoEkHCzlCirq7cGj3mmNhGSMPtkIiogjsrhA47TI24bL09FOzgpK0 pDFg== X-Gm-Message-State: AOAM532nRIGh0Sr3WoKELURbbjD1AtfF88+EYhyFXncDvGnUpms1KN97 ByxOyqZqAWcxSOZpIcX0oIs= X-Received: by 2002:a2e:9957:: with SMTP id r23mr2131437ljj.127.1595511509830; Thu, 23 Jul 2020 06:38:29 -0700 (PDT) Received: from [192.168.2.145] (ppp91-76-12-16.pppoe.mtu-net.ru. [91.76.12.16]) by smtp.googlemail.com with ESMTPSA id h6sm2861765lfc.84.2020.07.23.06.38.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Jul 2020 06:38:29 -0700 (PDT) Subject: Re: [PATCH 6/7] i2c: tegra: DMA support for t186 and t194 To: Krishna Yarlagadda , linux-i2c@vger.kernel.org, thierry.reding@gmail.com Cc: jonathanh@nvidia.com, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, ldewangan@nvidia.com, smohammed@nvidia.com, rgumasta@nvidia.com References: <1595506733-10307-1-git-send-email-kyarlagadda@nvidia.com> <1595506733-10307-6-git-send-email-kyarlagadda@nvidia.com> From: Dmitry Osipenko Message-ID: <18e4e5df-3d8f-3e52-b9b2-ff0558d6196c@gmail.com> Date: Thu, 23 Jul 2020 16:38:28 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <1595506733-10307-6-git-send-email-kyarlagadda@nvidia.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 23.07.2020 15:18, Krishna Yarlagadda пишет: > Enable GPC DMA support for Tegra186 and Tegra194 > > Signed-off-by: Rajesh Gumasta > Signed-off-by: Krishna Yarlagadda > --- > drivers/i2c/busses/i2c-tegra.c | 25 ++++++++++++++++++++----- > 1 file changed, 20 insertions(+), 5 deletions(-) > > diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c > index 8ab968e..77198fc 100644 > --- a/drivers/i2c/busses/i2c-tegra.c > +++ b/drivers/i2c/busses/i2c-tegra.c > @@ -236,6 +236,7 @@ struct tegra_i2c_hw_feature { > u32 setup_hold_time_hs_mode; > bool has_interface_timing_reg; > bool has_slcg_support; > + bool has_gpc_dma; > }; > > /** > @@ -432,11 +433,18 @@ static int tegra_i2c_init_dma(struct tegra_i2c_dev *i2c_dev) > dma_addr_t dma_phys; > int err; > > - if (!i2c_dev->hw->has_apb_dma) > - return 0; > - > - if (!IS_ENABLED(CONFIG_TEGRA20_APB_DMA)) { > - dev_dbg(i2c_dev->dev, "Support for APB DMA not enabled!\n"); > + if (i2c_dev->hw->has_gpc_dma) { > + if (!IS_ENABLED(CONFIG_TEGRA_GPC_DMA)) { Single line, please. > + dev_dbg(i2c_dev->dev, "Support for GPC DMA not enabled!\n"); > + return 0; > + } > + } else if (i2c_dev->hw->has_apb_dma) { > + if (!IS_ENABLED(CONFIG_TEGRA20_APB_DMA)) { Here too. > + dev_dbg(i2c_dev->dev, "Support for APB DMA not enabled!\n"); > + return 0; > + } > + } else { > + dev_dbg(i2c_dev->dev, "DMA is not enabled!\n"); Also, please drop all the exclamation marks.