Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751367Ab2KGGlT (ORCPT ); Wed, 7 Nov 2012 01:41:19 -0500 Received: from mail-vb0-f46.google.com ([209.85.212.46]:64176 "EHLO mail-vb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750910Ab2KGGlS (ORCPT ); Wed, 7 Nov 2012 01:41:18 -0500 MIME-Version: 1.0 In-Reply-To: <50990849.4050003@st.com> References: <1352170552-29564-1-git-send-email-omar.luna@linaro.org> <1352170552-29564-3-git-send-email-omar.luna@linaro.org> <50990849.4050003@st.com> Date: Wed, 7 Nov 2012 00:41:17 -0600 Message-ID: Subject: Re: [PATCH v2 2/2] mailbox: split internal header from API header From: Omar Ramirez Luna To: Loic PALLARDY Cc: Greg Kroah-Hartman , Russell King , Tony Lindgren , Janusz Krzysztofik , Arnd Bergmann , Ohad Ben-Cohen , Mark Brown , Dom Cobley , Wim Van Sebroeck , Linus Walleij , Suman Anna , Juan Gutierrez , Felipe Contreras , Tejun Heo , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-omap@vger.kernel.org" Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1349 Lines: 39 Hi Loic, On 6 November 2012 06:53, Loic PALLARDY wrote: > > > On 11/06/2012 03:55 AM, Omar Ramirez Luna wrote: >> Now internal structures can remain hidden to the user and just API >> related functions and defines are made available. >> >> Signed-off-by: Omar Ramirez Luna >> --- >> drivers/mailbox/mailbox.c | 34 ++++++++++++++++++++++++++++++++ >> drivers/mailbox/mailbox.h | 48 +-------------------------------------------- >> include/linux/mailbox.h | 22 +++++++++++++++++++ > I agree with the file split but I think mailbox framework API should be > more generic. > omap_ prefix should not be used. mailbox_ prefix will be better. Ok. > Message type must be more opened like for example: > struct mailbox_msg { > int size; > unsigned char header; > unsigned char *pdata; > }; We can analyze the requirement for having such structure, presumably you expect variable size messages, in OMAP case it is a 4 byte value, but I'm open to change in order to accommodate other users needs. Cheers, Omar -- 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/