* PATCH] 2.5.11 IDE 45
@ 2002-04-29 12:34 Martin Dalecki
0 siblings, 0 replies; only message in thread
From: Martin Dalecki @ 2002-04-29 12:34 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 157 bytes --]
- Fix bogus set_multimode() change. I tough I had reverted it before diff-ing.
This was causing hangs of /dev/hdparm -m8 /dev/hda and similar commands.
[-- Attachment #2: ide-clean-45.diff --]
[-- Type: text/plain, Size: 691 bytes --]
diff -urN linux-2.5.11/drivers/ide/ide-disk.c linux/drivers/ide/ide-disk.c
--- linux-2.5.11/drivers/ide/ide-disk.c 2002-04-29 05:11:18.000000000 +0200
+++ linux/drivers/ide/ide-disk.c 2002-04-29 14:16:42.000000000 +0200
@@ -562,17 +562,17 @@
*/
static int set_multcount(ide_drive_t *drive, int arg)
{
- struct ata_taskfile args;
+ struct request rq;
if (drive->special_cmd & ATA_SPECIAL_MMODE)
return -EBUSY;
- memset(&args, 0, sizeof(args));
+ ide_init_drive_cmd(&rq);
drive->mult_req = arg;
drive->special_cmd |= ATA_SPECIAL_MMODE;
- ide_raw_taskfile(drive, &args, NULL);
+ ide_do_drive_cmd (drive, &rq, ide_wait);
return (drive->mult_count == arg) ? 0 : -EIO;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-04-29 13:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-29 12:34 PATCH] 2.5.11 IDE 45 Martin Dalecki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox