Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751962AbbFYHbl (ORCPT ); Thu, 25 Jun 2015 03:31:41 -0400 Received: from lb3-smtp-cloud6.xs4all.net ([194.109.24.31]:55786 "EHLO lb3-smtp-cloud6.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750988AbbFYHbg (ORCPT ); Thu, 25 Jun 2015 03:31:36 -0400 Message-ID: <1435217491.16792.5.camel@tiscali.nl> Subject: Re: [PATCHv5 2/2] mailbox: Adding driver for Xilinx LogiCORE IP mailbox. From: Paul Bolle To: Michal Simek , Moritz Fischer , jassisinghbrar@gmail.com Cc: linux-kernel@vger.kernel.org, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, soren.brinkmann@xilinx.com, akpm@linux-foundation.org, gregkh@linuxfoundation.org, mchehab@osg.samsung.com, arnd@arndb.de, joe@perches.com, jingoohan1@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Date: Thu, 25 Jun 2015 09:31:31 +0200 In-Reply-To: <558BA5D4.8060903@xilinx.com> References: <1435082402-29239-1-git-send-email-moritz.fischer@ettus.com> <1435082402-29239-3-git-send-email-moritz.fischer@ettus.com> <1435178205.4528.77.camel@tiscali.nl> <558BA5D4.8060903@xilinx.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.3 (3.16.3-2.fc22) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1594 Lines: 38 On Thu, 2015-06-25 at 08:55 +0200, Michal Simek wrote: > On 06/24/2015 10:36 PM, Paul Bolle wrote: > > On Tue, 2015-06-23 at 11:00 -0700, Moritz Fischer wrote: > > > +MODULE_ALIAS("platform:xilinx-mailbox"); > > > > So I think this MODULE_ALIAS() is only useful if, in short, there's > > a corresponding platform_device created. Ie, a platform_device with > > a name "xilinx-mailbox" that will fire of a "MODALIAS=platform:xili > > nx-mailbox" when it's created. > > > > I couldn't spot such a platform_device. Provided git grep didn't > > let me down here: what breaks if this line is dropped? > > IRC you don't need to have this platform_device in the kernel > present. Only one thing which should be check is that this driver can > be used as platform device driver. > > The only one problematic part is devm_clk_get() and this should be > checked if you can use this as platform driver. From the first look > it looks like that this will break it. > > Anyway if Moritz is able to use this a platform driver he can keep > this line there. If not, it should be removed. But, assuming this works as a platform driver, where does the "xilinx -mailbox" platform device originate? Paul Bolle PS Evolution 3.16 is nearly unbearable in its handling of replies to plain text messages. Doe anyone know how to make it handle them sensibly? -- 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/