Re: [PATCH 1/3] mfd: add support for Janz CMOD-IO PCI MODULbus Carrier Board

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ira W. Snyder
Date: Thursday, March 25, 2010 - 4:22 pm

On Thu, Mar 25, 2010 at 11:59:30PM +0100, Samuel Ortiz wrote:

I don't know the implications of using iomem_resource as the parent
resource. If you think it is ok, I have no objections.

If it helps, I can provide the PCI resource as a parent resource in my
resources. Then, when mem_base is NULL, the mfd-core could do this:

res[r].parent = cell->resources[r].parent

This is basically what I did in my patch. I used the PCI resource as the
parent of all child resources. I don't know if that is safe, but it
works. :)

The mfd_add_device() function does this for IORESOURCE_IO resources. It
only tries to be smart for IORESOURCE_MEM and IORESOURCE_IRQ resources.


Yep, that makes sense.


I guess it is a trivial enough change to merge with this patch.

I'll wait for your patch to the mfd-core API before making changes and
sending out the next round of updates.

Thanks for replying,
Ira
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/3] mfd: add support for Janz CMOD-IO PCI MODU ..., Wolfgang Grandegger, (Fri Mar 19, 2:13 am)
Re: [PATCH 1/3] mfd: add support for Janz CMOD-IO PCI MODU ..., Wolfgang Grandegger, (Fri Mar 19, 8:35 am)
Re: [PATCH 1/3] mfd: add support for Janz CMOD-IO PCI MODU ..., Ira W. Snyder, (Thu Mar 25, 4:22 pm)