* [PATCH] ide: disable drive interrupts in ide_driveid_update()
@ 2008-07-09 16:48 Sergei Shtylyov
2008-07-11 19:11 ` Bartlomiej Zolnierkiewicz
0 siblings, 1 reply; 2+ messages in thread
From: Sergei Shtylyov @ 2008-07-09 16:48 UTC (permalink / raw)
To: bzolnier; +Cc: linux-ide, mcherkashin
From: Mikhail Cherkashin <mcherkashin@ru.mvista.com>
Since ide_driveid_update() uses polling to execute the IDENTIFY DEVICE command
but clears nIEN bit in the control register and doesn't mask the IDE interrupt,
the latter does happen and lead to the corresponding message to appear:
ide0: unexpected interrupt, status=0x58, count=1
when e.g. running hdparm with option -X with a non-PCI IDE driver...
Signed-off-by: Mikhail Cherkashin <mcherkashin@ru.mvista.com>
Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
---
No attempt is made to respect the drive's quirkiness which is probably not
correct but the 'drive->quirk_list' matter is somewhat confusing...
drivers/ide/ide-iops.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/ide/ide-iops.c b/drivers/ide/ide-iops.c
index 0daf923..c2dd20a 100644
--- a/drivers/ide/ide-iops.c
+++ b/drivers/ide/ide-iops.c
@@ -689,7 +689,7 @@ int ide_driveid_update(ide_drive_t *drive)
*/
SELECT_MASK(drive, 1);
- ide_set_irq(drive, 1);
+ ide_set_irq(drive, 0);
msleep(50);
hwif->OUTBSYNC(drive, WIN_IDENTIFY, hwif->io_ports.command_addr);
timeout = jiffies + WAIT_WORSTCASE;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ide: disable drive interrupts in ide_driveid_update()
2008-07-09 16:48 [PATCH] ide: disable drive interrupts in ide_driveid_update() Sergei Shtylyov
@ 2008-07-11 19:11 ` Bartlomiej Zolnierkiewicz
0 siblings, 0 replies; 2+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2008-07-11 19:11 UTC (permalink / raw)
To: Sergei Shtylyov; +Cc: linux-ide, mcherkashin
On Wednesday 09 July 2008, Sergei Shtylyov wrote:
> From: Mikhail Cherkashin <mcherkashin@ru.mvista.com>
>
> Since ide_driveid_update() uses polling to execute the IDENTIFY DEVICE command
> but clears nIEN bit in the control register and doesn't mask the IDE interrupt,
> the latter does happen and lead to the corresponding message to appear:
>
> ide0: unexpected interrupt, status=0x58, count=1
>
> when e.g. running hdparm with option -X with a non-PCI IDE driver...
>
> Signed-off-by: Mikhail Cherkashin <mcherkashin@ru.mvista.com>
> Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
applied
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-07-10 19:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-09 16:48 [PATCH] ide: disable drive interrupts in ide_driveid_update() Sergei Shtylyov
2008-07-11 19:11 ` Bartlomiej Zolnierkiewicz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).