Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936512AbcKXJMU (ORCPT ); Thu, 24 Nov 2016 04:12:20 -0500 Received: from mout.kundenserver.de ([212.227.126.130]:60481 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933657AbcKXJMR (ORCPT ); Thu, 24 Nov 2016 04:12:17 -0500 From: Arnd Bergmann To: Ulf Hansson Cc: Gregory CLEMENT , Rob Herring , Ziji Hu , Adrian Hunter , "linux-mmc@vger.kernel.org" , Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , "devicetree@vger.kernel.org" , Thomas Petazzoni , "linux-arm-kernel@lists.infradead.org" , "Jack(SH) Zhu" , Jimmy Xu , Jisheng Zhang , Nadav Haklai , Ryan Gao , Doug Jones , Shiwu Zhang , Victor Gu , "Wei(SOCP) Liu" , Wilson Ding , Xueping Liu , Hilbert Zhang , Keji Zhang , Liuliu Zhao , Peng Zhu , Yu Cao , Romain Perier , Yehuda Yitschak , Marcin Wojtas , Hanna Hawa , Kostya Porotchkin , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 5/10] dt: bindings: Add bindings for Marvell Xenon SD Host Controller Date: Thu, 24 Nov 2016 10:11:19 +0100 Message-ID: <4031579.CBE32NHUoW@wuerfel> User-Agent: KMail/5.1.3 (Linux/4.4.0-34-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: References: <87d1hno2d7.fsf@free-electrons.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:K7RmkNNXZlFFQFviL7sE1HFMEVqAV5D/HqmwhhvwmoHQ+iPId4Y lx4NNtKrmehimIsYEIn79ov93ESgorC7p9u1O2FE7FFBMUURJh5xc6iuUDZNmtrEB4uWOJz LWMvhvPczHqrQ8VXB/DL/LGBU5fxRkiG4j0+7W89ysN19xLYBHcE4SSEsXruPc8t9m9yGRF C/3Jk6QytkXxcHAmyzTzg== X-UI-Out-Filterresults: notjunk:1;V01:K0:/prV/DguJkg=:dEIFXsSsrpkXmmF9CEmlT+ 9fPF0gQqTNll4OFxmUWB6sEL61xGdx0cX4Z1D9+g4rFT1SKzsmGqD0WHroCnkT6dmBUpwEDvR jSRn+NTRilvONu4WGOwMwbttqDkU4dd2V2fAYkxXX5anTfeVNV7iBCyexjfi1g7xJgb/iIGiM 1P6si3aqtP3pQHzqascMRcVrLwccEoDsIzI0vvo87D2Y089SttIZNRpDI9FzTly1rXCgnZgwp roBZXKG3PAYvWGx/cwvGj0BbX9T0M7Cn3Vlgbb2ce/jw1Gnk6LtSe2mc7m5dIS3+82VVvieHs jXT0DXbkILOi6ilYh629URc5AiQYcEw/q3X0rafJN7nTmn/lODKtN8wmWjDy31I3X0EA/MYae 8I+pvEgRJ43LCvsWhsR6ICLnKLRHBptZaQvKThcdAva9nctXeWhen4pUxFwbuQYtQ9uzbfbag Fs8oMOB8S4agOFIEg/WOZqQ4BKFHu32TJdfDEU0ealt/LGJ6beFOlVBGoLZKqwmCwKqPvqWA8 LpFJZKP+TNm4hhh5Tu+YDdJuFjv+loGY9Tms48I4a7ZCGSrxjEUpMOZp4YqnZXYOfASIPpUpv KeUtYEIz1bR13DA2+QhuyY53Rfu9VRnA0I7rqW67t16El/j0IHg/g7Hq0VUEi8vE6kC/rLZdf BaJFwkXYLuUb3ZKN5o9Vkw9kYotHV+qIJWjb+0usFsBt9wCT3vRvQwKEa6yZOIRn0LvkMHBWa 3rFVeF9SCE6ksK2i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1579 Lines: 34 On Thursday, November 24, 2016 10:05:45 AM CET Ulf Hansson wrote: > > You also mentioned other bindings using child nodes, but for this one > > we have one controller with only one set of register with multiple slots > > (Atmel is an example). Here each slot have it own set of register. > > > > Actually giving the fact that each slot is controlled by a different set > > of register I wonder why the hardware can't also deduce the slot number > > from the address register. For me it looks like an hardware bug but we > > have to deal with it. > > > > Do you still think we needchild node here? > > Using child-nodes for slots like what's done in the atmel case, is > currently broken. I would recommend to avoid using child-nodes for > slots, if possible. > > To give you some more background, currently the mmc core treats child > nodes as embedded non-removable cards or SDIO funcs. However, we can > change to make child-nodes also allowed to describe slots, but it > requires a specific compatible for "slots" and of course then we also > need to update the DT parsing of the child-nodes in the mmc core. > > Documentation/devicetree/bindings/mmc/mmc.txt > Documentation/devicetree/bindings/mmc/mmc-card.txt I don't see anything wrong with having child nodes for the slots even with the current binding, under one condition: The mmc.txt binding above must refer only to the child node, while the parent node conceptually becomes a plain bus or MFD that happens to encapsulate multiple MMC host controllers, and possibly provides some shared registers to them. Arnd