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
This commit is contained in:
Houston Hoffman
2016-06-03 14:57:05 -07:00
committed by Akash Patel
父節點 047571e999
當前提交 2bb5098d5e

查看文件

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