login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
February
»
2
Re: PCI: Remove users of pci_enable_device_bars()
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Jeff Garzik <jeff@...>
To: Linux Kernel Mailing List <linux-kernel@...>
Cc: Alan Cox <alan@...>, Benjamin Herrenschmidt <benh@...>, Greg Kroah-Hartman <gregkh@...>, Linux IDE mailing list <linux-ide@...>
Subject:
Re: PCI: Remove users of pci_enable_device_bars()
Date: Saturday, February 2, 2008 - 2:27 am
Linux Kernel Mailing List wrote:
quoted text
> Commit: 0948391641918b95d8d96c15089eb5ac156850b3
quoted text
> PCI: Remove users of pci_enable_device_bars() > > This patch converts users of pci_enable_device_bars() to the new > pci_enable_device_{io,mem} interface. > > The new API fits nicely, except maybe for the QLA case where a bit of > code re-organization might be a good idea but I prefer sticking to the > simple patch as I don't have hardware to test on. > > I'll also need some feedback on the cs5520 change. > > Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> > Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
quoted text
> --- a/drivers/ata/pata_cs5520.c > +++ b/drivers/ata/pata_cs5520.c > @@ -229,7 +229,7 @@ static int __devinit cs5520_init_one(struct pci_dev *pdev, const struct pci_devi > return -ENOMEM; > > /* Perform set up for DMA */ > - if (pci_enable_device_bars(pdev, 1<<2)) { > + if (pci_enable_device_io(pdev)) { > printk(KERN_ERR DRV_NAME ": unable to configure BAR2.\n"); > return -ENODEV; > } > diff --git a/drivers/ide/pci/cs5520.c b/drivers/ide/pci/cs5520.c > index 6ec00b8..10adc49 100644 > --- a/drivers/ide/pci/cs5520.c > +++ b/drivers/ide/pci/cs5520.c > @@ -156,8 +156,14 @@ static int __devinit cs5520_init_one(struct pci_dev *dev, const struct pci_devic > ide_setup_pci_noise(dev, d); > > /* We must not grab the entire device, it has 'ISA' space in its > - BARS too and we will freak out other bits of the kernel */ > - if (pci_enable_device_bars(dev, 1<<2)) { > + * BARS too and we will freak out other bits of the kernel > + * > + * pci_enable_device_bars() is going away. I replaced it with > + * IO only enable for now but I'll need confirmation this is > + * allright for that device. If not, it will need some kind of > + * quirk. --BenH. > + */ > + if (pci_enable_device_io(dev)) { > printk(KERN_WARNING "%s: Unable to enable 55x0.\n", d->name); > return -ENODEV; > }
So... did the feedback mentioned in the commit log ever appear? :) Jeff --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [thread] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Re: PCI: Remove users of pci_enable_device_bars()
, Jeff Garzik
, (Sat Feb 2, 2:27 am)
Re: PCI: Remove users of pci_enable_device_bars()
, Bartlomiej Zolnierkiewicz...
, (Sat Feb 2, 4:01 pm)
Re: PCI: Remove users of pci_enable_device_bars()
, Greg KH
, (Sat Feb 2, 4:05 pm)
Re: PCI: Remove users of pci_enable_device_bars()
, Benjamin Herrenschmidt
, (Sun Feb 3, 1:32 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 004/196] Chinese: add translation of SubmittingPatches
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Willy Tarreau
Re: Linux 2.6.21
Jan Kundrát
kswapd high CPU usage with no swap
git
:
linux-netdev
:
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
[GIT]: Networking
David Miller
Re: [PATCH] tcp: splice as many packets as possible at once
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
0 users
and
471 guests
online.
Syndicate