Re: [PATCH V2] ATHEROS-ALX: Use dma_set_mask_and_coherent and fix a bug

2014-03-17 Thread David Miller
From: Peter Senna Tschudin Date: Sun, 16 Mar 2014 00:30:52 +0100 > 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.

Re: [PATCH V2] ATHEROS-ALX: Use dma_set_mask_and_coherent and fix a bug

2014-03-17 Thread David Miller
From: Peter Senna Tschudin peter.se...@gmail.com Date: Sun, 16 Mar 2014 00:30:52 +0100 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,

Re: [PATCH V2] ATHEROS-ALX: Use dma_set_mask_and_coherent and fix a bug

2014-03-16 Thread hahnjo
Am Sonntag, den 16.03.2014, 00:30 +0100 schrieb Peter Senna Tschudin: > 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

Re: [PATCH V2] ATHEROS-ALX: Use dma_set_mask_and_coherent and fix a bug

2014-03-16 Thread hahnjo
Am Sonntag, den 16.03.2014, 00:30 +0100 schrieb Peter Senna Tschudin: 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.

[PATCH V2] ATHEROS-ALX: Use dma_set_mask_and_coherent and fix a bug

2014-03-15 Thread Peter Senna Tschudin
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

[PATCH V2] ATHEROS-ALX: Use dma_set_mask_and_coherent and fix a bug

2014-03-15 Thread Peter Senna Tschudin
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