Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2404950imu; Thu, 24 Jan 2019 12:11:23 -0800 (PST) X-Google-Smtp-Source: ALg8bN5DQX3dYwrU3vLgSd2mqOxajO21hZFMfO9eYLvfh1kIs/kSSKW4lpRc41MUVspxVqCAOl26 X-Received: by 2002:a63:a30a:: with SMTP id s10mr647594pge.234.1548360683441; Thu, 24 Jan 2019 12:11:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548360683; cv=none; d=google.com; s=arc-20160816; b=Gs32EbPUGMl1E65n1XvlFW1yOPV7UigfgUTM5rX9w9E8i3x0d4yIf+6WQ+q3h5+uQn 6xbSTHhww5KyoXF5sXKeNTZYb5BRlL4YFLffEAxRbygOrHpFgsr/b9VaFZQFlzYAgUbc 3Lubvpm+joNWBKgx1k9Ap7vfYj4pNUkQqPMMdaBH1FB2Z9CvIsTPLeNrnyszI/oX3EW7 PfleXx4ilEi4AYr0/eCITPH4qK991xy+Je3XTyAlgTqFGHHQxoMSTlUY2UdUQ08uBKdr ZTerj1hLGJcWpc4nGm6z1c5vqbYn39/R+VJpQjWxJo1kI+gvOjpIdYJSewZhUkSw62Hd gfmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:to:message-id:in-reply-to:from:cc :user-agent:references:subject:content-transfer-encoding :mime-version:dkim-signature; bh=SxsLevgFqsOC/kDaXV6tQM2RnV79VO5VrPVEEPOKoEo=; b=xavF4wDnJxrEYedWCC4xmJak29tw6EsJ7LbkXoJYE4r4Y4DgH73J/Jt4yvfRB8HCfk G2xcC/wJyoN6wChLtKA8coOemaA0sYNsYmUtDSvr29s9j1RvyLYVFmms2ymW9b+gvoXG 1aP3i6IOxPUqLFrtYfOMLPENgSQEnSUJ630NIBMpP7LeI2r0JqS/Wm3JkS99M4NOPLGo NdpEJR05CM3ruPc7eznQ1VkwufMWPyouXwPd8kZYgiuc1IJGs5/YipcQGh0PMC78UJWi f9jmM49hsxpKiaYptpC+tKN6tC7ubuEIyG+sdDo9LM1tQpYsM1tpDOd810ONFaWWaIpD eACw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nDFlj2pA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 13si1885307pld.398.2019.01.24.12.11.08; Thu, 24 Jan 2019 12:11:23 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=nDFlj2pA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730669AbfAXUJx (ORCPT + 99 others); Thu, 24 Jan 2019 15:09:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:54606 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730894AbfAXT2J (ORCPT ); Thu, 24 Jan 2019 14:28:09 -0500 Received: from localhost (unknown [104.132.0.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 84FC5218A6; Thu, 24 Jan 2019 19:28:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548358088; bh=hTZEIgZM3Vbm7ipL4EHsz4IoNpixU2ZlAwInwzs2xdo=; h=Subject:References:Cc:From:In-Reply-To:To:Date:From; b=nDFlj2pA2bJRLQdwghcy5zR+GJdEhClSuBj9z41SVgM86e9gIAAYfcdnQanT6hJBf kn7CYyAQLFI5EkUqzSOtFZg9bMcqVewuGcdNd+JwnY/a7suPN+VDoQx3gBQnNdeVIP 1N2PahVo4KpH2yZWkALmPN2BAcBlCoYnA/mhkAA4= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH v8 05/26] clocksource: Add driver for the Ingenic JZ47xx OST References: <20181212220922.18759-1-paul@crapouillou.net> <20181212220922.18759-6-paul@crapouillou.net> <128675a5-7ede-4114-a649-89a536346dc8@roeck-us.net> <1548264353.3173.1@crapouillou.net> <20190123180155.GB9781@roeck-us.net> User-Agent: alot/0.8 Cc: Mathieu Malaterre , Thierry Reding , Rob Herring , Mark Rutland , Daniel Lezcano , Thomas Gleixner , Ralf Baechle , Paul Burton , James Hogan , Jonathan Corbet , Ezequiel Garcia , PrasannaKumar Muralidharan , linux-pwm@vger.kernel.org, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , linux-watchdog@vger.kernel.org, linux-mips@vger.kernel.org, linux-doc@vger.kernel.org, linux-clk@vger.kernel.org, od@zcrc.me, Maarten ter Huurne From: Stephen Boyd In-Reply-To: <20190123180155.GB9781@roeck-us.net> Message-ID: <154835808767.136743.14531363127962557756@swboyd.mtv.corp.google.com> To: Guenter Roeck , Paul Cercueil Date: Thu, 24 Jan 2019 11:28:07 -0800 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Guenter Roeck (2019-01-23 10:01:55) > On Wed, Jan 23, 2019 at 02:25:53PM -0300, Paul Cercueil wrote: > > Hi, > >=20 > > Le mer. 23 janv. 2019 =C3=83=C2=A0 11:31, Guenter Roeck a =C3=83=C2=A9crit : > > >On 1/23/19 4:58 AM, Mathieu Malaterre wrote: > > >>On Wed, Dec 12, 2018 at 11:09 PM Paul Cercueil > > >>wrote: > > >>> > > >>>From: Maarten ter Huurne > > >>> > > >>>OST is the OS Timer, a 64-bit timer/counter with buffered reading. > > >>> > > >>>SoCs before the JZ4770 had (if any) a 32-bit OST; the JZ4770 and > > >>>JZ4780 have a 64-bit OST. > > >>> > > >>>This driver will register both a clocksource and a sched_clock to the > > >>>system. > > >>> > > >>>Signed-off-by: Maarten ter Huurne > > >>>Signed-off-by: Paul Cercueil > > >>>--- > > >>> > > >>>Notes: > > >>> v5: New patch > > >>> > > >>> v6: - Get rid of SoC IDs; pass pointer to ingenic_ost_soc_info > > >>>as > > >>> devicetree match data instead. > > >>> - Use device_get_match_data() instead of the of_* variant > > >>> - Handle error of dev_get_regmap() properly > > >>> > > >>> v7: Fix section mismatch by using > > >>>builtin_platform_driver_probe() > > >>> > > >>> v8: builtin_platform_driver_probe() does not work anymore in > > >>> 4.20-rc6? The probe function won't be called. Work around > > >>>this > > >>> for now by using late_initcall. > > >>> > > > > > >Did anyone notice this ? Either something is wrong with the driver, or > > >with the kernel core. Hacking around it seems like the worst possible > > >"solution". > >=20 > > I can confirm it still happens on 5.0-rc3. > >=20 > > Just to explain what I'm doing: > >=20 > > My ingenic-timer driver probes with builtin_platform_driver_probe (this > > works), > > and then calls of_platform_populate to probe its children. This driver, > > ingenic-ost, is one of them, and will fail to probe with > > builtin_platform_driver_probe. > >=20 >=20 > The big question is _why_ it fails to probe. >=20 Are you sharing the device tree node between a 'normal' platform device driver and something more low level DT that marks the device's backing DT node as OF_POPULATED early on? That's my only guess why it's not working.