From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756610AbcAYNZI (ORCPT ); Mon, 25 Jan 2016 08:25:08 -0500 Received: from mail-yk0-f195.google.com ([209.85.160.195]:35726 "EHLO mail-yk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753293AbcAYNZE (ORCPT ); Mon, 25 Jan 2016 08:25:04 -0500 MIME-Version: 1.0 X-Originating-IP: [200.3.249.195] In-Reply-To: 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> Date: Mon, 25 Jan 2016 10:25:03 -0300 Message-ID: Subject: Re: [PATCH V2 2/2] regulator: mt6323: Add support for MT6323 regulator From: Javier Martinez Canillas To: John Crispin 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" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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