]> git.hungrycats.org Git - linux/commit
[PATCH] fix CONFIG_IDEDISK_STROKE support in ide-disk.c
authorBartlomiej Zolnierkiewicz <b.zolnierkiewicz@elka.pw.edu.pl>
Thu, 7 Aug 2003 03:17:00 +0000 (20:17 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Thu, 7 Aug 2003 03:17:00 +0000 (20:17 -0700)
commit78808d51646336b247c01c7b1e9c74f5e2552fdb
tree6ce32130861b39a725f61a46dfbbb31f7a39ae58
parentc98a3356215ff0a0a8d648efd4329dfcb05271a3
[PATCH] fix CONFIG_IDEDISK_STROKE support in ide-disk.c

Original patch from Erik Andersen <andersen@codepoet.org>:
- fix CONFIG_IDEDISK_STROKE by adding proper detection of HPA feature set
  and removing IDE_STROKE_LIMIT
- remove irrelevant idedisk_supports_host_protected_area()
- make the HPA detection actually display useful information

I've reworked it a bit:
- detect HPA before calculating drive's geometry
- move HPA detection outside init_idedisk_capacity()
  to idedisk_check_hpa_lba28() and idedisk_check_hpa_lba48()
- use sectors_to_MB()
- respect 80-column limit
drivers/ide/ide-disk.c