staging: et131x: Fix 64bit tx dma address handling
authorMark Einon <mark.einon@gmail.com>
Thu, 18 Oct 2012 20:34:22 +0000 (21:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Oct 2012 23:01:32 +0000 (16:01 -0700)
commit998f6dfb61e52e1f42d97f9fab1bf7c8077bc293
tree4ee16f58aff56d0635660506adc21a449dc1394b
parentf1b540b92c54531484d00bb790ad47f3f44b2798
staging: et131x: Fix 64bit tx dma address handling

The driver checks that the device can handle 64bit DMA addressing in
et131x_pci_setup(), but then assumes that the top dword of a tx dma
address is always zero when creating a dma mapping in nic_send_packet().
Fix the mapping to use the higher dword of the dma_addr_t returned by
dma_map_single() and skb_frag_dma_map().

Also remove incorrect comments stating that dma_map_single() only returns
a 32 bit address.

Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/et131x/et131x.c