* Re: atiixp.c: add cable detection support for ATI IDE
[not found] <200701301859.l0UIxaqX025758@hera.kernel.org>
@ 2007-01-30 22:37 ` Alan
0 siblings, 0 replies; only message in thread
From: Alan @ 2007-01-30 22:37 UTC (permalink / raw)
To: Linux Kernel Mailing List; +Cc: conke.hu
> IDE HDD does not work if it uses a 40-pin PATA cable on ATI chipset.
> This patch fixes the bug.
>
> Signed-off-by: Conke Hu <conke.hu@amd.com>
Doe this actually work if the driver is loaded after a suspend to ram and
resume ?
> - hwif->udma_four = 1;
> + pci_read_config_byte(pdev, ATIIXP_IDE_UDMA_MODE + ch, &udma_mode);
> + if ((udma_mode & 0x07) >= 0x04 || (udma_mode & 0x70) >= 0x40)
> + hwif->udma_four = 1;
> + else
> + hwif->udma_four = 0;
> +
How does the actual cable detection work rather than relying on the BIOS
modes to guess the cable ?
Alan
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-01-30 22:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200701301859.l0UIxaqX025758@hera.kernel.org>
2007-01-30 22:37 ` atiixp.c: add cable detection support for ATI IDE Alan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox