linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] ssb: Partial revert of 4ac5846 to fix coherent DMA mask setting
       [not found] <1213274522-7059-1-git-send-email-kirill@shutemov.name>
@ 2008-06-12 12:52 ` Michael Buesch
  0 siblings, 0 replies; only message in thread
From: Michael Buesch @ 2008-06-12 12:52 UTC (permalink / raw)
  To: Kirill A. Shutemov; +Cc: linux-kernel, netdev, Glauber Costa

On Thursday 12 June 2008 14:42:02 Kirill A. Shutemov wrote:
> dma_set_mask() doesn't set coherent_dma_mask, this can cause
> strange error like "powering down PHY" in b44(bz #10473).
> 
> At x86_64 this error had been hidden until aa99b16.

This patch is wrong. I will send the right patch soon.


> Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
> ---
>  drivers/ssb/main.c |    5 +++--
>  1 files changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/ssb/main.c b/drivers/ssb/main.c
> index 7cf8851..b7fbbc4 100644
> --- a/drivers/ssb/main.c
> +++ b/drivers/ssb/main.c
> @@ -1170,8 +1170,9 @@ int ssb_dma_set_mask(struct ssb_device *ssb_dev, u64 mask)
>  	struct device *dma_dev = ssb_dev->dma_dev;
>  
>  #ifdef CONFIG_SSB_PCIHOST
> -	if (ssb_dev->bus->bustype == SSB_BUSTYPE_PCI)
> -		return dma_set_mask(dma_dev, mask);
> +	if (ssb_dev->bus->bustype == SSB_BUSTYPE_PCI &&
> +	    !dma_supported(dma_dev, mask))
> +		return -EIO;
>  #endif
>  	dma_dev->coherent_dma_mask = mask;
>  	dma_dev->dma_mask = &dma_dev->coherent_dma_mask;



-- 
Greetings Michael.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-06-12 12:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1213274522-7059-1-git-send-email-kirill@shutemov.name>
2008-06-12 12:52 ` [PATCH] ssb: Partial revert of 4ac5846 to fix coherent DMA mask setting Michael Buesch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).