Re: [PATCH v2 1/2] mailbox: OMAP: introduce mailbox framework

2012-11-06 Thread Linus Walleij
On Tue, Nov 6, 2012 at 4:40 AM, Stephen Warren swar...@wwwdotorg.org wrote:

 Is this a public interface to the driver? If so, shouldn't the header be
 in include/linux somewhere?

I think the split out of the public header is done in patch 2/2.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH v2 1/2] mailbox: OMAP: introduce mailbox framework

2012-11-06 Thread Greg Kroah-Hartman
On Tue, Nov 06, 2012 at 09:55:52AM +0100, Linus Walleij wrote:
 On Tue, Nov 6, 2012 at 4:40 AM, Stephen Warren swar...@wwwdotorg.org wrote:
 
  Is this a public interface to the driver? If so, shouldn't the header be
  in include/linux somewhere?
 
 I think the split out of the public header is done in patch 2/2.

Yes, but the names are still omap_*, which doesn't make much sense here.

greg k-h
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH v2 1/2] mailbox: OMAP: introduce mailbox framework

2012-11-06 Thread Omar Ramirez Luna
Hi Stephen,

On 5 November 2012 21:40, Stephen Warren swar...@wwwdotorg.org wrote:
 On 11/05/2012 07:55 PM, Omar Ramirez Luna wrote:
 Actually moving it from plat-omap, as this framework/driver code is
 supposed to be under drivers/ folder. The framework should work with
 the current supported OMAP processors (OMAP1+) that have mailbox and
 can be used as a method of interprocessor communication.

 The mailbox hardware (in OMAP) uses a queued mailbox-interrupt mechanism
 that provides a communication channel between processors through a set of
 registers and their associated interrupt signals by sending and receiving
 messages.

 diff --git a/drivers/mailbox/mailbox.h b/drivers/mailbox/mailbox.h

 Is this a public interface to the driver? If so, shouldn't the header be
 in include/linux somewhere?

 Is this a generic interface to any mailbox driver? If so, then I don't
 think having omap in the symbol names is appropriate. If the header is
 specific to the OMAP driver, I don't think using the very generic
 filename mailbox.h is appropriate; use omap_mailbox.h instead?

It was a mixture between the two, the next patch splits the API from
the mailbox driver interfaces.

I kept the files named as plain mailbox.[ch], in hopes that we could
progress with the cleanup after moving the files from plat-omap, as it
seems they interfere with the current single Image effort, but if it
is preferred (as it seems to be) I can resend again after removing the
omap_ prefixes from the intended-to-be generic code.

Thanks,

Omar
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH v2 1/2] mailbox: OMAP: introduce mailbox framework

2012-11-06 Thread Omar Ramirez Luna
Hi Greg,

On 6 November 2012 02:59, Greg Kroah-Hartman gre...@linuxfoundation.org wrote:
 On Tue, Nov 06, 2012 at 09:55:52AM +0100, Linus Walleij wrote:
 On Tue, Nov 6, 2012 at 4:40 AM, Stephen Warren swar...@wwwdotorg.org wrote:

  Is this a public interface to the driver? If so, shouldn't the header be
  in include/linux somewhere?

 I think the split out of the public header is done in patch 2/2.

 Yes, but the names are still omap_*, which doesn't make much sense here.

Ok, I have no problem with this...

I was under the impression that moving this code out of plat-omap was
blocking single zImage support hence the minimal changes to move it to
drivers/.

I will strip the generic portions from omap_ prefixes and resend.

Cheers,

Omar
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH v2 1/2] mailbox: OMAP: introduce mailbox framework

2012-11-05 Thread Stephen Warren
On 11/05/2012 07:55 PM, Omar Ramirez Luna wrote:
 Actually moving it from plat-omap, as this framework/driver code is
 supposed to be under drivers/ folder. The framework should work with
 the current supported OMAP processors (OMAP1+) that have mailbox and
 can be used as a method of interprocessor communication.
 
 The mailbox hardware (in OMAP) uses a queued mailbox-interrupt mechanism
 that provides a communication channel between processors through a set of
 registers and their associated interrupt signals by sending and receiving
 messages.

 diff --git a/drivers/mailbox/mailbox.h b/drivers/mailbox/mailbox.h

Is this a public interface to the driver? If so, shouldn't the header be
in include/linux somewhere?

Is this a generic interface to any mailbox driver? If so, then I don't
think having omap in the symbol names is appropriate. If the header is
specific to the OMAP driver, I don't think using the very generic
filename mailbox.h is appropriate; use omap_mailbox.h instead?
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html