From: Michael Buesch <mb@bu3sch.de>
To: "Kirill A. Shutemov" <kirill@shutemov.name>
Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
Glauber Costa <gcosta@redhat.com>
Subject: Re: [PATCH] ssb: Partial revert of 4ac5846 to fix coherent DMA mask setting
Date: Thu, 12 Jun 2008 14:52:24 +0200 [thread overview]
Message-ID: <200806121452.24592.mb@bu3sch.de> (raw)
In-Reply-To: <1213274522-7059-1-git-send-email-kirill@shutemov.name>
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.
parent reply other threads:[~2008-06-12 12:53 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <1213274522-7059-1-git-send-email-kirill@shutemov.name>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200806121452.24592.mb@bu3sch.de \
--to=mb@bu3sch.de \
--cc=gcosta@redhat.com \
--cc=kirill@shutemov.name \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®