Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp881496yba; Fri, 26 Apr 2019 10:16:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyLaBG9vgPcuHg3FYD+KT6QYiidf4M23ADton39RQe/A8LxliqGpH2sK0HNqFmgw/n4GOkn X-Received: by 2002:a62:6f47:: with SMTP id k68mr48401189pfc.196.1556298996257; Fri, 26 Apr 2019 10:16:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556298996; cv=none; d=google.com; s=arc-20160816; b=bTQzgCAH3qBInZeBbRP+7J5aXmk1J1SzCKB5rrv/S+tC1JL9p8aNmGkREZ6spmRupy 8M8RUzuvAmdT+r5M7eDhfJhBtWOukENx2WEDz5kY9J8bI/1HNKYl/gZ+mSjPD4PZzJcc Vb0nCOHvPavrl21zutPRKGPAUt7HkJooLZRWt9Mzgh+fAr/OjpFkdfdJa5feGJlRGAjb 0nbwgmpER5MNCPCSMKKS1sRQpRF0JI8c6YFuPwBQjPqJN1FWTxyUS6eTJAudc7Q/WfK2 SaEq92Gt+ilq/bQcaBds3TkkcCM8tWoow/VYhN2lZp2Ltf3HFjuCR5w3TSjRbqdHanR9 MmyA== 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=D+8IppyqOozxG4PdiaZ9mWvzEWeWviksBV1WXrM9zgw5BW+CLo7yDaHdTg7pxsIJCo fuBSunQh6+fNKFtAWtL23ClqwPCSMT1LYGUHjYtZagU5DSavPbCmXM9OVIzRrFEiOjUH rzgqf73G/YOP35DCDqhGJBRbJc9rP69RG2iYt23ie4rvmRAPoAgdwpvC9zWQ3LWzdPqW sndX/xHlhBTA7sa68dvJuHwoxS8I2sGvIpYzQVBz52NmxPWjl/yAnqpWoJfeKIHnU1U1 bfY7v4818BgnoNUYiscSgjpoAgc/bQ7oZxlWSaTn8tTqntEDEV6ut/iWqXDAO/xKTFUq Lx5w== 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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cl15si26292386plb.117.2019.04.26.10.16.21; Fri, 26 Apr 2019 10:16:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1726997AbfDZRNY (ORCPT + 99 others); Fri, 26 Apr 2019 13:13:24 -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 ); 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 To: , Ilias Apalodimas , "David S . Miller" , Ivan Khoronzhuk CC: Florian Fainelli , Andrew Lunn , Sekhar Nori , , , Murali Karicheri , Grygorii Strashko 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use dma_addr_t for desc_mem_phys and desc_hw_addr to avoid types conversions. Signed-off-by: Grygorii Strashko --- drivers/net/ethernet/ti/davinci_cpdma.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.17.1