Skip to content

Commit bc72197

Browse files
holtmannJohan Hedberg
authored andcommitted
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 <[email protected]> Signed-off-by: Johan Hedberg <[email protected]>
1 parent 5bc00b5 commit bc72197

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/bluetooth/btsdio.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ struct btsdio_data {
7373
#define REG_CL_INTRD 0x13 /* Interrupt Clear */
7474
#define REG_EN_INTRD 0x14 /* Interrupt Enable */
7575
#define REG_MD_STAT 0x20 /* Bluetooth Mode Status */
76+
#define REG_MD_SET 0x20 /* Bluetooth Mode Set */
7677

7778
static int btsdio_tx_packet(struct btsdio_data *data, struct sk_buff *skb)
7879
{
@@ -212,7 +213,7 @@ static int btsdio_open(struct hci_dev *hdev)
212213
}
213214

214215
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);
216217

217218
sdio_writeb(data->func, 0x01, REG_EN_INTRD, NULL);
218219

0 commit comments

Comments
 (0)