From patchwork Fri Mar 23 05:03:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Govind Singh X-Patchwork-Id: 10302697 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CB77260384 for ; Fri, 23 Mar 2018 05:04:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B86B428BC0 for ; Fri, 23 Mar 2018 05:04:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB52B28B9A; Fri, 23 Mar 2018 05:04:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5910E28B9A for ; Fri, 23 Mar 2018 05:04:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=PzpBJ6+8umNuALQLDiaVqGpnF/m5B/sfRVKJLOseISY=; b=W77OTC2faz4Y2gWtUoj0cCOsTn oYST/h+lacDx2lxExlFghpRurme/eHSyTLWF44tD83SZ+GnxFiDT4SAWJbcv4ClVXFCzlLZT2Wko+ Tp2pBid9g0sdhOFydJxuV8ItLh1lXKgIVW1DCeNYc39wrvrW1Qs/gxxGNhMNYLnZzEZV4fZWDPJyQ 57RKSmrxusVtfi3j6gGqv9ON9i/HLCpZx5LMEMj0Z6vhm9ol3Y8HaSOMp7bBWZOAKLzlBYLovb8JL BIBzR50iCVAq/5n9bjS+8GMCXu+N4Wo7d3OVIgJ/zxk/abiGZBn7GsAGQ6VLEUBOT5M2/UKHF+Voa awWADtMA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ezEsj-0002xs-9y; Fri, 23 Mar 2018 05:04:49 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ezEsA-0002Uk-VQ for ath10k@lists.infradead.org; Fri, 23 Mar 2018 05:04:20 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id D456F60C54; Fri, 23 Mar 2018 05:04:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521781446; bh=Bh92qJrYOv7RABUzawAB3OIgt/TCiJCGsGHgV2zCVs4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c2AE4Z6/j5q71XgLzJHiUaDLh++elrup7i22TWFvm4tzAH3qra4Y/7Hwr7WHSpgWr mhSM7mR8cDQo7dd4K989e8f6JDN1b4SlCZVo1vlwm7kYpgTvTpHVmnDJnLHPpL9N46 yPwTqknJhPsMu/UHQrCSmC5BGN7sab5+i6c1Q9Iw= Received: from govinds-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: govinds@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 44B7B60807; Fri, 23 Mar 2018 05:04:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521781446; bh=Bh92qJrYOv7RABUzawAB3OIgt/TCiJCGsGHgV2zCVs4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c2AE4Z6/j5q71XgLzJHiUaDLh++elrup7i22TWFvm4tzAH3qra4Y/7Hwr7WHSpgWr mhSM7mR8cDQo7dd4K989e8f6JDN1b4SlCZVo1vlwm7kYpgTvTpHVmnDJnLHPpL9N46 yPwTqknJhPsMu/UHQrCSmC5BGN7sab5+i6c1Q9Iw= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 44B7B60807 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=govinds@codeaurora.org From: Govind Singh To: ath10k@lists.infradead.org Subject: [PATCH v2 09/13] ath10k: Modify hif tx paddr to dma_addr_t type Date: Fri, 23 Mar 2018 10:33:40 +0530 Message-Id: <1521781424-24972-10-git-send-email-govinds@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1521781424-24972-1-git-send-email-govinds@codeaurora.org> References: <1521781424-24972-1-git-send-email-govinds@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180322_220415_969481_B4B567E3 X-CRM114-Status: GOOD ( 10.35 ) X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Govind Singh , linux-wireless@vger.kernel.org MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Change type of hif sg tx paddr to dma_addr_t for supporting target having addressing mode greater than 32 bit. Signed-off-by: Govind Singh --- drivers/net/wireless/ath/ath10k/hif.h | 2 +- drivers/net/wireless/ath/ath10k/pci.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/hif.h b/drivers/net/wireless/ath/ath10k/hif.h index 6da4e33..7abb13c 100644 --- a/drivers/net/wireless/ath/ath10k/hif.h +++ b/drivers/net/wireless/ath/ath10k/hif.h @@ -26,7 +26,7 @@ struct ath10k_hif_sg_item { u16 transfer_id; void *transfer_context; /* NULL = tx completion callback not called */ void *vaddr; /* for debugging mostly */ - u32 paddr; + dma_addr_t paddr; u16 len; }; diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c index 808f3d6..e7c544b 100644 --- a/drivers/net/wireless/ath/ath10k/pci.c +++ b/drivers/net/wireless/ath/ath10k/pci.c @@ -1379,8 +1379,8 @@ int ath10k_pci_hif_tx_sg(struct ath10k *ar, u8 pipe_id, for (i = 0; i < n_items - 1; i++) { ath10k_dbg(ar, ATH10K_DBG_PCI, - "pci tx item %d paddr 0x%08x len %d n_items %d\n", - i, items[i].paddr, items[i].len, n_items); + "pci tx item %d paddr %pad len %d n_items %d\n", + i, &items[i].paddr, items[i].len, n_items); ath10k_dbg_dump(ar, ATH10K_DBG_PCI_DUMP, NULL, "pci tx data: ", items[i].vaddr, items[i].len); @@ -1397,8 +1397,8 @@ int ath10k_pci_hif_tx_sg(struct ath10k *ar, u8 pipe_id, /* `i` is equal to `n_items -1` after for() */ ath10k_dbg(ar, ATH10K_DBG_PCI, - "pci tx item %d paddr 0x%08x len %d n_items %d\n", - i, items[i].paddr, items[i].len, n_items); + "pci tx item %d paddr %pad len %d n_items %d\n", + i, &items[i].paddr, items[i].len, n_items); ath10k_dbg_dump(ar, ATH10K_DBG_PCI_DUMP, NULL, "pci tx data: ", items[i].vaddr, items[i].len);