Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1989720imm; Tue, 22 May 2018 12:45:03 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpMewlH4+3InHAViyKhl6tovVZ2k58/PAtuAUlH0SSQ7qDRoa4o+HUGr0V2QgHlP5XF82gN X-Received: by 2002:a62:c413:: with SMTP id y19-v6mr25488504pff.97.1527018303582; Tue, 22 May 2018 12:45:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527018303; cv=none; d=google.com; s=arc-20160816; b=TLvHmgT7ng4zrgGsMAWN8TtCOoe1skfiK0sGUYpKabymU6ipkqYYlyankylgg4WU/7 Zo0vRhKEuZc7S40zgeFLT/x0kJOXca1HnZV3XRacln+BkxusIxHO0nO1k6jzWBCIOn// ehZOBdJ0cgPjlY1mgsE5Dpc9VzGxWALpnoBbFJUgTbuDaOWxaAuNDYLMOQb4CkmLs5ww rOBD+/FuvIMHUw6YtKff3+6agkQZKcHUwojd4jLRY75cntjLlNwDuTOTmnGnxNFNrBjq LbrJROTZhTXKVHkNVIAmpFTB+9sAH3yuZkNK7+C5V+r0h7Rse7fMR5+FrbLzli7UDCrg 1Ing== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=ocEqmKw72eRvGLO+BJrY/kcwD7KEo2Vm5q1NrK45WYc=; b=kSOXnitxDcl1gR8h3xlTQErkQVVrA0YtwV//ZjYFEIaUwx25UGo7ACVpgtOOKg/BVO rnbn9dTn+ZiGDWMLnAzyPyPYVdUoa5hlVZo0vWm/J7MTp12nnU0uhY0FZaRPtW8+I3YH 6taRd1wLS/TFOYqT4aINy2JB1GHvamOThNXkYwJfMdGdMsAY6JWa63lIRp6Vm0NtWthI oQ1u74z5IzdqvBq1IU8t4rrwvl7uzxMDJIPxzDYA5TtuYf+n6aHOSC90wWetxx0rDYVg vCjpjssUCLeV9mMTUPuPX15YG0UY8wHlKVn1N247zh59NUlQHHJRKChmYmmk4VbKvFW4 nGhQ== 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 v4-v6si5330654pgc.694.2018.05.22.12.44.36; Tue, 22 May 2018 12:45:03 -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 S1753007AbeEVTlq (ORCPT + 99 others); Tue, 22 May 2018 15:41:46 -0400 Received: from emh07.mail.saunalahti.fi ([62.142.5.117]:44254 "EHLO emh07.mail.saunalahti.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752941AbeEVTlo (ORCPT ); Tue, 22 May 2018 15:41:44 -0400 Received: from darkstar.musicnaut.iki.fi (85-76-96-92-nat.elisa-mobile.fi [85.76.96.92]) by emh07.mail.saunalahti.fi (Postfix) with ESMTP id 12C63B0016; Tue, 22 May 2018 22:41:40 +0300 (EEST) Date: Tue, 22 May 2018 22:41:39 +0300 From: Aaro Koskinen To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Pavel Machek , sre@kernel.org, kernel list , linux-arm-kernel , linux-omap@vger.kernel.org, tony@atomide.com, khilman@kernel.org, ivo.g.dimitrov.75@gmail.com, patrikbachan@gmail.com, serge@hallyn.com, abcloriens@gmail.com, clayton@craftyguy.net, martijn@brixit.nl, sakari.ailus@linux.intel.com, Filip =?utf-8?Q?Matijevi=C4=87?= , Thorsten Leemhuis Subject: Re: v4.17-rc1: regressions on N900, N950 Message-ID: <20180522194139.GB2299@darkstar.musicnaut.iki.fi> References: <20180422074213.GA12428@amd> <20180423202940.ig6iud5lrbgnu35a@darkstar.musicnaut.iki.fi> <20180521213952.GA11596@amd> <20180522080250.4fzyvqrgw5oigexn@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180522080250.4fzyvqrgw5oigexn@pali> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, May 22, 2018 at 10:02:50AM +0200, Pali Roh?r wrote: > Hi! I remember that in time of migration from platform board code to > device tree structures there appeared some bug which caused that > sometimes display were not initialized. And somebody figured out that > display initialization is failing when some other SPI devices are > initialized before or after display... This behavior was observed only > on real N900 hardware, not in qemu. Touchscreen needs to be initialized before display. This is documented in the DTS, see arch/arm/boot/dts/omap3-n900.dts: * For some reason, touchscreen is necessary for screen to work at * all on real hw. It works well without it on emulator. * * Also... order in the device tree actually matters here. > Real reason was never explained. In old platform board code there was > hardcoded order of SPI devices in which initialization happened. And in > device tree it is probably in (pseudo)-random order. Enabling/disabling > various config option can affect some timings and order in which kernel > starts probing and initializing devices... The issue was also somewhat present with platform/board code, see e.g. commit e65f131a14726e5f1b880a528271a52428e5b3a5. My device worked with v4.17-rc1 (haven't found time to test newer kernels), but if you say the probe order is random then we must find some proper way to express the dependency. A.