Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751871AbaK0Hb2 (ORCPT ); Thu, 27 Nov 2014 02:31:28 -0500 Received: from mail-qg0-f53.google.com ([209.85.192.53]:55614 "EHLO mail-qg0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751262AbaK0Hb1 (ORCPT ); Thu, 27 Nov 2014 02:31:27 -0500 MIME-Version: 1.0 In-Reply-To: <1415730781-17819-1-git-send-email-sudeep.holla@arm.com> References: <1415721852-10193-1-git-send-email-sudeep.holla@arm.com> <1415730781-17819-1-git-send-email-sudeep.holla@arm.com> Date: Thu, 27 Nov 2014 13:01:26 +0530 Message-ID: Subject: Re: [PATCH v2] mailbox: add tx_prepare client callback From: Jassi Brar To: Sudeep Holla Cc: lkml , Arnd Bergmann Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12 November 2014 at 00:03, Sudeep Holla wrote: > If the mailbox controller expects the payload is in place before > initiating the transmit, then it's impossible to reuse the list > maintained by core mailbox code currently. Maintaining another list > for sending the message in the controller seems totally unnecessary > as core mailbox library already provides that feature. > > This patch introduces tx_prepare callback in mbox_client which > can be used by the core mailbox library before initiating the > transaction through mbox->ops->send_data. The client driver can > implement this callback to ensure the payload is copied to the > shared memory. > > Signed-off-by: Sudeep Holla > Cc: Jassi Brar > Cc: Arnd Bergmann > --- > drivers/mailbox/mailbox.c | 2 ++ > include/linux/mailbox_client.h | 3 +++ > 2 files changed, 5 insertions(+) > Applied to mailbox-devel, Thanks. -Jassi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/