From: Michael Buesch <mb@bu3sch.de>
To: Felipe Maya <felipe.maya@vexcorp.com>
Cc: linux-wireless@vger.kernel.org, bcm43xx-dev@lists.berlios.de
Subject: Re: [PATCH] ssb, b43, b43legacy, b44: Rewrite SSB DMA API
Date: Thu, 3 Jul 2008 22:52:35 +0200 [thread overview]
Message-ID: <200807032252.35662.mb@bu3sch.de> (raw)
In-Reply-To: <1215102618.17143.13.camel@you>
On Thursday 03 July 2008 18:30:18 Felipe Maya wrote:
> Hi, I have applied this patch and i tested on a wl500gpv2 (BCM5354). The
> following part disable the ethernet device. If this part of the patch is
> restored the device work ok.
Well, I would say your architecture is pretty broken then.
This patch replaces an incorrect manual DMA mask setting by
a call to the official API.
Please report this to your archtitecture maintainer.
> > -int ssb_dma_set_mask(struct ssb_device *ssb_dev, u64 mask)
> > +int ssb_dma_set_mask(struct ssb_device *dev, u64 mask)
> > {
> > - struct device *dma_dev = ssb_dev->dma_dev;
> > - int err = 0;
> > + int err;
> >
> > -#ifdef CONFIG_SSB_PCIHOST
> > - if (ssb_dev->bus->bustype == SSB_BUSTYPE_PCI) {
> > - err = pci_set_dma_mask(ssb_dev->bus->host_pci, mask);
> > + switch (dev->bus->bustype) {
> > + case SSB_BUSTYPE_PCI:
> > + err = pci_set_dma_mask(dev->bus->host_pci, mask);
> > if (err)
> > return err;
> > - err = pci_set_consistent_dma_mask(ssb_dev->bus->host_pci, mask);
> > + err = pci_set_consistent_dma_mask(dev->bus->host_pci, mask);
> > return err;
> > + case SSB_BUSTYPE_SSB:
> > + return dma_set_mask(dev->dev, mask);
> > + default:
> > + __ssb_dma_not_implemented(dev);
> > }
> > -#endif
> > - dma_dev->coherent_dma_mask = mask;
> > - dma_dev->dma_mask = &dma_dev->coherent_dma_mask;
> > -
> > - return err;
> > + return -ENOSYS;
> > }
> > EXPORT_SYMBOL(ssb_dma_set_mask);
>
>
>
>
--
Greetings Michael.
next prev parent reply other threads:[~2008-07-03 20:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-20 9:50 [PATCH] ssb, b43, b43legacy, b44: Rewrite SSB DMA API Michael Buesch
2008-06-20 10:41 ` Michael Buesch
2008-06-21 0:05 ` Larry Finger
2008-06-21 9:30 ` Michael Buesch
2008-07-03 16:30 ` Felipe Maya
2008-07-03 20:52 ` Michael Buesch [this message]
2008-07-03 21:07 ` Michael Buesch
2008-07-08 15:58 ` Steve Brown
2008-07-08 17:04 ` Michael Buesch
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=200807032252.35662.mb@bu3sch.de \
--to=mb@bu3sch.de \
--cc=bcm43xx-dev@lists.berlios.de \
--cc=felipe.maya@vexcorp.com \
--cc=linux-wireless@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;
as well as URLs for NNTP newsgroup(s).