diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2013-12-29 01:10:02 -0500 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2013-12-29 14:31:07 -0500 |
commit | bc7219709978b963bc6820717e140c15547a6dd9 (patch) | |
tree | 83f1c00b1f11ce48db8e857132c9d9c99abe7d3f | |
parent | 5bc00b5c58f051bfe076be319b5e0b8062553016 (diff) |
Bluetooth: Use MD SET register for changing SDIO Type-B to Type-A
The register for setting the SDIO card mode of a Type-B Bluetooth card
is called MD SET. The MD STAT register is used for reading the current
mode back.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
-rw-r--r-- | drivers/bluetooth/btsdio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/bluetooth/btsdio.c b/drivers/bluetooth/btsdio.c index 1f6815825e61..83f6437dd91d 100644 --- a/drivers/bluetooth/btsdio.c +++ b/drivers/bluetooth/btsdio.c | |||
@@ -73,6 +73,7 @@ struct btsdio_data { | |||
73 | #define REG_CL_INTRD 0x13 /* Interrupt Clear */ | 73 | #define REG_CL_INTRD 0x13 /* Interrupt Clear */ |
74 | #define REG_EN_INTRD 0x14 /* Interrupt Enable */ | 74 | #define REG_EN_INTRD 0x14 /* Interrupt Enable */ |
75 | #define REG_MD_STAT 0x20 /* Bluetooth Mode Status */ | 75 | #define REG_MD_STAT 0x20 /* Bluetooth Mode Status */ |
76 | #define REG_MD_SET 0x20 /* Bluetooth Mode Set */ | ||
76 | 77 | ||
77 | static int btsdio_tx_packet(struct btsdio_data *data, struct sk_buff *skb) | 78 | static int btsdio_tx_packet(struct btsdio_data *data, struct sk_buff *skb) |
78 | { | 79 | { |
@@ -212,7 +213,7 @@ static int btsdio_open(struct hci_dev *hdev) | |||
212 | } | 213 | } |
213 | 214 | ||
214 | if (data->func->class == SDIO_CLASS_BT_B) | 215 | if (data->func->class == SDIO_CLASS_BT_B) |
215 | sdio_writeb(data->func, 0x00, REG_MD_STAT, NULL); | 216 | sdio_writeb(data->func, 0x00, REG_MD_SET, NULL); |
216 | 217 | ||
217 | sdio_writeb(data->func, 0x01, REG_EN_INTRD, NULL); | 218 | sdio_writeb(data->func, 0x01, REG_EN_INTRD, NULL); |
218 | 219 | ||