Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1004721imm; Wed, 11 Jul 2018 15:13:07 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfXa5MCvc6WOjFWXrOwxGHRsAqwFZw4MNiQ8I5U/X+fwsoGf7+gL2uh37PPSx6c5nLAeuZq X-Received: by 2002:a62:d98f:: with SMTP id b15-v6mr398450pfl.1.1531347187906; Wed, 11 Jul 2018 15:13:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531347187; cv=none; d=google.com; s=arc-20160816; b=uIdtW741mspqiv/5YLTkFVXLPAD3Yo0+UtQaAlYqB6iP/gqCFAZzCF5aROqpvJeAFE jrIRyPpjG1zoaTD8vuPKxHzXyy+E98t2Q7yxsbOmSp2zegtvDpn73yJBxp1kucTtMmSn Nr/LGncYZHh8pdFKpnwArM07lyEpeUBefyozE3ILYYRhoU1p3m1Wooo7dH+tXQibnp0U 85766kjV7XgS2JJBSKdw067hwciacmZBFLk4+xv1zmb/KEiJ36pvdZqpVPgIQMKt2Tpv kjSgjBUMbMnXNOGTsY3vV5zFaIuwyxGN0gy4ctPJRFIj0qpm1MhN0d5jflm/BOxWt663 WAOw== 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=UcbohJUDQAzfzBHOVO9xET//OSfTsRH290g1N5UR6+E=; b=h8pvxx3Hup9cYyvRkLDg499bhWSTUbvRg3n7HV37OVZVDkXlE7s7FkmAq4nrqRaSE1 0lR01CTun1NMxUf5BwkVHXq5C16b7Ef+wNLqynH+QvR7xVc9nh9Rix2unyE5ObDO3cyg XUd715OVkSLqvrVewP2LcC06/o7bdVtNik/9ruj6kOb3PTGz9+Hau4C5uN/T61JJOcu9 fnV8jKOEv/y8lLNRiQ9/bLKOzFoBjrvT4ughNu2NzYGxole8jdCfXjsN8wCygb8rgsXM zZyUCKfyB+WoTyxnvlHVtyb9g42YZPnvPV2Kl+lgGmxa4iKHK2GL/k7Fsw3qKjzyIjCg YwYg== 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 s23-v6si19809301pga.563.2018.07.11.15.12.52; Wed, 11 Jul 2018 15:13:07 -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 S2387765AbeGKQUU (ORCPT + 99 others); Wed, 11 Jul 2018 12:20:20 -0400 Received: from mail.bootlin.com ([62.4.15.54]:33909 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726457AbeGKQUU (ORCPT ); Wed, 11 Jul 2018 12:20:20 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 18D182069C; Wed, 11 Jul 2018 18:15:16 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (242.171.71.37.rev.sfr.net [37.71.171.242]) by mail.bootlin.com (Postfix) with ESMTPSA id E965920766; Wed, 11 Jul 2018 18:14:43 +0200 (CEST) Date: Wed, 11 Jul 2018 18:14:43 +0200 From: Alexandre Belloni To: Rob Herring Cc: Nicolas Ferre , "linux-kernel@vger.kernel.org" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" Subject: Re: [PATCH] ARM: at91: remove unnecessary of_platform_default_populate calls Message-ID: <20180711161443.GY16084@piout.net> References: <20180619214020.18608-1-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 09/07/2018 09:50:47-0600, Rob Herring wrote: > On Tue, Jun 19, 2018 at 3:40 PM Rob Herring wrote: > > > > The DT core will call of_platform_default_populate, so it is not > > necessary for machine specific code to call it unless there are custom > > match entries, auxdata or parent device. Neither of those apply here, so > > remove the call. > > > > Cc: Nicolas Ferre > > Cc: Alexandre Belloni > > Cc: linux-arm-kernel@lists.infradead.org > > Signed-off-by: Rob Herring > > --- > > arch/arm/mach-at91/at91rm9200.c | 5 ----- > > arch/arm/mach-at91/at91sam9.c | 5 ----- > > arch/arm/mach-at91/sama5.c | 5 ----- > > 3 files changed, 15 deletions(-) > > Ping? > This breaks the platform in two different ways: - PM is not working anymore because of the missing SRAM node - the pinctrl driver fails to probe and so many drivers are deferring the probe forever Relevant messages (once the earlycon crap is removed to let earlyprintk do its job): at91_pm_sram_init: failed to find sram device! AT91: PM not supported, due to no SRAM allocated pinctrl-at91 ahb:apb:pinctrl@fc06a000: you need to specify at least one gpio-controller pinctrl-at91: probe of ahb:apb:pinctrl@fc06a000 failed with error -22 gpio-at91 fc06a000.gpio: at address (ptrval) gpio-at91 fc06b000.gpio: at address (ptrval) gpio-at91 fc06c000.gpio: at address (ptrval) gpio-at91 fc068000.gpio: at address (ptrval) gpio-at91 fc06d000.gpio: at address (ptrval) at91_i2c f8014000.i2c: could not find pctldev for node /ahb/apb/pinctrl@fc06a000/i2c0/i2c0-0, deferring probe atmel_usart f8004000.serial: could not find pctldev for node /ahb/apb/pinctrl@fc06a000/uart0/uart0-0, deferring probe atmel_usart fc00c000.serial: could not find pctldev for node /ahb/apb/pinctrl@fc06a000/usart3/usart3-0, deferring probe atmel_usart fc010000.serial: could not find pctldev for node /ahb/apb/pinctrl@fc06a000/usart4/usart4-0, deferring probe atmel_spi f8010000.spi: could not find pctldev for node /ahb/apb/pinctrl@fc06a000/spi0/spi0-0, deferring probe atmel_spi fc018000.spi: could not find pctldev for node /ahb/apb/pinctrl@fc06a000/spi1/spi1-0, deferring probe macb f8020000.ethernet: could not find pctldev for node /ahb/apb/pinctrl@fc06a000/macb0/macb0_rmii-0, deferring probe atmel_mci fc000000.mmc: could not find pctldev for node /ahb/apb/pinctrl@fc06a000/mmc1/mmc1_clk_cmd_dat0, deferring probe at91_adc fc034000.adc: could not find pctldev for node /ahb/apb/pinctrl@fc06a000/adc0/adc0_ad0, deferring probe gpio-keys gpio_keys: could not find pctldev for node /ahb/apb/pinctrl@fc06a000/board/key_gpio_0, deferring probe -- Alexandre Belloni, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com