projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7b645f
)
[PATCH] ide: fix ide-disk inability to handle LBA only devices.
author
Alan Cox
<alan@lxorguk.ukuu.org.uk>
Mon, 27 Jun 2005 22:24:22 +0000
(15:24 -0700)
committer
Linus Torvalds
<torvalds@ppc970.osdl.org>
Tue, 28 Jun 2005 00:36:39 +0000
(17:36 -0700)
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>
drivers/ide/ide-disk.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/ide/ide-disk.c
b/drivers/ide/ide-disk.c
index d6f934886b04da6f41eb9f7c4d9eabdde824c0de..f9c1acb4ed6a438c5518a22de4697aa13c88a3ee 100644
(file)
--- a/
drivers/ide/ide-disk.c
+++ b/
drivers/ide/ide-disk.c
@@
-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.