Re: [PATCH] RFC: add function for localbus address

2014-10-22 Thread Stephen Boyd
On 10/22/2014 04:20 PM, Russell King - ARM Linux wrote: > On Wed, Oct 22, 2014 at 04:01:26PM -0700, Stephen Boyd wrote: >> Where did this end up? When we talked at Connect I think we settled on >> exploring a driver core specific API like dev_get_localbus_address() >> that calls of_get_localbus_add

Re: [PATCH] RFC: add function for localbus address

2014-10-22 Thread Mark Brown
On Wed, Oct 22, 2014 at 04:01:26PM -0700, Stephen Boyd wrote: > >> "Currently a bunch of I2C/SPI MFD drivers are using IORESOURCE_IO for > >> register address ranges. Since this causes some confusion due to the > >> primary use of this resource type for PCI/ISA I/O ports create a new > >> resource

Re: [PATCH] RFC: add function for localbus address

2014-10-22 Thread Russell King - ARM Linux
On Wed, Oct 22, 2014 at 04:01:26PM -0700, Stephen Boyd wrote: > Where did this end up? When we talked at Connect I think we settled on > exploring a driver core specific API like dev_get_localbus_address() > that calls of_get_localbus_address() for devices with an of_node and in > the future it cou

Re: [PATCH] RFC: add function for localbus address

2014-10-22 Thread Stephen Boyd
On 09/13/2014 09:46 PM, Grant Likely wrote: > On Mon, 08 Sep 2014 13:22:44 -0700, Stephen Boyd wrote: >> >> Where is this described? From the commit text that introduces >> IORESOURCE_REG I see: >> >> "Currently a bunch of I2C/SPI MFD drivers are using IORESOURCE_IO for >> register address ranges.

Re: [PATCH] RFC: add function for localbus address

2014-09-14 Thread Grant Likely
On Mon, 08 Sep 2014 13:22:44 -0700, Stephen Boyd wrote: > Adding Mark Brown who finished off introducing IORESOURCE_REG. > > On 09/08/14 07:52, Grant Likely wrote: > > On Tue, 2 Sep 2014 18:45:00 +0300, Stanimir Varbanov > > wrote: > >> + > >> unsigned long __weak pci_address_to_pio(phys_addr

Re: [PATCH] RFC: add function for localbus address

2014-09-09 Thread Stanimir Varbanov
Hi Grant, Thanks for the comments! On 09/08/2014 05:52 PM, Grant Likely wrote: > On Tue, 2 Sep 2014 18:45:00 +0300, Stanimir Varbanov > wrote: >> Hi Grant, >> >> I came down to this. Could you review? Is that >> implementation closer to the suggestion made by you. >> >> --- >> drivers/of/addr

Re: [PATCH] RFC: add function for localbus address

2014-09-08 Thread Mark Brown
On Mon, Sep 08, 2014 at 01:22:44PM -0700, Stephen Boyd wrote: > Where is this described? From the commit text that introduces > IORESOURCE_REG I see: > "Currently a bunch of I2C/SPI MFD drivers are using IORESOURCE_IO for > register address ranges. Since this causes some confusion due to the > pr

Re: [PATCH] RFC: add function for localbus address

2014-09-08 Thread Stephen Boyd
Adding Mark Brown who finished off introducing IORESOURCE_REG. On 09/08/14 07:52, Grant Likely wrote: > On Tue, 2 Sep 2014 18:45:00 +0300, Stanimir Varbanov > wrote: >> + >> unsigned long __weak pci_address_to_pio(phys_addr_t address) >> { >> if (address > IO_SPACE_LIMIT) >> @@ -665,6 +6

Re: [PATCH] RFC: add function for localbus address

2014-09-08 Thread Grant Likely
On Tue, 2 Sep 2014 18:45:00 +0300, Stanimir Varbanov wrote: > Hi Grant, > > I came down to this. Could you review? Is that > implementation closer to the suggestion made by you. > > --- > drivers/of/address.c | 49 > > drivers/of/platform.

Re: [PATCH] RFC: add function for localbus address

2014-09-05 Thread Stephen Boyd
On 09/02/14 08:45, Stanimir Varbanov wrote: > Hi Grant, > > I came down to this. Could you review? Is that > implementation closer to the suggestion made by you. I like this patch (but I'm biased because I want it to exist). Feel free to add my Tested-by. > --- > drivers/of/address.c |

[PATCH] RFC: add function for localbus address

2014-09-02 Thread Stanimir Varbanov
Hi Grant, I came down to this. Could you review? Is that implementation closer to the suggestion made by you. --- drivers/of/address.c | 49 drivers/of/platform.c | 20 ++--- include/linux/of_address.h | 19 +++