<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
From: Alan Cox &lt;alan@lxorguk.ukuu.org.uk&gt;

These are the minimal updates for ide-disk.  They don't remove all ident
whacking in the it8212 driver because there are genuine things to fix there
such as the LBA28 flags.

Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
---

 25-akpm/drivers/ide/ide-disk.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff -puN drivers/ide/ide-disk.c~minimal-ide-disk-updates drivers/ide/ide-disk.c
--- 25/drivers/ide/ide-disk.c~minimal-ide-disk-updates	2004-11-03 20:26:24.360925272 -0800
+++ 25-akpm/drivers/ide/ide-disk.c	2004-11-03 20:26:24.364924664 -0800
@@ -84,6 +84,10 @@ static int lba_capacity_is_ok (struct hd
 {
 	unsigned long lba_sects, chs_sects, head, tail;
 
+	/* No non-LBA info .. so valid! */
+	if (id-&gt;cyls == 0)
+		return 1;
+
 	/*
 	 * The ATA spec tells large drives to return
 	 * C/H/S = 16383/16/63 independent of their size.
@@ -1237,8 +1241,10 @@ static void idedisk_setup (ide_drive_t *
 	if (id-&gt;buf_size)
 		printk (" w/%dKiB Cache", id-&gt;buf_size/2);
 
-	printk(", CHS=%d/%d/%d", 
-	       drive-&gt;bios_cyl, drive-&gt;bios_head, drive-&gt;bios_sect);
+	if (drive-&gt;bios_cyl)
+		printk(", CHS=%d/%d/%d",
+	       		drive-&gt;bios_cyl, drive-&gt;bios_head, drive-&gt;bios_sect);
+
 	if (drive-&gt;using_dma)
 		ide_dma_verbose(drive);
 	printk("\n");
_
</pre></body></html>