Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752431AbbGIFRO (ORCPT ); Thu, 9 Jul 2015 01:17:14 -0400 Received: from mail-pd0-f177.google.com ([209.85.192.177]:35332 "EHLO mail-pd0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751508AbbGIFRJ (ORCPT ); Thu, 9 Jul 2015 01:17:09 -0400 Date: Thu, 9 Jul 2015 10:47:04 +0530 From: Viresh Kumar To: Pi-Cheng Chen Cc: Michael Turquette , Matthias Brugger , Mark Rutland , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Linux Kernel Mailing List , "linux-pm@vger.kernel.org" , Linaro Kernel Mailman List , linux-mediatek@lists.infradead.org Subject: Re: [PATCH v5 2/2] cpufreq: mediatek: Add MT8173 cpufreq driver Message-ID: <20150709051704.GL1805@linux> References: <1435717005-20012-1-git-send-email-pi-cheng.chen@linaro.org> <1435717005-20012-3-git-send-email-pi-cheng.chen@linaro.org> <20150708113455.GF1805@linux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 908 Lines: 20 On 09-07-15, 09:55, Pi-Cheng Chen wrote: > That's what I did in previous version. But the reason I use the device- > driver model is to handle the defer probing issue. Since there's no > arch/arm64/mach-mediatek/ directory to hold the device registration > code anymore, no device tree way to match cpufreq driver > (please correct me if there's any), and initcall seems not handle > defer probing either, therefore I put both device and driver > registration in this function. I know it's crappy. :( > Do you have any suggestion to do it right and handle defer probing > properly? Sounds reasonable. Just add proper comment in code to explain that. -- viresh -- 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/