]> git.baikalelectronics.ru Git - kernel.git/commit
ATHEROS-ALX: Use dma_set_mask_and_coherent and fix a bug
authorPeter Senna Tschudin <peter.senna@gmail.com>
Sat, 15 Mar 2014 23:30:52 +0000 (00:30 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Mar 2014 21:19:45 +0000 (17:19 -0400)
commitfa85ee0ec0b7bbd77dd08ade2b52f683b6f6a7d0
treec67d8e511502023e108ab808b367e8d34cb46ec6
parent3881a240e4b107b602801fc6785af0f7d3b7a660
ATHEROS-ALX: Use dma_set_mask_and_coherent and fix a bug

1. For the 64 bits dma mask use dma_set_mask_and_coherent instead of
   dma_set_mask and dma_set_coherent_mask.

2. For the 32 bits dma mask dma_set_coherent_mask is only called if
   dma_set_mask fails, which is unusual. Assuming this as a bug, fixes
   it by replacing calls to dma_set_mask and dma_set_coherent_mask by a
   call to dma_set_mask_and_coherent.

Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Tested-by: Jonas Hahnfeld <hahnjo@hahnjo.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/atheros/alx/main.c