Skip to content

Commit

Permalink
[PATCH] ide: fix ide-disk inability to handle LBA only devices.
Browse files Browse the repository at this point in the history
Years old bug, has to be fixed for it8212 to work

Signed-off-by: Alan Cox <alan@redhat.com>
Acked-by: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Jun 28, 2005
1 parent c7b645f commit 6efd936
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/ide/ide-disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ static int lba_capacity_is_ok (struct hd_driveid *id)
{
unsigned long lba_sects, chs_sects, head, tail;

/* No non-LBA info .. so valid! */
if (id->cyls == 0)
return 1;

/*
* The ATA spec tells large drives to return
* C/H/S = 16383/16/63 independent of their size.
Expand Down

0 comments on commit 6efd936

Please sign in to comment.