]> git.baikalelectronics.ru Git - kernel.git/commit
ide: disable drive interrupts in ide_driveid_update()
authorMikhail Cherkashin <mcherkashin@ru.mvista.com>
Tue, 15 Jul 2008 19:21:40 +0000 (21:21 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 15 Jul 2008 19:21:40 +0000 (21:21 +0200)
commit3e1c15c28ee38f91adcb2733064ff710702aa338
tree64e54f9204b297cb2cbaf9fc8f267fcd300fdc54
parent7d2eff889e65f11633334b9e1becf26fa4d49c59
ide: disable drive interrupts in ide_driveid_update()

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>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-iops.c