* 2.4.21(-ac) ide-disk and hpt366 modules problem
@ 2003-06-29 17:04 Jan Rekorajski
2003-06-29 20:36 ` Alan Cox
0 siblings, 1 reply; 2+ messages in thread
From: Jan Rekorajski @ 2003-06-29 17:04 UTC (permalink / raw)
To: Alan Cox, andre; +Cc: Linux Kernel Mailing List
Hi,
There is a chicken-egg problem between ide-disk and hpt366 modules.
ide-disk should be loaded after chipset driver to detect what disks are
connected, but hpt366 needs ide-disk loaded because of 372N tricks and
__ide_do_rw_disk symbol.
I used the following hack to avoid the problem, but I think maybe
something better is needed.
--- linux-2.4.21/drivers/ide/ide-disk.c~ Fri Jun 13 16:51:33 2003
+++ linux-2.4.21/drivers/ide/ide-disk.c Sun Jun 29 18:48:33 2003
@@ -698,12 +698,9 @@
{
ide_hwif_t *hwif = HWIF(drive);
if (hwif->rw_disk)
- return hwif->rw_disk(drive, rq, block);
- else
- return __ide_do_rw_disk(drive, rq, block);
+ hwif->rw_disk(drive, rq, block);
+ return __ide_do_rw_disk(drive, rq, block);
}
-
-EXPORT_SYMBOL_GPL(__ide_do_rw_disk);
static int idedisk_open (struct inode *inode, struct file *filp, ide_drive_t *drive)
{
--- linux-2.4.21/drivers/ide/pci/hpt366.c~ Sun Jun 29 15:09:43 2003
+++ linux-2.4.21/drivers/ide/pci/hpt366.c Sun Jun 29 18:50:33 2003
@@ -742,7 +742,7 @@
hpt372n_set_clock(drive, wantclock);
HWIF(drive)->config_data = wantclock;
}
- return __ide_do_rw_disk(drive, rq, block);
+ return ide_started;
}
/*
Jan
--
Jan Rękorajski | ALL SUSPECTS ARE GUILTY. PERIOD!
baggins<at>mimuw.edu.pl | OTHERWISE THEY WOULDN'T BE SUSPECTS, WOULD THEY?
BOFH, MANIAC | -- TROOPS by Kevin Rubio
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-06-29 20:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-29 17:04 2.4.21(-ac) ide-disk and hpt366 modules problem Jan Rekorajski
2003-06-29 20:36 ` Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®