Skip to content

Commit 5b23ac1

Browse files
moore-brosholtmann
authored andcommitted
Bluetooth: btmtksdio: update register CSDIOCSR operation
That is a preliminary patch to introduce mt7921s support. Update register CSDIOCSR operation that is suggested from the vendor driver and is compatible to the all devices. Co-developed-by: Mark-yw Chen <[email protected]> Signed-off-by: Mark-yw Chen <[email protected]> Signed-off-by: Sean Wang <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
1 parent 26270bc commit 5b23ac1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

drivers/bluetooth/btmtksdio.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,8 +520,12 @@ static int btmtksdio_open(struct hci_dev *hdev)
520520
/* SDIO CMD 5 allows the SDIO device back to idle state an
521521
* synchronous interrupt is supported in SDIO 4-bit mode
522522
*/
523-
sdio_writel(bdev->func, SDIO_INT_CTL | SDIO_RE_INIT_EN,
524-
MTK_REG_CSDIOCSR, &err);
523+
val = sdio_readl(bdev->func, MTK_REG_CSDIOCSR, &err);
524+
if (err < 0)
525+
goto err_release_irq;
526+
527+
val |= SDIO_INT_CTL;
528+
sdio_writel(bdev->func, val, MTK_REG_CSDIOCSR, &err);
525529
if (err < 0)
526530
goto err_release_irq;
527531

0 commit comments

Comments
 (0)