Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Marcel Holtmann and committed by
Johan Hedberg
bc721970 5bc00b5c

+2 -1
+2 -1
drivers/bluetooth/btsdio.c
··· 73 73 #define REG_CL_INTRD 0x13 /* Interrupt Clear */ 74 74 #define REG_EN_INTRD 0x14 /* Interrupt Enable */ 75 75 #define REG_MD_STAT 0x20 /* Bluetooth Mode Status */ 76 + #define REG_MD_SET 0x20 /* Bluetooth Mode Set */ 76 77 77 78 static int btsdio_tx_packet(struct btsdio_data *data, struct sk_buff *skb) 78 79 { ··· 213 212 } 214 213 215 214 if (data->func->class == SDIO_CLASS_BT_B) 216 - sdio_writeb(data->func, 0x00, REG_MD_STAT, NULL); 215 + sdio_writeb(data->func, 0x00, REG_MD_SET, NULL); 217 216 218 217 sdio_writeb(data->func, 0x01, REG_EN_INTRD, NULL); 219 218