From: Martin Dalecki <dalecki@evision-ventures.com>
To: linux-kernel@vger.kernel.org
Subject: PATCH] 2.5.11 IDE 45
Date: Mon, 29 Apr 2002 14:34:47 +0200 [thread overview]
Message-ID: <3CCD3DE7.3060100@evision-ventures.com> (raw)
[-- 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;
}
reply other threads:[~2002-04-29 13:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3CCD3DE7.3060100@evision-ventures.com \
--to=dalecki@evision-ventures.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox