From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162329AbbKESEP (ORCPT ); Thu, 5 Nov 2015 13:04:15 -0500 Received: from comal.ext.ti.com ([198.47.26.152]:35205 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755616AbbKESEO (ORCPT ); Thu, 5 Nov 2015 13:04:14 -0500 Subject: Re: [PATCH v4 4/5] regulator: tps65912: Add regulator driver for the TPS65912 PMIC To: Mark Brown References: <1443731874-21362-1-git-send-email-afd@ti.com> <1443731874-21362-5-git-send-email-afd@ti.com> <20151022164724.GZ8232@sirena.org.uk> <563A25BE.90609@ti.com> <20151105101417.GM1717@sirena.org.uk> CC: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Lee Jones , Alexandre Courbot , Grygorii Strashko , , From: "Andrew F. Davis" Message-ID: <563B9A10.4020907@ti.com> Date: Thu, 5 Nov 2015 12:04:00 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151105101417.GM1717@sirena.org.uk> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/05/2015 04:14 AM, Mark Brown wrote: > On Wed, Nov 04, 2015 at 09:35:26AM -0600, Andrew F. Davis wrote: > >> Something I just noticed, when I remove this table, module loading stops >> working, even with 'MODULE_ALIAS("platform:tps65912-regulator");'. It >> looks like when DT is enabled platform_uevent (drivers/base/platform.c:787) >> only sends out the OF MODALIAS event then returns, not sending out the >> platform event, is this desired behavior? If so then I will need this >> table even though I still create the device and match it on platform >> name as you suggested. > > That sounds like a bug to me, it'll have broken a bunch of existing > devices. > Most OF drivers have the OF MODALIAS. 'platform_uevent' can only emit one MODALIAS string per device (only the last emitted one seems to count), so for any device with 'dev->of_node' set it will be the OF MODALIAS string. So I need that table (to generate the OF MODALIAS) or this sub-device module will not be loaded.