/[linux-patches]/genpatches-2.6/tags/2.6.12-12/2315_ide-no-lba.patch
Gentoo

Contents of /genpatches-2.6/tags/2.6.12-12/2315_ide-no-lba.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 137 - (show annotations) (download)
Tue Aug 9 21:23:12 2005 UTC (12 years, 11 months ago) by dsd
File size: 926 byte(s)
2.6.12-12 release
1 Author: Alan Cox <alan@lxorguk.ukuu.org.uk>
2 Date: Mon, 27 Jun 2005 22:24:22 +0000 (-0700)
3 Source: http://www.kernel.org/git/gitweb.cgi?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=6efd936046b123303ace4330fd2f26195ad7b1c4
4
5 [PATCH] ide: fix ide-disk inability to handle LBA only devices.
6
7 Years old bug, has to be fixed for it8212 to work
8
9 Signed-off-by: Alan Cox <alan@redhat.com>
10 Acked-by: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
11 Signed-off-by: Andrew Morton <akpm@osdl.org>
12 Signed-off-by: Linus Torvalds <torvalds@osdl.org>
13
14 --- a/drivers/ide/ide-disk.c
15 +++ b/drivers/ide/ide-disk.c
16 @@ -119,6 +119,10 @@ static int lba_capacity_is_ok (struct hd
17 {
18 unsigned long lba_sects, chs_sects, head, tail;
19
20 + /* No non-LBA info .. so valid! */
21 + if (id->cyls == 0)
22 + return 1;
23 +
24 /*
25 * The ATA spec tells large drives to return
26 * C/H/S = 16383/16/63 independent of their size.

  ViewVC Help
Powered by ViewVC 1.1.20