]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ide-generic: handle probing of legacy io-ports v5
authorBorislav Petkov <petkovbb@gmail.com>
Fri, 10 Oct 2008 20:39:35 +0000 (22:39 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 10 Oct 2008 20:39:35 +0000 (22:39 +0200)
commit20df429dd6671804999493baf2952f82582869fa
treee835d1ee54a09f75c5cf09e614da3d932eef6bb0
parentb98b3409abb697321d1b53e3e96a14243fe9fc79
ide-generic: handle probing of legacy io-ports v5

Avoid probing the io-ports in case an IDE PCI controller is present and it
uses the legacy iobases. If we still want to enforce the probing, we do

ide_generic.probe_mask=0x3f

on the kernel command line. The iobase checking code is
adapted from drivers/ata/pata_legacy.c after converting hex
pci ids into their corresponding macros in <linux/pci_ids.h>.

Also, check only BAR0/2 resources since those are guaranteed
by the workaround in drivers/pci/probe.c:pci_setup_device().

Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
[bart: trivial printk() fixups]
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-generic.c