* 2.4.19-rc2 and !CONFIG_BLK_DEV_IDEPCI
@ 2002-07-17 13:30 Geert Uytterhoeven
2002-07-17 14:42 ` James Mayer
2002-07-17 16:48 ` Andre Hedrick
0 siblings, 2 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2002-07-17 13:30 UTC (permalink / raw)
To: Marcelo Tosatti, Andre M. Hedrick; +Cc: Linux Kernel Development
Hi,
I need the following patch to compile 2.4.19-rc2 for m68k because struct hwif_s
contains no pci_devid field if CONFIG_BLK_DEV_IDEPCI is not defined.
--- linux-2.4.19-rc2/drivers/ide/ide-features.c Wed Jul 17 15:03:10 2002
+++ linux-m68k-2.4.19-rc2/drivers/ide/ide-features.c Wed Jul 17 15:12:28 2002
@@ -245,8 +245,10 @@
*/
byte eighty_ninty_three (ide_drive_t *drive)
{
+#ifdef CONFIG_BLK_DEV_IDEPCI
if (HWIF(drive)->pci_devid.vid==0x105a)
return(HWIF(drive)->udma_four);
+#endif
/* PDC202XX: that's because some HDD will return wrong info */
return ((byte) ((HWIF(drive)->udma_four) &&
#ifndef CONFIG_IDEDMA_IVB
Or perhaps all eighty_ninty_three() stuff should be protected by #ifdef
CONFIG_BLK_DEV_IDEDMA? That seems to work as well (alternative patch below)...
--- linux-2.4.19-rc2/drivers/ide/ide-features.c Wed Jul 17 09:53:15 2002
+++ linux-m68k-2.4.19-rc2/drivers/ide/ide-features.c Wed Jul 17 13:06:52 2002
@@ -240,6 +240,7 @@
return 0;
}
+#ifdef CONFIG_BLK_DEV_IDEDMA
/*
* All hosts that use the 80c ribbon mus use!
*/
@@ -254,6 +255,7 @@
#endif /* CONFIG_IDEDMA_IVB */
(drive->id->hw_config & 0x6000)) ? 1 : 0);
}
+#endif // CONFIG_BLK_DEV_IDEDMA
/*
* Similar to ide_wait_stat(), except it never calls ide_error internally.
@@ -374,6 +376,8 @@
EXPORT_SYMBOL(ide_driveid_update);
EXPORT_SYMBOL(ide_ata66_check);
EXPORT_SYMBOL(set_transfer);
+#ifdef CONFIG_BLK_DEV_IDEDMA
EXPORT_SYMBOL(eighty_ninty_three);
+#endif // CONFIG_BLK_DEV_IDEDMA
EXPORT_SYMBOL(ide_config_drive_speed);
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: 2.4.19-rc2 and !CONFIG_BLK_DEV_IDEPCI
2002-07-17 13:30 2.4.19-rc2 and !CONFIG_BLK_DEV_IDEPCI Geert Uytterhoeven
@ 2002-07-17 14:42 ` James Mayer
2002-07-17 16:48 ` Andre Hedrick
1 sibling, 0 replies; 3+ messages in thread
From: James Mayer @ 2002-07-17 14:42 UTC (permalink / raw)
To: Linux Kernel Development
Hi,
I've reproduced the same problem here, as well, on x86 ISA IDE.
Geert's first patch worked for me.
James
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: 2.4.19-rc2 and !CONFIG_BLK_DEV_IDEPCI
2002-07-17 13:30 2.4.19-rc2 and !CONFIG_BLK_DEV_IDEPCI Geert Uytterhoeven
2002-07-17 14:42 ` James Mayer
@ 2002-07-17 16:48 ` Andre Hedrick
1 sibling, 0 replies; 3+ messages in thread
From: Andre Hedrick @ 2002-07-17 16:48 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: Marcelo Tosatti, Linux Kernel Development
Already addressed in a test patch to be run in a LAD-ide-2.5.26-2.patch
soon. Also "ide-features.c " becomes a deleted file.
On Wed, 17 Jul 2002, Geert Uytterhoeven wrote:
> Hi,
>
> I need the following patch to compile 2.4.19-rc2 for m68k because struct hwif_s
> contains no pci_devid field if CONFIG_BLK_DEV_IDEPCI is not defined.
>
> --- linux-2.4.19-rc2/drivers/ide/ide-features.c Wed Jul 17 15:03:10 2002
> +++ linux-m68k-2.4.19-rc2/drivers/ide/ide-features.c Wed Jul 17 15:12:28 2002
> @@ -245,8 +245,10 @@
> */
> byte eighty_ninty_three (ide_drive_t *drive)
> {
> +#ifdef CONFIG_BLK_DEV_IDEPCI
> if (HWIF(drive)->pci_devid.vid==0x105a)
> return(HWIF(drive)->udma_four);
> +#endif
> /* PDC202XX: that's because some HDD will return wrong info */
> return ((byte) ((HWIF(drive)->udma_four) &&
> #ifndef CONFIG_IDEDMA_IVB
>
> Or perhaps all eighty_ninty_three() stuff should be protected by #ifdef
> CONFIG_BLK_DEV_IDEDMA? That seems to work as well (alternative patch below)...
>
> --- linux-2.4.19-rc2/drivers/ide/ide-features.c Wed Jul 17 09:53:15 2002
> +++ linux-m68k-2.4.19-rc2/drivers/ide/ide-features.c Wed Jul 17 13:06:52 2002
> @@ -240,6 +240,7 @@
> return 0;
> }
>
> +#ifdef CONFIG_BLK_DEV_IDEDMA
> /*
> * All hosts that use the 80c ribbon mus use!
> */
> @@ -254,6 +255,7 @@
> #endif /* CONFIG_IDEDMA_IVB */
> (drive->id->hw_config & 0x6000)) ? 1 : 0);
> }
> +#endif // CONFIG_BLK_DEV_IDEDMA
>
> /*
> * Similar to ide_wait_stat(), except it never calls ide_error internally.
> @@ -374,6 +376,8 @@
> EXPORT_SYMBOL(ide_driveid_update);
> EXPORT_SYMBOL(ide_ata66_check);
> EXPORT_SYMBOL(set_transfer);
> +#ifdef CONFIG_BLK_DEV_IDEDMA
> EXPORT_SYMBOL(eighty_ninty_three);
> +#endif // CONFIG_BLK_DEV_IDEDMA
> EXPORT_SYMBOL(ide_config_drive_speed);
>
> Gr{oetje,eeting}s,
>
> Geert
>
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
>
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
> -- Linus Torvalds
>
Andre Hedrick
LAD Storage Consulting Group
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-07-17 16:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-17 13:30 2.4.19-rc2 and !CONFIG_BLK_DEV_IDEPCI Geert Uytterhoeven
2002-07-17 14:42 ` James Mayer
2002-07-17 16:48 ` Andre Hedrick
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®