Преглед изворни кода

qcacmn: Do not truncate DMA addresses to 32 bits

A few apis were truncating DMA addresses to 32 bits

Change-Id: Ib827e3097c8319cb8932f21e2f2810a0219431e0
CRs-Fixed: 1024300
Houston Hoffman пре 8 година
родитељ
комит
2bb5098d5e
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      qdf/linux/src/qdf_nbuf.c

+ 3 - 3
qdf/linux/src/qdf_nbuf.c

@@ -1494,7 +1494,7 @@ QDF_STATUS __qdf_nbuf_map_nbytes_single(
 {
 	qdf_dma_addr_t paddr;
 
-	QDF_NBUF_CB_PADDR(buf) = paddr = (uint32_t) buf->data;
+	QDF_NBUF_CB_PADDR(buf) = paddr = buf->data;
 	return QDF_STATUS_SUCCESS;
 }
 EXPORT_SYMBOL(__qdf_nbuf_map_nbytes_single);
@@ -1723,7 +1723,7 @@ QDF_STATUS __qdf_nbuf_frag_map(
 {
 	int32_t paddr, frag_len;
 
-	QDF_NBUF_CB_PADDR(nbuf) = paddr = (int32_t) nbuf->data;
+	QDF_NBUF_CB_PADDR(nbuf) = paddr = nbuf->data;
 	return QDF_STATUS_SUCCESS;
 }
 EXPORT_SYMBOL(__qdf_nbuf_frag_map);
@@ -1732,7 +1732,7 @@ QDF_STATUS __qdf_nbuf_frag_map(
 	qdf_device_t osdev, __qdf_nbuf_t nbuf,
 	int offset, qdf_dma_dir_t dir, int cur_frag)
 {
-	int32_t paddr, frag_len;
+	dma_addr_t paddr, frag_len;
 
 	struct skb_shared_info *sh = skb_shinfo(nbuf);
 	const skb_frag_t *frag = sh->frags + cur_frag;