All of lore.kernel.org
 help / color / mirror / Atom feed
* Guidelines to move mach-omap2/gpmc to drivers/memory-controller
@ 2013-02-15 16:58 Ezequiel Garcia
  2013-02-15 19:53 ` Paul Walmsley
  0 siblings, 1 reply; 5+ messages in thread
From: Ezequiel Garcia @ 2013-02-15 16:58 UTC (permalink / raw)
  To: linux-omap

Hello,

I'd like to know which are the current constraints
preventing us from moving OMAP's GPMC memory controller driver
from mach-omap2/ to drivers/memory-controller.

I imagine one of the biggest issues is GPMC's dependency on
hwmod code. Can anyone shed some light on how to handle this?

Is there any way to move hwmod to some place under drivers/...?

Thanks,
-- 
Ezequiel García, Free Electrons
Embedded Linux, Kernel and Android Engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Guidelines to move mach-omap2/gpmc to drivers/memory-controller
  2013-02-15 16:58 Guidelines to move mach-omap2/gpmc to drivers/memory-controller Ezequiel Garcia
@ 2013-02-15 19:53 ` Paul Walmsley
  2013-02-15 20:08   ` Jon Hunter
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Walmsley @ 2013-02-15 19:53 UTC (permalink / raw)
  To: Ezequiel Garcia; +Cc: linux-omap

Hi,

On Fri, 15 Feb 2013, Ezequiel Garcia wrote:

> I imagine one of the biggest issues is GPMC's dependency on
> hwmod code. Can anyone shed some light on how to handle this?

What dependency is this?  I'm not aware of any GPMC dependency to hwmod; 
there shouldn't be any.


- Paul

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Guidelines to move mach-omap2/gpmc to drivers/memory-controller
  2013-02-15 19:53 ` Paul Walmsley
@ 2013-02-15 20:08   ` Jon Hunter
  2013-02-20  0:36     ` Ezequiel Garcia
  0 siblings, 1 reply; 5+ messages in thread
From: Jon Hunter @ 2013-02-15 20:08 UTC (permalink / raw)
  To: Paul Walmsley; +Cc: Ezequiel Garcia, linux-omap


On 02/15/2013 01:53 PM, Paul Walmsley wrote:
> Hi,
> 
> On Fri, 15 Feb 2013, Ezequiel Garcia wrote:
> 
>> I imagine one of the biggest issues is GPMC's dependency on
>> hwmod code. Can anyone shed some light on how to handle this?
> 
> What dependency is this?  I'm not aware of any GPMC dependency to hwmod; 
> there shouldn't be any.

If Ezequiel is referring to the code in omap_gpmc_init() that is looking
up the hwmod struct for gpmc, then this not a dependency. This function
should remain in mach-omap2/gpmc.c and not be moved into drivers/.
Eventually once we have migrated to DT, this function will be removed
altogether.

Cheers
Jon

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Guidelines to move mach-omap2/gpmc to drivers/memory-controller
  2013-02-15 20:08   ` Jon Hunter
@ 2013-02-20  0:36     ` Ezequiel Garcia
  2013-02-20 15:57       ` Jon Hunter
  0 siblings, 1 reply; 5+ messages in thread
From: Ezequiel Garcia @ 2013-02-20  0:36 UTC (permalink / raw)
  To: Jon Hunter; +Cc: Paul Walmsley, linux-omap

Hi Jon,

On Fri, Feb 15, 2013 at 02:08:08PM -0600, Jon Hunter wrote:
> 
> On 02/15/2013 01:53 PM, Paul Walmsley wrote:
> > Hi,
> > 
> > On Fri, 15 Feb 2013, Ezequiel Garcia wrote:
> > 
> >> I imagine one of the biggest issues is GPMC's dependency on
> >> hwmod code. Can anyone shed some light on how to handle this?
> > 
> > What dependency is this?  I'm not aware of any GPMC dependency to hwmod; 
> > there shouldn't be any.
> 
> If Ezequiel is referring to the code in omap_gpmc_init() that is looking
> up the hwmod struct for gpmc, then this not a dependency. This function
> should remain in mach-omap2/gpmc.c and not be moved into drivers/.

Yes, I was referring to that code.

> Eventually once we have migrated to DT, this function will be removed
> altogether.
>

Mmm, I see. So I might try to move GPMC and friends to drivers/memory
keeping the hwmod code inside mach-omap2.

I already did a few tests and I **think** that with a little luck 
we can have a not-so-intrusive patch that moves GPMC.

@Jon: Do you think it's worth the effort? 

-- 
Ezequiel García, Free Electrons
Embedded Linux, Kernel and Android Engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Guidelines to move mach-omap2/gpmc to drivers/memory-controller
  2013-02-20  0:36     ` Ezequiel Garcia
@ 2013-02-20 15:57       ` Jon Hunter
  0 siblings, 0 replies; 5+ messages in thread
From: Jon Hunter @ 2013-02-20 15:57 UTC (permalink / raw)
  To: Ezequiel Garcia; +Cc: Paul Walmsley, linux-omap


On 02/19/2013 06:36 PM, Ezequiel Garcia wrote:
> Hi Jon,
> 
> On Fri, Feb 15, 2013 at 02:08:08PM -0600, Jon Hunter wrote:
>>
>> On 02/15/2013 01:53 PM, Paul Walmsley wrote:
>>> Hi,
>>>
>>> On Fri, 15 Feb 2013, Ezequiel Garcia wrote:
>>>
>>>> I imagine one of the biggest issues is GPMC's dependency on
>>>> hwmod code. Can anyone shed some light on how to handle this?
>>>
>>> What dependency is this?  I'm not aware of any GPMC dependency to hwmod; 
>>> there shouldn't be any.
>>
>> If Ezequiel is referring to the code in omap_gpmc_init() that is looking
>> up the hwmod struct for gpmc, then this not a dependency. This function
>> should remain in mach-omap2/gpmc.c and not be moved into drivers/.
> 
> Yes, I was referring to that code.
> 
>> Eventually once we have migrated to DT, this function will be removed
>> altogether.
>>
> 
> Mmm, I see. So I might try to move GPMC and friends to drivers/memory
> keeping the hwmod code inside mach-omap2.
> 
> I already did a few tests and I **think** that with a little luck 
> we can have a not-so-intrusive patch that moves GPMC.
> 
> @Jon: Do you think it's worth the effort? 

Yes absolutely! We want all the drivers out of mach-omap2. So that would
be great.

Cheers
Jon


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-02-20 15:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-15 16:58 Guidelines to move mach-omap2/gpmc to drivers/memory-controller Ezequiel Garcia
2013-02-15 19:53 ` Paul Walmsley
2013-02-15 20:08   ` Jon Hunter
2013-02-20  0:36     ` Ezequiel Garcia
2013-02-20 15:57       ` Jon Hunter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.