From bc7f885462c02e928ce21194199cbd9bcbbf9c89 Mon Sep 17 00:00:00 2001 From: Bartlomiej Zolnierkiewicz Date: Fri, 22 May 2009 16:23:37 +0200 Subject: [PATCH] --- yaml --- r: 145209 b: refs/heads/master c: e3b29f05124b07303088795396ff858811d2acb8 h: refs/heads/master i: 145207: 4fcd8db819607743d5b2f8a0d4e86f3e8fd75b1c v: v3 --- [refs] | 2 +- trunk/drivers/ide/ide-io.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index a16890022515..7d19806d1033 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8369d5fa63260cc54464b4687aa6a0f78402d98e +refs/heads/master: e3b29f05124b07303088795396ff858811d2acb8 diff --git a/trunk/drivers/ide/ide-io.c b/trunk/drivers/ide/ide-io.c index 35dc38d3b2c5..6415a2e2ba87 100644 --- a/trunk/drivers/ide/ide-io.c +++ b/trunk/drivers/ide/ide-io.c @@ -696,7 +696,7 @@ void ide_timer_expiry (unsigned long data) } spin_lock_irq(&hwif->lock); enable_irq(hwif->irq); - if (startstop == ide_stopped) { + if (startstop == ide_stopped && hwif->polling == 0) { ide_unlock_port(hwif); plug_device = 1; } @@ -868,7 +868,7 @@ irqreturn_t ide_intr (int irq, void *dev_id) * same irq as is currently being serviced here, and Linux * won't allow another of the same (on any CPU) until we return. */ - if (startstop == ide_stopped) { + if (startstop == ide_stopped && hwif->polling == 0) { BUG_ON(hwif->handler); ide_unlock_port(hwif); plug_device = 1;