Received: by 10.192.165.148 with SMTP id m20csp766067imm; Wed, 25 Apr 2018 07:22:20 -0700 (PDT) X-Google-Smtp-Source: AIpwx48vaL13Kh8S9S8sIL46//nNUWJi4jAcGEwpjFzMKUea3P5jdCqFf521wPJsoQkUdGITo/g8 X-Received: by 10.167.129.10 with SMTP id b10mr28285950pfi.186.1524666140439; Wed, 25 Apr 2018 07:22:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524666140; cv=none; d=google.com; s=arc-20160816; b=UY4uf7QodenwB3SEposBPZIiOzsAf6bHy6fAtfigUFcmwT1+02lWuUgqDSPdGgZ66g paVg35I86nJr47Hm7QfWTimbstJibg/WTd8/A/K8DSdiA2b/FQWvxbc7fdB/eHKT/PyD BKjjcNUokzsRkzoM+O5JwpHia+OlMuEU46kQpJedZZ6U7u70ja01eESvcfpIEvzjkCOA ASk2H384K/MHjlh5kQvaSA46NuVf4lJGCsTNQ7bmjpbkQzhTNJFEt+KjUDUMlByU2iqN eHPdlzoZke+ryQ6a3yVAcH0WaL1T79FC5AvH47dUfugdI4ky32iyGcLF0OMaNoDUR3pb qXCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=gfRyPjQ9iUS4Wm5TJOGH/vGC/ZDp+cVwGULJrnml2Ss=; b=tMJqfgbRGBCAcOgb3YoY9Y0zn1yELR7RRkr8yB8wwYYFswqHz1ITKLcrABS1d4oHk4 GE1enRzTPqvkWiEHYPGmMQdYCN7j78EEWKnCDM3N3EfhsBRwyvRmCQTEseDU3bm1o03S X/7yuFEJqR0oSBbrIpI4gAOjSnAKrFQmq1H+pwl5dHwGnwyXoBORkdSFDf9z4L/M4tip 7zmzYaF5dgx7TgEdP6kEYh15bSCs6n8Qtw8FC2UN40zYUtM32jY4YQe94Z64LPCyjl8Y tZXOlGLE41S/0xA6lDIutVsN4wcp0vdoxAEh5d/qhfnah5Dx8Arn/b6Q8Yiwd0QpaeiM UlHA== 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 p17si7619369pgn.662.2018.04.25.07.22.04; Wed, 25 Apr 2018 07:22:20 -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 S1754320AbeDYOUk (ORCPT + 99 others); Wed, 25 Apr 2018 10:20:40 -0400 Received: from 216-12-86-13.cv.mvl.ntelos.net ([216.12.86.13]:46484 "EHLO brightrain.aerifal.cx" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753405AbeDYOUf (ORCPT ); Wed, 25 Apr 2018 10:20:35 -0400 Received: from dalias by brightrain.aerifal.cx with local (Exim 3.15 #2) id 1fBKzh-0001cX-00; Wed, 25 Apr 2018 14:02:01 +0000 Date: Wed, 25 Apr 2018 10:02:01 -0400 From: Rich Felker To: Bartosz Golaszewski Cc: Sekhar Nori , Kevin Hilman , David Lechner , Michael Turquette , Stephen Boyd , Arnd Bergmann , Greg Kroah-Hartman , Rob Herring , Mark Rutland , Yoshinori Sato , Frank Rowand , "Rafael J . Wysocki" , Jarkko Sakkinen , Dmitry Torokhov , Arend van Spriel , Heikki Krogerus , Michal Suchanek , Jan Kiszka , Andy Shevchenko , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Bartosz Golaszewski Subject: Re: [PATCH 03/11] platform: make support for early platform devices conditional Message-ID: <20180425140201.GE3094@brightrain.aerifal.cx> References: <20180424173051.15099-1-brgl@bgdev.pl> <20180424173051.15099-4-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180424173051.15099-4-brgl@bgdev.pl> User-Agent: Mutt/1.5.21 (2010-09-15) 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 07:30:43PM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > We want to add support for device tree based early platform devices. > > In order not to introduce additional bloat for all users when we extend > struct device to accomodate early platform DT support, let's make the > current machine code support conditional. > > The only current user of the early platform infrastructure is SuperH so > make it select the appropriate Kconfig option. > > Signed-off-by: Bartosz Golaszewski > --- > arch/sh/Kconfig | 1 + > drivers/base/Kconfig | 4 ++++ > drivers/base/platform.c | 3 +++ > include/linux/platform_device.h | 32 ++++++++++++++++++++++++++++++++ > 4 files changed, 40 insertions(+) > > diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig > index 97fe29316476..1b2c0b2ce402 100644 > --- a/arch/sh/Kconfig > +++ b/arch/sh/Kconfig > @@ -50,6 +50,7 @@ config SUPERH > select HAVE_ARCH_AUDITSYSCALL > select HAVE_FUTEX_CMPXCHG if FUTEX > select HAVE_NMI > + select EARLY_PLATFORM_DEVICES > help > The SuperH is a RISC processor targeted for use in embedded systems > and consumer electronics; it was also used in the Sega Dreamcast If SH is the only user and only intended user for this, don't add it. None of the devices using legacy board files full of platform device declarations are using device tree yet, and when we do convert them they should use device tree correctly, not with hacks designed around OS behavior rather than abstract hardware declaration. Rich