Re: Need some guidance on i2c-ocores driver

2015-04-21 Thread Lee Jones
> >> mfd_add_devices() is called, it uses &dev->resource as the base. So the > >> BAR will > >> be the parent. Check the code in mfd-core.c, mfd_add_device(), > >> > >> if ((cell->resources[r].flags & IORESOURCE_MEM) && mem_base) { > >>res[r].parent = mem_base; > >>res[r].start = mem_base-

Re: Need some guidance on i2c-ocores driver

2015-04-20 Thread York Sun
On 04/20/2015 11:16 AM, Lee Jones wrote: > On Mon, 20 Apr 2015, York Sun wrote: > >> >> >> On 04/19/2015 11:42 PM, Lee Jones wrote: >>> On Fri, 17 Apr 2015, York Sun wrote: >>> Resend to LKML Lee, This question is actually more about MFD. Can you point me to the possible >

Re: Need some guidance on i2c-ocores driver

2015-04-20 Thread Lee Jones
On Mon, 20 Apr 2015, York Sun wrote: > > > On 04/19/2015 11:42 PM, Lee Jones wrote: > > On Fri, 17 Apr 2015, York Sun wrote: > > > >> Resend to LKML > >> > >> Lee, > >> > >> This question is actually more about MFD. Can you point me to the possible > >> causes for my failure below? > > > > It'

Re: Need some guidance on i2c-ocores driver

2015-04-20 Thread York Sun
On 04/19/2015 11:42 PM, Lee Jones wrote: > On Fri, 17 Apr 2015, York Sun wrote: > >> Resend to LKML >> >> Lee, >> >> This question is actually more about MFD. Can you point me to the possible >> causes for my failure below? > > It's hard to tell exactly without code, but it looks like you're >

Re: Need some guidance on i2c-ocores driver

2015-04-19 Thread Lee Jones
On Fri, 17 Apr 2015, York Sun wrote: > Resend to LKML > > Lee, > > This question is actually more about MFD. Can you point me to the possible > causes for my failure below? It's hard to tell exactly without code, but it looks like you're trying to allocate overlapping memory regions. Double ch

Re: Need some guidance on i2c-ocores driver

2015-04-17 Thread York Sun
Resend to LKML Lee, This question is actually more about MFD. Can you point me to the possible causes for my failure below? Thanks. York On 04/16/2015 05:02 PM, York Sun wrote: > Julia and other experts, > > I am seeking for help on my device driver. > > I am working on a module driver for

Need some guidance on i2c-ocores driver

2015-04-16 Thread York Sun
Julia and other experts, I am seeking for help on my device driver. I am working on a module driver for a FPGA design with open core I2C controller memory-mapped to BAR2. I have searched up and down and found only one driver (drivers/mfd/timberdale.c) with similar implementation. Following timber