devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sudeep Holla <sudeep.holla-5wv7dgnIgG8@public.gmane.org>
To: Jassi Brar
	<jaswinder.singh-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
	"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	"linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Cc: Sudeep Holla <sudeep.holla-5wv7dgnIgG8@public.gmane.org>,
	"ks.giri-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org"
	<ks.giri-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>,
	"arnd-r2nGTMty4D4@public.gmane.org"
	<arnd-r2nGTMty4D4@public.gmane.org>,
	"ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org"
	<ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org>,
	Mark Rutland <Mark.Rutland-5wv7dgnIgG8@public.gmane.org>,
	"robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org"
	<robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Pawel Moll <Pawel.Moll-5wv7dgnIgG8@public.gmane.org>,
	"courtney.cavin-/MT0OVThwyLZJqsBc5GL+g@public.gmane.org"
	<courtney.cavin-/MT0OVThwyLZJqsBc5GL+g@public.gmane.org>,
	"mporter-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org"
	<mporter-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
	"slapdau-/E1597aS9LT0CCvOHzKKcA@public.gmane.org"
	<slapdau-/E1597aS9LT0CCvOHzKKcA@public.gmane.org>,
	"lftan.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"
	<lftan.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	"loic.pallardy-qxv4g6HH51o@public.gmane.org"
	<loic.pallardy-qxv4g6HH51o@public.gmane.org>,
	"s-anna-l0cyMroinI0@public.gmane.org"
	<s-anna-l0cyMroinI0@public.gmane.org>,
	"ashwin.chaugule-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org"
	<ashwin.chaugule-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
	"bjorn-UYDU3/A3LUY@public.gmane.org"
	<bjorn-UYDU3/A3LUY@public.gmane.org>,
	"patches-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org"
	<patches-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
	"Mollie.Wu-l16TxrwUIHTQFUHtdCDX3A@public.gmane.org"
	<Mollie.Wu-l16TxrwUIHTQFUHtdCDX3A@public.gmane.org>,
	"t.takinishi-+CUm20s59erQFUHtdCDX3A@public.gmane.org"
	<t.takinishi-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
Subject: Re: [PATCHv8 2/2] mailbox: Introduce framework for mailbox
Date: Wed, 16 Jul 2014 10:40:19 +0100	[thread overview]
Message-ID: <53C64883.2050709@arm.com> (raw)
In-Reply-To: <1405071325-14683-1-git-send-email-jaswinder.singh-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>



On 11/07/14 10:35, Jassi Brar wrote:
> Introduce common framework for client/protocol drivers and
> controller drivers of Inter-Processor-Communication (IPC).
>
> Client driver developers should have a look at
>   include/linux/mailbox_client.h to understand the part of
> the API exposed to client drivers.
> Similarly controller driver developers should have a look
> at include/linux/mailbox_controller.h
>
> Signed-off-by: Jassi Brar <jaswinder.singh-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
> ---
>   .../devicetree/bindings/mailbox/mailbox.txt        |  33 ++
>   Documentation/mailbox.txt                          | 107 +++++
>   MAINTAINERS                                        |   8 +
>   drivers/mailbox/Makefile                           |   4 +
>   drivers/mailbox/mailbox.c                          | 490 +++++++++++++++++++++
>   include/linux/mailbox_client.h                     |  48 ++
>   include/linux/mailbox_controller.h                 | 128 ++++++
>   7 files changed, 818 insertions(+)
>   create mode 100644 Documentation/devicetree/bindings/mailbox/mailbox.txt
>   create mode 100644 Documentation/mailbox.txt
>   create mode 100644 drivers/mailbox/mailbox.c
>   create mode 100644 include/linux/mailbox_client.h
>   create mode 100644 include/linux/mailbox_controller.h
>
> diff --git a/Documentation/devicetree/bindings/mailbox/mailbox.txt b/Documentation/devicetree/bindings/mailbox/mailbox.txt
> new file mode 100644
> index 0000000..3f00955
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mailbox/mailbox.txt
> @@ -0,0 +1,33 @@
> +* Generic Mailbox Controller and client driver bindings
> +
> +Generic binding to provide a way for Mailbox controller drivers to
> +assign appropriate mailbox channel to client drivers.
> +
> +* Mailbox Controller
> +
> +Required property:
> +- #mbox-cells: Must be at least 1. Number of cells in a mailbox
> +               specifier.
> +
> +Example:
> +       mailbox: mailbox {
> +               ...
> +               #mbox-cells = <1>;
> +       };
> +
> +
> +* Mailbox Client
> +
> +Required property:
> +- mbox: List of phandle and mailbox channel specifier.
> +
> +- mbox-names: List of identifier strings for each mailbox channel
> +               required by the client.
> +

IMO the mailbox names are more associated with the controller channels/
mailbox rather than the clients using it. Does it make sense to move
this under controller. It also avoid each client replicating the names.

Regards,
Sudeep

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2014-07-16  9:40 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-11  9:32 [PATCHv8 0/2] Common Mailbox Framework Jassi Brar
     [not found] ` <1405071167-14503-1-git-send-email-jaswinder.singh-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2014-07-11  9:34   ` [PATCHv8 1/2] mailbox: rename pl320-ipc specific mailbox.h Jassi Brar
     [not found]     ` <1405071252-14630-1-git-send-email-jaswinder.singh-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2014-07-11 17:12       ` Arnd Bergmann
2014-07-11  9:35 ` [PATCHv8 2/2] mailbox: Introduce framework for mailbox Jassi Brar
     [not found]   ` <1405071325-14683-1-git-send-email-jaswinder.singh-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2014-07-11 11:46     ` Ashwin Chaugule
     [not found]       ` <CAJ5Y-eYPffYQ57ERODyBYYKjL2FVhGapKmP0YxzcT9rswfaJaA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-07-14  4:17         ` Jassi Brar
     [not found]           ` <CAJe_Zhe5W4D+TzyfKdE8KvSc8SJwyHG3SQGpUyd8-ML-wHBDyg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-07-14  8:04             ` Ashwin Chaugule
2014-07-16  9:40     ` Sudeep Holla [this message]
     [not found]       ` <53C64883.2050709-5wv7dgnIgG8@public.gmane.org>
2014-07-16 10:16         ` Arnd Bergmann
2014-07-16 11:16           ` Sudeep Holla
2014-07-16 11:32             ` Arnd Bergmann
2014-07-16 13:29               ` Sudeep Holla
2014-07-16 12:37           ` Jassi Brar
     [not found]             ` <CAJe_ZheAjhufEf3c72bwbvF11P070hxh0qZ9s5KDxwFUgH1ixg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-07-16 12:45               ` Arnd Bergmann
2014-07-16 13:05                 ` Jassi Brar
2014-07-16 13:09                   ` Arnd Bergmann
2014-07-16 13:12                     ` Jassi Brar
2014-07-16 14:08                       ` Arnd Bergmann
2014-07-16 14:18                         ` Jassi Brar
2014-07-16 16:09                           ` Suman Anna
     [not found]                             ` <53C6A3CB.5060005-l0cyMroinI0@public.gmane.org>
2014-07-17  7:25                               ` Jassi Brar
2014-07-16 14:34                         ` Sudeep Holla
2014-07-11 17:26   ` Arnd Bergmann
     [not found]     ` <201407111926.13939.arnd-r2nGTMty4D4@public.gmane.org>
2014-07-14  5:40       ` Jassi Brar
2014-07-11 22:09   ` Markus Mayer
     [not found]     ` <CAPdLdqmBUFaCjdLrYJh3P2jizYC3GP0g7ut+FNaLQ5a73gMp0w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-07-14  4:56       ` Jassi Brar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53C64883.2050709@arm.com \
    --to=sudeep.holla-5wv7dgnigg8@public.gmane.org \
    --cc=Mark.Rutland-5wv7dgnIgG8@public.gmane.org \
    --cc=Mollie.Wu-l16TxrwUIHTQFUHtdCDX3A@public.gmane.org \
    --cc=Pawel.Moll-5wv7dgnIgG8@public.gmane.org \
    --cc=arnd-r2nGTMty4D4@public.gmane.org \
    --cc=ashwin.chaugule-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=bjorn-UYDU3/A3LUY@public.gmane.org \
    --cc=courtney.cavin-/MT0OVThwyLZJqsBc5GL+g@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org \
    --cc=jaswinder.singh-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=ks.giri-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
    --cc=lftan.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=loic.pallardy-qxv4g6HH51o@public.gmane.org \
    --cc=mporter-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=patches-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=s-anna-l0cyMroinI0@public.gmane.org \
    --cc=slapdau-/E1597aS9LT0CCvOHzKKcA@public.gmane.org \
    --cc=t.takinishi-+CUm20s59erQFUHtdCDX3A@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).