Skip to content

Commit 921a3d1

Browse files
ddv2005popcornmix
authored andcommitted
Fix spinlock recursion in sdhci-bcm2708.c
1 parent b6d5be4 commit 921a3d1

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎drivers/mmc/host/sdhci-bcm2708.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ sdhci_bcm2708_platdma_reset(struct sdhci_host *host, struct mmc_data *data)
656656

657657
BUG_ON(NULL == host);
658658

659-
spin_lock_irqsave(&host->lock, flags);
659+
// spin_lock_irqsave(&host->lock, flags);
660660

661661
if (host_priv->dma_wanted) {
662662
if (NULL == data) {
@@ -736,7 +736,7 @@ sdhci_bcm2708_platdma_reset(struct sdhci_host *host, struct mmc_data *data)
736736
#endif
737737
}
738738

739-
spin_unlock_irqrestore(&host->lock, flags);
739+
// spin_unlock_irqrestore(&host->lock, flags);
740740
}
741741

742742

@@ -753,7 +753,7 @@ static void sdhci_bcm2708_dma_complete_irq(struct sdhci_host *host,
753753

754754
BUG_ON(NULL == host);
755755

756-
spin_lock_irqsave(&host->lock, flags);
756+
// spin_lock_irqsave(&host->lock, flags);
757757
data = host->data;
758758

759759
#ifdef CHECK_DMA_USE
@@ -778,7 +778,7 @@ static void sdhci_bcm2708_dma_complete_irq(struct sdhci_host *host,
778778

779779
if (NULL == data) {
780780
DBG("PDMA unused completion - status 0x%X\n", dma_cs);
781-
spin_unlock_irqrestore(&host->lock, flags);
781+
// spin_unlock_irqrestore(&host->lock, flags);
782782
return;
783783
}
784784
sg = data->sg;
@@ -871,7 +871,7 @@ static void sdhci_bcm2708_dma_complete_irq(struct sdhci_host *host,
871871
SDHCI_INT_SPACE_AVAIL);
872872
}
873873
}
874-
spin_unlock_irqrestore(&host->lock, flags);
874+
// spin_unlock_irqrestore(&host->lock, flags);
875875
}
876876

877877
static irqreturn_t sdhci_bcm2708_dma_irq(int irq, void *dev_id)

0 commit comments

Comments
 (0)