From patchwork Thu Feb 15 08:49:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Govind Singh X-Patchwork-Id: 10220699 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 A1376601E7 for ; Thu, 15 Feb 2018 08:51:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 91D67290B4 for ; Thu, 15 Feb 2018 08:51:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 867A0290C0; Thu, 15 Feb 2018 08:51:40 +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 36001290B4 for ; Thu, 15 Feb 2018 08:51:40 +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: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:In-Reply-To: References:List-Owner; bh=5UVMDAjBM/5jAg/HRwGkGDSUADO+xOpcO/InMXTOhzo=; b=DV+ vE1njj62kvBqMDQYxoN35CQ3u5Q1056J67+tO7VQmY0EqoSi5oCJe4liiCLGy7YqeXWTapnRf1PzA 3ikS99blapk5klorj/jbyd1wBeXG1+i9iPh0IFBlhy2Cy5CpEmaK96woG95A1Ej7ViLL8tbMMozSH jvJ++mPhbNHPKir6VfHYYvBOx7dz+7nvFLD65MKyNzJ0H/zj5YsjDtJZ1nqXvn4b4Vdkywg4a18z/ ZS8QskXOnMxx+G99K2p2YKw5w8S/QoLVQXvXCBpem8ZnglA7G3+w38rn89O4NL2LqVTb6NyiIWEf4 /ulEvio56JwxEUYjfMB4IpSZnSzIsHg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1emFGN-0001LE-7G; Thu, 15 Feb 2018 08:51:31 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1emFF1-0007LY-NW for ath10k@lists.infradead.org; Thu, 15 Feb 2018 08:50:16 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id E50CD60F8D; Thu, 15 Feb 2018 08:49:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1518684596; bh=LYPRHEX3J+Gx93Z5LzvXLiB6tfd8mZgwCtwtj34D66Y=; h=From:To:Cc:Subject:Date:From; b=P2ubBrsR4g0hgsfwDVpgTD/93IN38KRdZnP3WLpdhD7NHZrG18PkN41XsZfnDnAIV 9G9ufKIzzMapKWPtTnZSKLAJ8YUe1JBxv+Vcmjlmysslwurl3MSVAD77YSb8lhCg7N d9UMq3GzjeUOaOs24rIsLuhqxbobMp+eUZs34wzg= 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 3F8336043F; Thu, 15 Feb 2018 08:49:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1518684596; bh=LYPRHEX3J+Gx93Z5LzvXLiB6tfd8mZgwCtwtj34D66Y=; h=From:To:Cc:Subject:Date:From; b=P2ubBrsR4g0hgsfwDVpgTD/93IN38KRdZnP3WLpdhD7NHZrG18PkN41XsZfnDnAIV 9G9ufKIzzMapKWPtTnZSKLAJ8YUe1JBxv+Vcmjlmysslwurl3MSVAD77YSb8lhCg7N d9UMq3GzjeUOaOs24rIsLuhqxbobMp+eUZs34wzg= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 3F8336043F 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 09/13] ath10k: Modify hif tx paddr to dma_addr_t type Date: Thu, 15 Feb 2018 14:19:52 +0530 Message-Id: <1518684592-5773-1-git-send-email-govinds@codeaurora.org> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180215_005007_946594_D59A25B7 X-CRM114-Status: UNSURE ( 9.83 ) X-CRM114-Notice: Please train this message. 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 8abaccc..cda8689 100644 --- a/drivers/net/wireless/ath/ath10k/pci.c +++ b/drivers/net/wireless/ath/ath10k/pci.c @@ -1375,8 +1375,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); @@ -1393,8 +1393,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);