Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933321AbbLXIK4 (ORCPT ); Thu, 24 Dec 2015 03:10:56 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:57390 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1754369AbbLXIKx (ORCPT ); Thu, 24 Dec 2015 03:10:53 -0500 X-Listener-Flag: 11101 Message-ID: <1450944643.30352.9.camel@mtksdaap41> Subject: Re: [PATCH] regulator: mt6397: convert to arch_initcall From: Yingjoe Chen To: Mark Brown , Daniel Kurtz , Samuel Ortiz , Matthias Brugger CC: Henry Chen , Mark Rutland , Liam Girdwood , , , "Sascha Hauer" , , , Linus Walleij Date: Thu, 24 Dec 2015 16:10:43 +0800 In-Reply-To: <20151223120019.GU16023@sirena.org.uk> References: <1450865768-10317-1-git-send-email-henryc.chen@mediatek.com> <20151223120019.GU16023@sirena.org.uk> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1812 Lines: 44 On Wed, 2015-12-23 at 12:00 +0000, Mark Brown wrote: > On Wed, Dec 23, 2015 at 06:16:08PM +0800, Henry Chen wrote: > > Please fix your mail client to word wrap within paragraphs at something > substantially less than 80 columns. Doing this makes your messages much > easier to read and reply to. > > > Due to some device may need reulator operation in earlier boot time like gpu module which > > power domain need regulator power on first. Move regulator of mt6397 > > initialization earlier in boot so that real devices can use regulator > > without probe deferring. > > Several problems here. One is that we usually use subsys_initcall() for > working around the known broken subsystems here, why have you decided to > go for arch_initcall() instead. Another is that you're saying this is > for GPUs but I'm not aware of any reason why GPUs are broken and we > should not be introducing new problems here - what's going on? These changes are related to pinctrl init order patch. The related discussion is here: http://lists.infradead.org/pipermail/linux-mediatek/2015-December/003298.html and these should really be a series: mediatek pwrap http://lists.infradead.org/pipermail/linux-mediatek/2015-December/003347.html mt6397 MFD core http://lists.infradead.org/pipermail/linux-mediatek/2015-December/003348.html mt6397 regulator http://lists.infradead.org/pipermail/linux-mediatek/2015-December/003349.html I think Henry use arch_initcall because that's what pinctrl patch was using. In this case, we should use subsys_initcall for all these. Joe.C -- 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/