Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp26314img; Wed, 27 Feb 2019 15:57:10 -0800 (PST) X-Google-Smtp-Source: AHgI3Ia7TOQfMm6NztjT1PSj/gRk27ZK1GdnO1isp8Lt7Zk5Mj8UlyuxsEXHrYnuWSgxiNoWockm X-Received: by 2002:a63:83:: with SMTP id 125mr5579554pga.403.1551311830030; Wed, 27 Feb 2019 15:57:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551311830; cv=none; d=google.com; s=arc-20160816; b=zQ5pC/XS6OwAkpF3ORm37pF9CK791uFIS+3Vtc8YsS6X5o9dlm0+Fs57I4Rq9/iA3L ZJfIc/75EPO8yOvsu5Ijb/k/2O4ZXuNGxxeLC86YD/Dbx9qtibegX75xo0+K2poBn5Rw KsepT5CVPQq3av6S1BerMbfQAemnbIfFVuLN7cRf+mS5MPekC+dELLeftNtGasdH0Sl9 lqhzTP0dL1EV3bFR6CbhpIBegJio39Zbz2cNyh+RxPxQ7H1IEcnd9AEZPOZTQPl2MhTE 6M5MkaEbVZbGGvulz8aSwCahckBmwSwKabJFcDA4IiW8+s6BsnDuPgQiW2Ml7r8Azalk yEGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:cc:to:subject:from:date :dkim-signature; bh=cJ6fULrEGLrLtO/O+I4SpN9dM7a0vaIBbaxUxFE0zew=; b=EZHPK6pOS7JUlj1nr8BfNGioGA6gIRTtCr6jXPL9Bpj8s3Xzjj7K6BYEtok7O7MPHX +NcOWSJEstJXIzRSgmCLHD3COZRh+5sdRME638joUUrZGINJFSXIJuZxoaRlMZpsaIXu awJK3HXIl16IMZ3VWji6jWeAUJj35XL6C3qUN9eBcMdBBBoBfK4vcLGdwb8NF0F6ZPib KvtcET7ign/zG3oxhyYlEqLYra36AMiSJZZpl9nTjN3dMAyEtVG7ujCxWxYGV5k2g4NW T2TXTo2bdigKxFsz8BCPciQPgp+OZv9D46tP4DP+CvNmwGvOSUJqH0oVcTae+DQxvUI0 XRgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=vz6Gts0A; 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=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s21si15148955pgv.299.2019.02.27.15.56.54; Wed, 27 Feb 2019 15:57:10 -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=fail header.i=@crapouillou.net header.s=mail header.b=vz6Gts0A; 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=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730473AbfB0Xy5 (ORCPT + 99 others); Wed, 27 Feb 2019 18:54:57 -0500 Received: from outils.crapouillou.net ([89.234.176.41]:60472 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728397AbfB0Xy4 (ORCPT ); Wed, 27 Feb 2019 18:54:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1551311691; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cJ6fULrEGLrLtO/O+I4SpN9dM7a0vaIBbaxUxFE0zew=; b=vz6Gts0AlF1ZMxzNvwztMEwxrlMYtUm8vCZGrHH2K38uvYsNaQEwsGoASa1KbumPTB+Z6A 88PY/c9CQ9QkAnmFVsij8HjTByhDB1NR1aR4C+wZhWzvjIocvGJMOFJt+2Di8Cg69huwZl zA1bw5utq6/tPI8K1f1TGueCFOzSWK4= Date: Wed, 27 Feb 2019 20:54:28 -0300 From: Paul Cercueil Subject: Re: [PATCH v8 05/26] clocksource: Add driver for the Ingenic JZ47xx OST To: Stephen Boyd Cc: Guenter Roeck , 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 Message-Id: <1551311669.21164.1@crapouillou.net> In-Reply-To: <155111793658.191923.2540746255375959460@swboyd.mtv.corp.google.com> References: <20181212220922.18759-1-paul@crapouillou.net> <128675a5-7ede-4114-a649-89a536346dc8@roeck-us.net> <1548264353.3173.1@crapouillou.net> <20190123180155.GB9781@roeck-us.net> <154835808767.136743.14531363127962557756@swboyd.mtv.corp.google.com> <1548362788.3881.0@crapouillou.net> <154836998080.136743.17683029101430122926@swboyd.mtv.corp.google.com> <1548370388.3881.2@crapouillou.net> <1550891845.20534.1@crapouillou.net> <155111793658.191923.2540746255375959460@swboyd.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Le lun. 25 f=E9vr. 2019 =E0 15:05, Stephen Boyd a=20 =E9crit : > Quoting Paul Cercueil (2019-02-22 19:17:25) >> Hi, >>=20 >> Anything new on this? It still happens on 5.0-rc7. >> It probes with late_initcall, and not with device_initcall. >> I have no clue what's going on. >>=20 >=20 > I'm not sure what's going on either. You'll probably have to debug=20 > when > the device is created and when it is probed by enabling the debug > printing in the driver core or by adding in extra debug prints to=20 > narrow > down the problem. For example, add a '#define DEBUG 1' at the top of > drivers/base/dd.c and see if that helps give some info on what's going > on with the drivers and devices. The doc of __platform_driver_probe says: "Use this instead of platform_driver_register() when you know the device is not hotpluggable and has already been registered". When the parent device and child device are both probed with builtin_platform_driver_probe(), and the parent calls devm_of_platform_populate(), it is not certain that the parent's probe will happen before the child's, and if it does not, the child device has not been registered and its probe is not allowed to defer. So it turned out not to be a core bug, rather a misuse of the API. So I will keep the builtin_platform_driver_probe() in the child, and=20 use a subsys_initcall() in the parent. That works fine. Regards, -Paul =