On Wed, Jun 07, 2006 at 12:15:34PM +0900, Kenji Kaneshige wrote: > This patch makes Emulex lpfc driver legacy I/O port free. Your interface for this is really horrible ;-) > + int bars = pci_select_bars(pdev, IORESOURCE_MEM); > > - if (pci_enable_device(pdev)) > + if (pci_enable_device_bars(pdev, bars)) > goto out; > - if (pci_request_regions(pdev, LPFC_DRIVER_NAME)) > + if (pci_request_selected_regions(pdev, bars, LPFC_DRIVER_NAME)) > goto out_disable_device; Please make this something like: if (pci_enable_device_noioport(pdev)) goto out; if (pci_request_regions(pdev, LPFC_DRIVER_NAME)) goto out_disable_device; as in: - get rid of this awkward pci_select_bars function, the pci_enable* function should do all the work and add a flag to struct pci_dev so that all other functions do the right thing. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH 4/4] Make Emulex lpfc driver legacy I/O port free
- From: Kenji Kaneshige <[email protected]>
- Re: [PATCH 4/4] Make Emulex lpfc driver legacy I/O port free
- References:
- [BUG](-mm)pci_disable_device function clear bars_enabled element
- From: "bibo,mao" <[email protected]>
- Re: [BUG](-mm)pci_disable_device function clear bars_enabled element
- From: Rajesh Shah <[email protected]>
- Re: [BUG](-mm)pci_disable_device function clear bars_enabled element
- From: Grant Grundler <[email protected]>
- Re: [BUG](-mm)pci_disable_device function clear bars_enabled element
- From: Rajesh Shah <[email protected]>
- Re: [BUG](-mm)pci_disable_device function clear bars_enabled element
- From: Kenji Kaneshige <[email protected]>
- [BUG][PATCH 2.6.17-rc5-mm3] bugfix: PCI legacy I/O port free driver
- From: Kenji Kaneshige <[email protected]>
- Re: [BUG][PATCH 2.6.17-rc5-mm3] bugfix: PCI legacy I/O port free driver
- From: Greg KH <[email protected]>
- Re: [BUG][PATCH 2.6.17-rc5-mm3] bugfix: PCI legacy I/O port free driver
- From: Kenji Kaneshige <[email protected]>
- [PATCH 4/4] Make Emulex lpfc driver legacy I/O port free
- From: Kenji Kaneshige <[email protected]>
- [BUG](-mm)pci_disable_device function clear bars_enabled element
- Prev by Date: Re: [ckrm-tech] [RFC 0/4] sched: Add CPU rate caps (improved)
- Next by Date: Re: genirq: fasteoi change for retrigger
- Previous by thread: [PATCH 4/4] Make Emulex lpfc driver legacy I/O port free
- Next by thread: Re: [PATCH 4/4] Make Emulex lpfc driver legacy I/O port free
- Index(es):