Skip to content

Commit a594eeb

Browse files
gregkhbzolnier
authored andcommitted
IDE: remove ide=reverse IDE core
This option is obsolete and can be removed safely. It allows us to remove the pci_get_device_reverse() function from the PCI core. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
1 parent 4b119e2 commit a594eeb

6 files changed

Lines changed: 4 additions & 31 deletions

File tree

‎Documentation/ide/ide.txt‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,6 @@ Summary of ide driver parameters for kernel command line
269269
ability to bit test for detection is currently
270270
unknown.
271271

272-
"ide=reverse" : formerly called to pci sub-system, but now local.
273-
274272
"ide=doubler" : probe/support IDE doublers on Amiga
275273

276274
There may be more options than shown -- use the source, Luke!

‎Documentation/kernel-parameters.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ and is between 256 and 4096 characters. It is defined in the file
763763
Format: <io>[,<membase>[,<icn_id>[,<icn_id2>]]]
764764

765765
ide= [HW] (E)IDE subsystem
766-
Format: ide=nodma or ide=doubler or ide=reverse
766+
Format: ide=nodma or ide=doubler
767767
See Documentation/ide/ide.txt.
768768

769769
ide?= [HW] (E)IDE subsystem

‎drivers/ide/Kconfig‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -416,12 +416,6 @@ config BLK_DEV_OFFBOARD
416416
This can improve the usability of some boot managers such as lilo
417417
when booting from a drive on an off-board controller.
418418

419-
If you say Y here, and you actually want to reverse the device scan
420-
order as explained above, you also need to issue the kernel command
421-
line option "ide=reverse". (Try "man bootparam" or see the
422-
documentation of your boot loader (lilo or loadlin) about how to
423-
pass options to the kernel at boot time.)
424-
425419
Note that, if you do this, the order of the hd* devices will be
426420
rearranged which may require modification of fstab and other files.
427421

@@ -615,8 +609,7 @@ config BLK_DEV_HPT366
615609
reference to device 0x80. The other solution is to say Y to "Boot
616610
off-board chipsets first support" (CONFIG_BLK_DEV_OFFBOARD) unless
617611
your mother board has the chipset natively mounted. Regardless one
618-
should use the fore mentioned option and call at LILO or include
619-
"ide=reverse" in LILO's append-line.
612+
should use the fore mentioned option and call at LILO.
620613

621614
This driver requires dynamic tuning of the chipset during the
622615
ide-probe at boot. It is reported to support DVD II drives, by the

‎drivers/ide/ide-scan-pci.c‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,8 @@ static int __init ide_scan_pcibus(void)
8888
struct list_head *l, *n;
8989

9090
pre_init = 0;
91-
if (!ide_scan_direction)
92-
while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)))
93-
ide_scan_pcidev(dev);
94-
else
95-
while ((dev = pci_get_device_reverse(PCI_ANY_ID, PCI_ANY_ID,
96-
dev)))
97-
ide_scan_pcidev(dev);
91+
while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)))
92+
ide_scan_pcidev(dev);
9893

9994
/*
10095
* Hand the drivers over to the PCI layer now we

‎drivers/ide/ide.c‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,6 @@ static int system_bus_speed; /* holds what we think is VESA/PCI bus speed */
9090
DEFINE_MUTEX(ide_cfg_mtx);
9191
__cacheline_aligned_in_smp DEFINE_SPINLOCK(ide_lock);
9292

93-
#ifdef CONFIG_IDEPCI_PCIBUS_ORDER
94-
int ide_scan_direction; /* THIS was formerly 2.2.x pci=reverse */
95-
#endif
96-
9793
int noautodma = 0;
9894

9995
#ifdef CONFIG_BLK_DEV_IDEACPI
@@ -1217,14 +1213,6 @@ static int __init ide_setup(char *s)
12171213
goto obsolete_option;
12181214
}
12191215

1220-
#ifdef CONFIG_IDEPCI_PCIBUS_ORDER
1221-
if (!strcmp(s, "ide=reverse")) {
1222-
ide_scan_direction = 1;
1223-
printk(" : Enabled support for IDE inverse scan order.\n");
1224-
goto obsolete_option;
1225-
}
1226-
#endif
1227-
12281216
#ifdef CONFIG_BLK_DEV_IDEACPI
12291217
if (!strcmp(s, "ide=noacpi")) {
12301218
//printk(" : Disable IDE ACPI support.\n");

‎include/linux/ide.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,6 @@ extern void do_ide_request(struct request_queue *);
990990
void ide_init_disk(struct gendisk *, ide_drive_t *);
991991

992992
#ifdef CONFIG_IDEPCI_PCIBUS_ORDER
993-
extern int ide_scan_direction;
994993
extern int __ide_pci_register_driver(struct pci_driver *driver, struct module *owner, const char *mod_name);
995994
#define ide_pci_register_driver(d) __ide_pci_register_driver(d, THIS_MODULE, KBUILD_MODNAME)
996995
#else

0 commit comments

Comments
 (0)