Skip to content

Commit 496556b

Browse files
Phil Elwellpopcornmix
authored andcommitted
bcm2835_mmc: Remove vestigial threaded IRQ
With SDIO processing now managed by the MMC framework with a workqueue, the bcm2835_mmc driver no longer needs a threaded IRQ. Signed-off-by: Phil Elwell <phil@raspberrypi.org>
1 parent 9583c54 commit 496556b

1 file changed

Lines changed: 1 addition & 21 deletions

File tree

‎drivers/mmc/host/bcm2835-mmc.c‎

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@ struct bcm2835_host {
103103

104104
wait_queue_head_t buf_ready_int; /* Waitqueue for Buffer Read Ready interrupt */
105105

106-
u32 thread_isr;
107-
108106
u32 shadow;
109107

110108
/*DMA part*/
@@ -1058,23 +1056,6 @@ static void bcm2835_mmc_ack_sdio_irq(struct mmc_host *mmc)
10581056
spin_unlock_irqrestore(&host->lock, flags);
10591057
}
10601058

1061-
1062-
static irqreturn_t bcm2835_mmc_thread_irq(int irq, void *dev_id)
1063-
{
1064-
struct bcm2835_host *host = dev_id;
1065-
unsigned long flags;
1066-
u32 isr;
1067-
1068-
spin_lock_irqsave(&host->lock, flags);
1069-
isr = host->thread_isr;
1070-
host->thread_isr = 0;
1071-
spin_unlock_irqrestore(&host->lock, flags);
1072-
1073-
return isr ? IRQ_HANDLED : IRQ_NONE;
1074-
}
1075-
1076-
1077-
10781059
void bcm2835_mmc_set_clock(struct bcm2835_host *host, unsigned int clock)
10791060
{
10801061
int div = 0; /* Initialized for compiler warning */
@@ -1386,8 +1367,7 @@ static int bcm2835_mmc_add_host(struct bcm2835_host *host)
13861367
init_waitqueue_head(&host->buf_ready_int);
13871368

13881369
bcm2835_mmc_init(host, 0);
1389-
ret = request_threaded_irq(host->irq, bcm2835_mmc_irq,
1390-
bcm2835_mmc_thread_irq, IRQF_SHARED,
1370+
ret = request_irq(host->irq, bcm2835_mmc_irq, IRQF_SHARED,
13911371
mmc_hostname(mmc), host);
13921372
if (ret) {
13931373
dev_err(dev, "Failed to request IRQ %d: %d\n", host->irq, ret);

0 commit comments

Comments
 (0)