diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-17 18:46:24 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-17 18:46:24 -0400 |
commit | 80aa31cb460d12c1e02327b43eceb3eebc6e7090 (patch) | |
tree | c9f77aab26f78002d38d941cf62dafd23b4d9146 /drivers/ide | |
parent | fef39d95ea19d4b5e2547e344809a5398eba8b3c (diff) |
ide: remove CONFIG_BLK_DEV_HD_IDE config option (take 2)
* Remove CONFIG_BLK_DEV_HD hack from init_hwif_default()
("hda=noprobe hdb=noprobe" kernel parameters should be used
instead if somebody wishes to use the old "hd" driver).
* Make CONFIG_BLK_DEV_HD_ONLY config option available also when
IDE subsystem is used and update help entry.
* Remove no longer needed CONFIG_BLK_DEV_HD_IDE config option.
v2:
* Update documentation to suggest "hda=noprobe hdb=noprobe"
instead of obsoleted "ide0=noprobe".
* Update Documentation/ide/ide.txt.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/Kconfig | 25 | ||||
-rw-r--r-- | drivers/ide/ide.c | 4 |
2 files changed, 5 insertions, 24 deletions
diff --git a/drivers/ide/Kconfig b/drivers/ide/Kconfig index ac5875783430..4dc2761e9704 100644 --- a/drivers/ide/Kconfig +++ b/drivers/ide/Kconfig | |||
@@ -122,24 +122,6 @@ config BLK_DEV_IDE_SATA | |||
122 | 122 | ||
123 | If unsure, say N. | 123 | If unsure, say N. |
124 | 124 | ||
125 | config BLK_DEV_HD_IDE | ||
126 | bool "Use old disk-only driver on primary interface" | ||
127 | depends on (X86 || SH_MPC1211) | ||
128 | ---help--- | ||
129 | There are two drivers for MFM/RLL/IDE disks. Most people use just | ||
130 | the new enhanced driver by itself. This option however installs the | ||
131 | old hard disk driver to control the primary IDE/disk interface in | ||
132 | the system, leaving the new enhanced IDE driver to take care of only | ||
133 | the 2nd/3rd/4th IDE interfaces. Doing this will prevent you from | ||
134 | having an IDE/ATAPI CD-ROM or tape drive connected to the primary | ||
135 | IDE interface. Choosing this option may be useful for older systems | ||
136 | which have MFM/RLL/ESDI controller+drives at the primary port | ||
137 | address (0x1f0), along with IDE drives at the secondary/3rd/4th port | ||
138 | addresses. | ||
139 | |||
140 | Normally, just say N here; you will then use the new driver for all | ||
141 | 4 interfaces. | ||
142 | |||
143 | config BLK_DEV_IDEDISK | 125 | config BLK_DEV_IDEDISK |
144 | tristate "Include IDE/ATA-2 DISK support" | 126 | tristate "Include IDE/ATA-2 DISK support" |
145 | ---help--- | 127 | ---help--- |
@@ -1114,7 +1096,6 @@ endif | |||
1114 | 1096 | ||
1115 | config BLK_DEV_HD_ONLY | 1097 | config BLK_DEV_HD_ONLY |
1116 | bool "Old hard disk (MFM/RLL/IDE) driver" | 1098 | bool "Old hard disk (MFM/RLL/IDE) driver" |
1117 | depends on BLK_DEV_IDE=n | ||
1118 | help | 1099 | help |
1119 | There are two drivers for MFM/RLL/IDE hard disks. Most people use | 1100 | There are two drivers for MFM/RLL/IDE hard disks. Most people use |
1120 | the newer enhanced driver, but this old one is still around for two | 1101 | the newer enhanced driver, but this old one is still around for two |
@@ -1126,12 +1107,16 @@ config BLK_DEV_HD_ONLY | |||
1126 | for systems with only older MFM/RLL/ESDI drives. Choosing the old | 1107 | for systems with only older MFM/RLL/ESDI drives. Choosing the old |
1127 | driver can save 13 KB or so of kernel memory. | 1108 | driver can save 13 KB or so of kernel memory. |
1128 | 1109 | ||
1110 | If you want to use this driver together with the new one you have | ||
1111 | to use "hda=noprobe hdb=noprobe" kernel parameters to prevent the new | ||
1112 | driver from probing the primary interface. | ||
1113 | |||
1129 | If you are unsure, then just choose the Enhanced IDE/MFM/RLL driver | 1114 | If you are unsure, then just choose the Enhanced IDE/MFM/RLL driver |
1130 | instead of this one. For more detailed information, read the | 1115 | instead of this one. For more detailed information, read the |
1131 | Disk-HOWTO, available from | 1116 | Disk-HOWTO, available from |
1132 | <http://www.tldp.org/docs.html#howto>. | 1117 | <http://www.tldp.org/docs.html#howto>. |
1133 | 1118 | ||
1134 | config BLK_DEV_HD | 1119 | config BLK_DEV_HD |
1135 | def_bool BLK_DEV_HD_IDE || BLK_DEV_HD_ONLY | 1120 | def_bool BLK_DEV_HD_ONLY |
1136 | 1121 | ||
1137 | endif # IDE | 1122 | endif # IDE |
diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c index d791b1ffb586..96126b3b12e9 100644 --- a/drivers/ide/ide.c +++ b/drivers/ide/ide.c | |||
@@ -177,10 +177,6 @@ static void init_hwif_default(ide_hwif_t *hwif, unsigned int index) | |||
177 | memcpy(hwif->io_ports, hw.io_ports, sizeof(hw.io_ports)); | 177 | memcpy(hwif->io_ports, hw.io_ports, sizeof(hw.io_ports)); |
178 | 178 | ||
179 | hwif->noprobe = !hwif->io_ports[IDE_DATA_OFFSET]; | 179 | hwif->noprobe = !hwif->io_ports[IDE_DATA_OFFSET]; |
180 | #ifdef CONFIG_BLK_DEV_HD | ||
181 | if (hwif->io_ports[IDE_DATA_OFFSET] == HD_DATA) | ||
182 | hwif->noprobe = 1; /* may be overridden by ide_setup() */ | ||
183 | #endif | ||
184 | } | 180 | } |
185 | 181 | ||
186 | /* | 182 | /* |