Received: by 10.192.165.148 with SMTP id m20csp5044256imm; Tue, 24 Apr 2018 12:41:52 -0700 (PDT) X-Google-Smtp-Source: AIpwx489LGkPKa1ffDG5o8lqxcVEj74HNLdL6kso6idqnTn76r5G/AVIFFukny1GgdYW3mYuSIfj X-Received: by 10.98.237.17 with SMTP id u17mr25042718pfh.78.1524598912097; Tue, 24 Apr 2018 12:41:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524598912; cv=none; d=google.com; s=arc-20160816; b=PIfiixCD3Kltza2SFVmzuKz3yXzGZQZ7p/MbDaHpWiCyU5HNTvZsIYFv6lPPoCGAu5 Et/85OHzJrYukU51W9sZzkiqEnekacEBFDw5mJyfE7YmCsZRWGCSTHATgaArkfbDccZ6 IYuQ7ueHmgxO084OiKi9JNTTD1AK9rRQPSoTHPsQoyvQBEYB0bflxBHVZYflY4sf3yvy FWzjZC8VmZ2Slr9nuUmq0ZJFD2c1BTtQIXOqH/NLQIgbJCS1JYquosbLE1JFEi4UJSr0 w7cm/zdFZoR5uDli4dX2szp9rsSlYAquf95DH9ZoY2ydWKGMXeSjg1PXPASEMuWOMeC8 GfIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dmarc-filter :arc-authentication-results; bh=Z2X5BfjWJ/f6cPh5IZllg/EALVyg66CJygQrSIRYPTs=; b=Miz4/7jjDz9H3wfjAUrxZNIgd6s5kjENCFMoJE/S0RM0JhBDaX2SYCDX8mk2JierJo LODcSUw2ZnBvRZRU9zH7i5OjNuYmmMrtoxfeOZDuLowfRNuCKb8TqfRhNv6c5PJ3OSjw F3O1L9lTxAqPGIcfIBk7OePQpccVZaiMgdVDLLnVBxJ7SjIZdF6UDugTwkTgAgR9B2ee NnjqAFGgQ854tVAGywmrByjbxGlQZB8axCIXtmp6xiIzPx4eyc37UKZzU56o/1YeqUtu KKdkXtjIU2jyWEV5L9Oyy280oWNUIqwOLTsMmNl1eiZabJoxwByKtkKPkavhQGtT4Vzz OX1Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z12si7139889pgp.671.2018.04.24.12.41.37; Tue, 24 Apr 2018 12:41:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752582AbeDXTkI (ORCPT + 99 others); Tue, 24 Apr 2018 15:40:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:36578 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751165AbeDXTkG (ORCPT ); Tue, 24 Apr 2018 15:40:06 -0400 Received: from mail-qt0-f169.google.com (mail-qt0-f169.google.com [209.85.216.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 526642183A; Tue, 24 Apr 2018 19:40:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 526642183A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=robh+dt@kernel.org Received: by mail-qt0-f169.google.com with SMTP id f1-v6so6574030qtj.6; Tue, 24 Apr 2018 12:40:06 -0700 (PDT) X-Gm-Message-State: ALQs6tD4xxSdzsZCCD7Km3C0fPlhk4jz/p3l7LZNZ4WINw0vKj/v49bb Akd4Mv7ReRTIYFF+Ss11/kMSj78MPVIi8nll3w== X-Received: by 10.12.170.154 with SMTP id f26mr3309023qvb.106.1524598805380; Tue, 24 Apr 2018 12:40:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.163.228 with HTTP; Tue, 24 Apr 2018 12:39:44 -0700 (PDT) In-Reply-To: <20180424173051.15099-1-brgl@bgdev.pl> References: <20180424173051.15099-1-brgl@bgdev.pl> From: Rob Herring Date: Tue, 24 Apr 2018 14:39:44 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 00/11] platform: device tree support for early platform drivers To: Bartosz Golaszewski Cc: Sekhar Nori , Kevin Hilman , David Lechner , Michael Turquette , Stephen Boyd , Arnd Bergmann , Greg Kroah-Hartman , Mark Rutland , Yoshinori Sato , Rich Felker , Frank Rowand , "Rafael J . Wysocki" , Jarkko Sakkinen , Dmitry Torokhov , Arend van Spriel , Heikki Krogerus , Michal Suchanek , Jan Kiszka , Andy Shevchenko , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "linux-kernel@vger.kernel.org" , devicetree@vger.kernel.org, Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 24, 2018 at 12:30 PM, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Device tree based systems often use OF_DECLARE() macros for devices > that need to be initialized early in the boot process such as clocks, > timers etc. However platform devices are more desirable. Yes, platform devices would be more desirable, but ... > > This series aims at introducing support for early platform drivers for > OF-based systems. ... the whole early_platform_device infrastructure is not really a platform_device. Rather it kind of looks like one and I guess gets converted over during boot. This is not the first attempt to add DT support to early platform devices[1]. I think the same objections still apply. It has been pretty much only an SH thing (which as an arch, I'm told is pretty much unmaintained and broken). > The idea is to have a special compatible fallback string: "earlydev" > that similarily to "syscon" would be added to device nodes that need > early probing. We then need to call of_early_platform_populate() early > in the boot process to actually probe the registered devices. Others have sufficiently explained why this won't fly for DT, so I don't have more to add. Rob [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2011-June/054529.html