Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751858AbbFYGzn (ORCPT ); Thu, 25 Jun 2015 02:55:43 -0400 Received: from mail-bl2on0077.outbound.protection.outlook.com ([65.55.169.77]:15534 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750983AbbFYGzf (ORCPT ); Thu, 25 Jun 2015 02:55:35 -0400 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; tiscali.nl; dkim=none (message not signed) header.d=none; Message-ID: <558BA5D4.8060903@xilinx.com> Date: Thu, 25 Jun 2015 08:55:16 +0200 From: Michal Simek User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Paul Bolle , Moritz Fischer , CC: , , , , , , , , , , , , , , , Subject: Re: [PATCHv5 2/2] mailbox: Adding driver for Xilinx LogiCORE IP mailbox. 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> In-Reply-To: <1435178205.4528.77.camel@tiscali.nl> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.0.0.1202-21630.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD055;1:0gtm40NVV8fDYorB8z1frk4wNMOo9aAisHeYakcLAMNES6VJg9LR+ZyANbBj/nHrRUcWAGmRIPJpkCiE6GjOCDF8qRasJxSpjTT9s11p0MamcDq780PojruxwMFVT0WOROVjMfF/thVs6JWR7wlwVexG2jBqfRrXUniXRIeaacrkPlV7RNhcw/uM/Ye5UC4nC3yyWvIud2dZcCckWH925dLSbBpjSAQlBvgaI0jWnFxB3VkeLCzxUMAOWt2rR4cb1DUYQvWE9C65XuphZzC5LWnfJrRcMQFgNJaSecemwjM= X-Forefront-Antispam-Report: CIP:149.199.60.83;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(438002)(199003)(164054003)(479174004)(377454003)(51704005)(24454002)(189002)(377424004)(189998001)(65956001)(47776003)(50466002)(65806001)(63266004)(5001960100002)(86362001)(76176999)(65816999)(6806004)(77096005)(2950100001)(54356999)(92566002)(50986999)(87266999)(87936001)(83506001)(5001770100001)(59896002)(23676002)(36386004)(4001350100001)(46102003)(77156002)(62966003)(33656002)(106466001)(36756003)(107986001);DIR:OUT;SFP:1101;SCL:1;SRVR:BN1BFFO11HUB013;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;MLV:sfv;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11HUB013;2:jftdEQjVIEU/yprKB0TfH9CbbBisWaPBKwyEoq5FAvZj6zPBV2DPa8fSKfs8YlPU;3:n/dCG0OIv0mh7YcbpZAnArhN7Vb0pYT5YBhxEy0X5VBFF6cO67uwf+MZt3ym0ILTplnInsakSo8JFhIY43MK6bTF6o5p2t/0PGsEuNuEx0l2AFxLW8rIIZkErpRf8nTCmiaXYNlENTMzN/ff7mUb20bUZHd4y2JBGeQrMGBDRTheUEUl8LsGp1pdFgkOJrzOtHn/6tPk+pJytLgDYsZxgUCSZYzgsYDOyzEsrkWHHT8=;20:UG1fE1Vw0FvSHo47jbeVimAwfsO9YWJuNOUChowZMEowjfIBuLM3WYtV81npE8WiWYhfj+DDMrPXbOvwLQ5fs6CIvoCTAlcEY05YhIXHn7V4GlFSkSU02OaGOmnBrOSDJfP8/BO5U4sFY+4ShSFgO196KJEUkVY3e6G0/cBzgRTCl1zHf9CQVFaH+E/NAdkrHGG8AFMTxGgoPParVCov5sttGkNktPRFo4wRR1/zG2f5wU+qpZ0zno/mw1ekX4Thdgb6dOPKja/Kcisra+8b1QUhcqdC40FNsSQojde8PDVElPduoyPgii0hgsXftzoDWXRnzZdGQBQQz54gYKNvgqnONUITj0q+CyOEBhJ//11wPSOAOArdJ2ZgONNSYawbFNuHYQAnd7gqvpfgRJfU23Ci4ZkYkRWvFyEhg0jFfolsCDd+4Zbtb7U+mvrz/aeuLZScjJxFwPUR4dl0V2o2gRj5LDljjrqEsGf+QSN86WuD6DX7w1OJRFJJ5d4ImsOQ X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN1BFFO11HUB013; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:BN1BFFO11HUB013;BCL:0;PCL:0;RULEID:;SRVR:BN1BFFO11HUB013; X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11HUB013;4:fRN/gzR2Tx+MLBFNWpwe8B9tiO7AQW29JO1i7KshbUwRDTLNPO/FUle9V8XCzaJ8D6+ok+egjQa/WMs6BOQRbe2l726GdI+IaV0alwrHgZb6l43QGz20JqBruxuIkuTlinJeu79n2hjobAtJnEBXmMBkdhpI6WRGv8n0WUEIwKwfpdYK7vlRqBI52h7v941NPd3KxAs3BUVFQbioVsWMwmcbN8T9GbGzPRchNQNWORq1a6XJD/bkhbneDHplvu4PrMKE8aPTJLRUlFxe8gMKm5p33skUIYqNuJ+vPT8AE10= X-Forefront-PRVS: 0618E4E7E1 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjFCRkZPMTFIVUIwMTM7MjM6cFJNMU9LN0pUaHl6YjJ4UVFoOFlYcU41?= =?utf-8?B?UzdSODdvQktsUGpkUFg4YVMxN1dVUEEraXpNMzNyRHlrMHlTUWtIV0pqK2Vu?= =?utf-8?B?OVFySmM4QnNleFhHM2tTcWlmV0p0YWVCbnpzMFdJUHN4WVNrQTBGa1NKbmRD?= =?utf-8?B?dXhKcGF5WXJJbE5ZV3haK01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C9HWGpuOUw4NUZpbzBRb3NqSG0zRC9QZmlPb0hGVnVjKzlaQUI4eG5U?= =?utf-8?B?MnZPdXViU04zVlJwak8vaUtmUWpKemp6SkdqeXZGM3hta0dlRnI4MFJ3VHJY?= =?utf-8?B?WHdnVitZZ3RiTGxpaERQcGNGZkc4clhHSWpuTjhxcXhzc29oVFBvWmo4NWRF?= =?utf-8?B?QXBDenR4MEFnM2d4MU9KOGJYbjFHeUNvVFIvVGoxSnVGVHhscHFOd2RlZHRt?= =?utf-8?B?ZUFhY3FDWkhQRDlxRXBEeUZlNWloL05HRzFxeURjd0xLVWxmRkpNSWRUMGtQ?= =?utf-8?B?dWRPendMbHZqQlVrb3h6S3F2SGJSVU5qNldKN09OcEkrUVdDWEFJM1JpWFNs?= =?utf-8?Q?/0Tf7oE1cAcAH7geomfrLKGB0NxjE?= X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11HUB013;5:28XQHe5j+dePGhwOkewmpIukOfOVnWqqgJdLkpLY/uSC5i9OUo8gl8SiKsSANzaTj9WVnmr1HuOHy02shinBg8huz0oXvJ10F7PGSEUuBtdszRItVRyhgtlnNFUAhWmsilG1QZcLh4QlW3idbYYZgQ==;24:YNADo/p5wEDiDpR37QGbQZrqOCfPCCcBlgnFiRDjbPcFsEJs41g6E4GitieejbnmXK18up1Cr2vMFTRA0ubOxnfZo96LaGX2INqKSGdxLbw= X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jun 2015 06:55:33.0625 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1BFFO11HUB013 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1240 Lines: 32 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:xilinx > -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. Thanks, Michal -- 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/