lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Tue, 30 Jan 2007 22:37:23 +0000
From:	Alan <alan@...rguk.ukuu.org.uk>
To:	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Cc:	conke.hu@....com
Subject: Re: atiixp.c: add cable detection support for ATI IDE

>     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@....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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ