Re: [PATCHv4,2/5] mailbox: Introduce framework for mailbox

2014-03-31 Thread Markus Mayer
On 28 March 2014 20:54, Jassi Brar wrote: > On Sat, Mar 29, 2014 at 3:38 AM, Markus Mayer wrote: > > . > >>> +int mbox_send_message(struct mbox_chan *chan, void *mssg) >>> +{ >>> + int t; >>> + >>> + if (!chan || !chan->cl) >>> + return -EINVAL; >>> + >>> + t = _add_to

Re: [PATCHv4,2/5] mailbox: Introduce framework for mailbox

2014-03-28 Thread Jassi Brar
On Sat, Mar 29, 2014 at 3:38 AM, Markus Mayer wrote: . >> +int mbox_send_message(struct mbox_chan *chan, void *mssg) >> +{ >> + int t; >> + >> + if (!chan || !chan->cl) >> + return -EINVAL; >> + >> + t = _add_to_rbuf(chan, mssg); >> + if (t < 0) { >> +

Re: [PATCHv4,2/5] mailbox: Introduce framework for mailbox

2014-03-28 Thread Markus Mayer
> diff --git a/drivers/mailbox/mailbox.c b/drivers/mailbox/mailbox.c > new file mode 100644 > index 000..79d576e > --- /dev/null > +++ b/drivers/mailbox/mailbox.c > @@ -0,0 +1,589 @@ > +/* > + * Mailbox: Common code for Mailbox controllers and users > + * > + * Copyright (C) 2014 Linaro Ltd. >