Re: [PATCH 07/20] PCI: implement Devres interface to map PCI config space

2017-03-02 Thread Tejun Heo
Hello, On Thu, Mar 02, 2017 at 02:50:00PM +0200, Andy Shevchenko wrote: > > I thought about that and did not do it because here we are remapping > > resources that are _not_ PCI bus resources (ie it is not PCI BARs we > > are remapping), keeping the devm_* prefix would be more consistent > > to

Re: [PATCH 07/20] PCI: implement Devres interface to map PCI config space

2017-03-02 Thread Tejun Heo
Hello, On Thu, Mar 02, 2017 at 02:50:00PM +0200, Andy Shevchenko wrote: > > I thought about that and did not do it because here we are remapping > > resources that are _not_ PCI bus resources (ie it is not PCI BARs we > > are remapping), keeping the devm_* prefix would be more consistent > > to

Re: [PATCH 07/20] PCI: implement Devres interface to map PCI config space

2017-03-02 Thread Thierry Reding
On Thu, Mar 02, 2017 at 02:24:06PM -0500, Tejun Heo wrote: > Hello, > > On Thu, Mar 02, 2017 at 02:50:00PM +0200, Andy Shevchenko wrote: > > > I thought about that and did not do it because here we are remapping > > > resources that are _not_ PCI bus resources (ie it is not PCI BARs we > > > are

Re: [PATCH 07/20] PCI: implement Devres interface to map PCI config space

2017-03-02 Thread Thierry Reding
On Thu, Mar 02, 2017 at 02:24:06PM -0500, Tejun Heo wrote: > Hello, > > On Thu, Mar 02, 2017 at 02:50:00PM +0200, Andy Shevchenko wrote: > > > I thought about that and did not do it because here we are remapping > > > resources that are _not_ PCI bus resources (ie it is not PCI BARs we > > > are

Re: [PATCH 07/20] PCI: implement Devres interface to map PCI config space

2017-03-02 Thread Andy Shevchenko
On Thu, Mar 2, 2017 at 2:05 PM, Lorenzo Pieralisi wrote: > On Thu, Mar 02, 2017 at 01:54:42AM +0200, Andy Shevchenko wrote: >> On Mon, Feb 27, 2017 at 5:14 PM, Lorenzo Pieralisi >> wrote: +Cc: Tejun, who is initial author of PCI managed

Re: [PATCH 07/20] PCI: implement Devres interface to map PCI config space

2017-03-02 Thread Andy Shevchenko
On Thu, Mar 2, 2017 at 2:05 PM, Lorenzo Pieralisi wrote: > On Thu, Mar 02, 2017 at 01:54:42AM +0200, Andy Shevchenko wrote: >> On Mon, Feb 27, 2017 at 5:14 PM, Lorenzo Pieralisi >> wrote: +Cc: Tejun, who is initial author of PCI managed resources implementation. > I thought about that and did

Re: [PATCH 07/20] PCI: implement Devres interface to map PCI config space

2017-03-02 Thread Lorenzo Pieralisi
Hi Andy, On Thu, Mar 02, 2017 at 01:54:42AM +0200, Andy Shevchenko wrote: > On Mon, Feb 27, 2017 at 5:14 PM, Lorenzo Pieralisi > wrote: > > The introduction of the pci_remap_cfgspace() interface allows > > PCI host controller drivers to map PCI config space through a >

Re: [PATCH 07/20] PCI: implement Devres interface to map PCI config space

2017-03-02 Thread Lorenzo Pieralisi
Hi Andy, On Thu, Mar 02, 2017 at 01:54:42AM +0200, Andy Shevchenko wrote: > On Mon, Feb 27, 2017 at 5:14 PM, Lorenzo Pieralisi > wrote: > > The introduction of the pci_remap_cfgspace() interface allows > > PCI host controller drivers to map PCI config space through a > > dedicated kernel

Re: [PATCH 07/20] PCI: implement Devres interface to map PCI config space

2017-03-01 Thread Andy Shevchenko
On Mon, Feb 27, 2017 at 5:14 PM, Lorenzo Pieralisi wrote: > The introduction of the pci_remap_cfgspace() interface allows > PCI host controller drivers to map PCI config space through a > dedicated kernel interface. Current PCI host controller drivers > use the

Re: [PATCH 07/20] PCI: implement Devres interface to map PCI config space

2017-03-01 Thread Andy Shevchenko
On Mon, Feb 27, 2017 at 5:14 PM, Lorenzo Pieralisi wrote: > The introduction of the pci_remap_cfgspace() interface allows > PCI host controller drivers to map PCI config space through a > dedicated kernel interface. Current PCI host controller drivers > use the devm_ioremap_* Devres interfaces to

Re: [PATCH 07/20] PCI: implement Devres interface to map PCI config space

2017-02-28 Thread Lorenzo Pieralisi
Arnd, all, On Mon, Feb 27, 2017 at 03:14:18PM +, Lorenzo Pieralisi wrote: > The introduction of the pci_remap_cfgspace() interface allows > PCI host controller drivers to map PCI config space through a > dedicated kernel interface. Current PCI host controller drivers > use the devm_ioremap_*

Re: [PATCH 07/20] PCI: implement Devres interface to map PCI config space

2017-02-28 Thread Lorenzo Pieralisi
Arnd, all, On Mon, Feb 27, 2017 at 03:14:18PM +, Lorenzo Pieralisi wrote: > The introduction of the pci_remap_cfgspace() interface allows > PCI host controller drivers to map PCI config space through a > dedicated kernel interface. Current PCI host controller drivers > use the devm_ioremap_*

[PATCH 07/20] PCI: implement Devres interface to map PCI config space

2017-02-27 Thread Lorenzo Pieralisi
The introduction of the pci_remap_cfgspace() interface allows PCI host controller drivers to map PCI config space through a dedicated kernel interface. Current PCI host controller drivers use the devm_ioremap_* Devres interfaces to map PCI configuration space regions so in order to update them to

[PATCH 07/20] PCI: implement Devres interface to map PCI config space

2017-02-27 Thread Lorenzo Pieralisi
The introduction of the pci_remap_cfgspace() interface allows PCI host controller drivers to map PCI config space through a dedicated kernel interface. Current PCI host controller drivers use the devm_ioremap_* Devres interfaces to map PCI configuration space regions so in order to update them to