From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757224AbcAYNqP (ORCPT ); Mon, 25 Jan 2016 08:46:15 -0500 Received: from arrakis.dune.hu ([78.24.191.176]:60763 "EHLO arrakis.dune.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757177AbcAYNqM (ORCPT ); Mon, 25 Jan 2016 08:46:12 -0500 Subject: Re: [PATCH V2 2/2] regulator: mt6323: Add support for MT6323 regulator To: Javier Martinez Canillas References: <1453718405-40815-1-git-send-email-blogic@openwrt.org> <1453718405-40815-2-git-send-email-blogic@openwrt.org> <56A612E2.1010509@openwrt.org> <20160125123538.GO6588@sirena.org.uk> <56A61F78.6070703@openwrt.org> Cc: Mark Brown , Steven Liu , Linux Kernel , Henry Chen , Liam Girdwood , linux-mediatek@lists.infradead.org, Matthias Brugger , Chen Zhong , "linux-arm-kernel@lists.infradead.org" From: John Crispin Message-ID: <56A6271E.8060607@openwrt.org> Date: Mon, 25 Jan 2016 14:46:06 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25/01/2016 14:25, Javier Martinez Canillas wrote: > On Mon, Jan 25, 2016 at 10:19 AM, Javier Martinez Canillas > wrote: > > [snip] > >> >> In fact, the kernel is currently not matching the compatible, it is >> only matching because you provided a .of_compatible is provided in the >> mfd_cell. >> > > Sorry my English was a bit off in this paragraph... > > I tried to say that OF does not traverse MFD sub-devices and lookups a > device driver that matches the compatible automatically since a MFD > device is not a bus. Currently it is only trying to match a compatible > string because the mfd_cell has a .of_compatible set so an of_node is > assigned on mfd_add_device(). > > But it is failing to match because no OF device table is provided and > the platform bus match callback is falling back to the driver .name to > match so the compatible is not really used as Mark said. > > Best regards, > Javier > Hi, just so i am sure to have understood properly. i just need to drop the compatible string from [1/2] and resend. if this is the case i will fix the mt6397 binding doc while at it. John