Message ID | 1556298762-8632-17-git-send-email-grygorii.strashko@ti.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp992206jan; Fri, 26 Apr 2019 10:13:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqzy9fP8qRfAbzhRpLbGyLaeLn0FYy5Bbvq1s6r70cUEybtbh5jkyJ/z1anqqAxvNOyTwgY7 X-Received: by 2002:a65:5049:: with SMTP id k9mr43302998pgo.229.1556298804416; Fri, 26 Apr 2019 10:13:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556298804; cv=none; d=google.com; s=arc-20160816; b=onbsr7xUfAycvBhDEThcBHG4YZvuQIkoNtYaTDgAXf96en7V9SDCFjpXbK/3q9MROd /l6Rss5imf3chscknJq03gN+RQ6CnO7HNFpgpOQ2J8THW1XXtlmgfd1LMpoSgSj5xnii 8cZsXwnuLEK6mCmDr8As0qwqjbWLQ6YFUZafS8OzIChgbT3AGA7QbihsI9EzoMt6iGhS gTxyO+JtJF4pfo0OFtpJP6sQxU3UiR67lvEia4dvkVnQ1kjj7aDPlH6GNBXZGrLKWr8T DuQ35dw9yW6n/2P+XnOiYXvpprMGWawyqwVLZO4CXZpay2YR9RwS2PjCG0JVTYTVHpf3 ow5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=FJ79FWKxjr5nMQ7yXykTBrwlda37Fmsk8w8dpKtChuA=; b=HZKWSvrSh4hzwVMY3zFTUku67FysIo/wgm9w6nVtGuZD0VVFbA57dUh+7y0Wt52zZM gPzO41LpUkQsb2Ma7iBDKHgpQGgFa4VZTXv0Kq4cIMKejyJIfS7SiA1StvPuVngGeU/A uXL987UsWFfEIrGyl5srKMvOP/iCSpkWtIB9i+zC4lQ6fw1tEf1q7kHhOtVDh0v/HKNd IvhMeEmmUbMSshWGEi8c4xTvV0ttUEEU/Z97RoEzddfG04fOcb8cguKeADxVfgnCyFJs ZHyBvdPO4O7+FkxIDS+1RIUzaw+eYo0P9rAK1g6BOqCahoNO1p5ZowGsJAbl/6jGseDT XKKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=jRrj13Yx; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: <linux-omap-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i8si25901748pfd.275.2019.04.26.10.13.24; Fri, 26 Apr 2019 10:13:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=jRrj13Yx; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726960AbfDZRNX (ORCPT <rfc822;kelley.spoon@linaro.org> + 5 others); Fri, 26 Apr 2019 13:13:23 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:47804 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726952AbfDZRNV (ORCPT <rfc822; linux-omap@vger.kernel.org>); Fri, 26 Apr 2019 13:13:21 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x3QHDHYr072657; Fri, 26 Apr 2019 12:13:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1556298797; bh=FJ79FWKxjr5nMQ7yXykTBrwlda37Fmsk8w8dpKtChuA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=jRrj13YxKFjy/LC/TKuOO5WLPm7pjb4NiQtUAi1tNk1LKUB5Erxttx96bdFzMO+0w 7xtF/c+bmvFz4xskepGikAfoZAOfoGu7I9X1nvg72H1wbBp2vhYqtYPU/KSQW5Iy4m 8Hh5isMR0brI57YvsCE3CAZgO8mD+f7p2zuNycO0= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x3QHDHn4130283 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 26 Apr 2019 12:13:17 -0500 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 26 Apr 2019 12:13:17 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Fri, 26 Apr 2019 12:13:17 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id x3QHDFQS119214; Fri, 26 Apr 2019 12:13:16 -0500 From: Grygorii Strashko <grygorii.strashko@ti.com> To: <netdev@vger.kernel.org>, Ilias Apalodimas <ilias.apalodimas@linaro.org>, "David S . Miller" <davem@davemloft.net>, Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> CC: Florian Fainelli <f.fainelli@gmail.com>, Andrew Lunn <andrew@lunn.ch>, Sekhar Nori <nsekhar@ti.com>, <linux-kernel@vger.kernel.org>, <linux-omap@vger.kernel.org>, Murali Karicheri <m-karicheri2@ti.com>, Grygorii Strashko <grygorii.strashko@ti.com> Subject: [PATCH net-next v2 16/20] net: ethernet: ti: davinci_cpdma: use dma_addr_t for desc_mem_phys and desc_hw_addr Date: Fri, 26 Apr 2019 20:12:38 +0300 Message-ID: <1556298762-8632-17-git-send-email-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1556298762-8632-1-git-send-email-grygorii.strashko@ti.com> References: <1556298762-8632-1-git-send-email-grygorii.strashko@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: <linux-omap.vger.kernel.org> X-Mailing-List: linux-omap@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/drivers/net/ethernet/ti/davinci_cpdma.h b/drivers/net/ethernet/ti/davinci_cpdma.h index 7d38210f3267..10376062dafa 100644 --- a/drivers/net/ethernet/ti/davinci_cpdma.h +++ b/drivers/net/ethernet/ti/davinci_cpdma.h @@ -27,8 +27,8 @@ struct cpdma_params { int num_chan; bool has_soft_reset; int min_packet_size; - u32 desc_mem_phys; - u32 desc_hw_addr; + dma_addr_t desc_mem_phys; + dma_addr_t desc_hw_addr; int desc_mem_size; int desc_align; u32 bus_freq_mhz;
Use dma_addr_t for desc_mem_phys and desc_hw_addr to avoid types conversions. Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> --- drivers/net/ethernet/ti/davinci_cpdma.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1