From: David Vrabel <david.vrabel@csr.com>
To: Tomas Winkler <tomas.winkler@intel.com>
Cc: Marcel Holtmann <marcel@holtmann.org>,
linux-bluetooth@vger.kernel.org, guy.cohen@intel.com,
ron.rindjunsky@intel.com
Subject: Re: [PATCH net-next] iwmc3200bt: Add iwmc3200 bluetooth driver
Date: Tue, 03 Nov 2009 13:18:39 +0000 [thread overview]
Message-ID: <4AF02DAF.5050603@csr.com> (raw)
In-Reply-To: <1257204990-18669-1-git-send-email-tomas.winkler@intel.com>
Tomas Winkler wrote:
> Add Intel Wireless MultiCom 3200 SDIO BT driver
> IWMC3200 is 4Wireless Com CHIP (GPS/BT/WiFi/WiMAX).
> wmc3200bt is derived from btsdio driver
Can you list the hardware differences between this chip and the standard?
> + unsigned char tx_buf[2048];
> + unsigned char rx_buf[2048];
I don't think these buffers are cache line aligned so can't be used for DMA.
> + /* in IWMC_BT we need to read the transfer length
> + * before interrupt clearing */
> + val1 = sdio_readb(data->func, REG_H2D_COUNT_L, &err);
> + IBT_DBG(data->func, "%s to read len1,"
> + " reg_addr=%x ret=%d val=%x\n",
> + err ? "Failed" : "Succeeded",
> + REG_H2D_COUNT_L, err, err ? 0xff : val1);
> + if (err == 0) {
> + val2 = sdio_readb(data->func, REG_H2D_COUNT_H, &err);
> + IBT_DBG(data->func, "%s to read len2,"
> + " reg_addr=%x ret=%d val=%x\n",
> + err ? "Failed" : "Succeeded",
> + REG_H2D_COUNT_H, err, err ? 0xff : val2);
Wow. Intel really messed up the hardware here. An extra two SDIO
commands per packet? I guess no one was thinking of performance...
David
--
David Vrabel, Senior Software Engineer, Drivers
CSR, Churchill House, Cambridge Business Park, Tel: +44 (0)1223 692562
Cowley Road, Cambridge, CB4 0WZ http://www.csr.com/
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
prev parent reply other threads:[~2009-11-03 13:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-02 23:36 [PATCH net-next] iwmc3200bt: Add iwmc3200 bluetooth driver Tomas Winkler
2009-11-03 1:40 ` Marcel Holtmann
2009-11-03 1:55 ` Marcel Holtmann
2009-11-03 8:12 ` Tomas Winkler
2009-11-03 8:56 ` Marcel Holtmann
2009-11-03 13:18 ` David Vrabel [this message]
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=4AF02DAF.5050603@csr.com \
--to=david.vrabel@csr.com \
--cc=guy.cohen@intel.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=marcel@holtmann.org \
--cc=ron.rindjunsky@intel.com \
--cc=tomas.winkler@intel.com \
/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