Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2638975imm; Sat, 28 Jul 2018 23:34:51 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd4YJxokQnd5MgsGNDT+cyvCScDGMxJE5bJrYTBVdNRB9O3jiU3mON2LR8JMpv9E8AgyBkK X-Received: by 2002:a17:902:8f93:: with SMTP id z19-v6mr11710603plo.241.1532846090999; Sat, 28 Jul 2018 23:34:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532846090; cv=none; d=google.com; s=arc-20160816; b=hDLPEZXD+bxf+XjUsVT/G/wGQkW6BP7eSSNcp2i/g7taC8dYRPoJGJfZJ6azNs/VgR Zz0HJZFV/+k2FCFPBQJWu3ZvSzZdXYAy+tK6aGWjI+2NOkVQMfQkapZF1N+GJtOSsLwf iuN/Kt3Cv4uuqW6uupJm1wHZm7bxa682d8370sKhfl26RkZBe5oPL0+B/MDMzFd4eMnK wy6j39TTqiy5F+iuaYzaSfkJpBL2SO0Lfl6R+RZh6M/IH+BUurownFyvENQCTCRGwBkN /Hos5NEsAHHEnV9vGZ1I3I6V8/UTBF4RYeME0yowvHVKAX+EuhjRjszhCj5/WsNCoCQ5 vp5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:arc-authentication-results; bh=p1/KYIweEcqd/3hxtXI+RRKjAD7pZD3ZZvUgDBu7Ijs=; b=utJaN/er2iJhLcC8sjIEwWusB4DoBKuUn3ha+kv9KbNX18UsL2esnmx7SZVZLDIRwZ yM/aBhs4O50kQFcWJhs7F0FpejgpGzDlP3NZYpFJtHweGK77kMSNYHcN4P82cDObu1fF 8igzmyGz347QjB5CTMTlZ0kkwFetInZxZJdxHU8MBZ3HN2pDZbPuuT6d2T1fkrgxKDgi HHaHsYysuAJBahRp9Ov20vG+GbExPDEgKdmHt2GtoUuuH/5ftxCa35aKm6g/WgTjSXsc EYOCCDovJzfWH33Xa/pECBiJPJ9Dq5HsTWrnwDQltYOR7vasjozZh0DRT476naL00PKd NfMQ== 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 d6-v6si7514148pgh.569.2018.07.28.23.34.22; Sat, 28 Jul 2018 23:34:50 -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 S1726289AbeG2ICS convert rfc822-to-8bit (ORCPT + 99 others); Sun, 29 Jul 2018 04:02:18 -0400 Received: from mo4-p01-ob.smtp.rzone.de ([81.169.146.167]:30526 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726154AbeG2ICR (ORCPT ); Sun, 29 Jul 2018 04:02:17 -0400 X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMgPgp8VKxflSZ1P34KBs7wpz98S0pHy2eYvMPA==" X-RZG-CLASS-ID: mo00 Received: from imac.fritz.box by smtp.strato.de (RZmta 43.13 DYNA|AUTH) with ESMTPSA id 6047f4u6T6Wgq6Z (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Sun, 29 Jul 2018 08:32:42 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: [PATCH] pwm: pwm-omap-dmtimer: fix probing problems by returning EPROBE_DEFER From: "H. Nikolaus Schaller" In-Reply-To: <20180728203501.GA16194@lenoch> Date: Sun, 29 Jul 2018 08:32:41 +0200 Cc: linux-pwm@vger.kernel.org, linux-omap , Tony Lindgren , Keerthy , Linux Kernel Mailing List , Thierry Reding , Discussions about the Letux Kernel Content-Transfer-Encoding: 8BIT Message-Id: References: <20180728165914.15871-1-andreas@kemnade.info> <20180728203501.GA16194@lenoch> To: Ladislav Michl , Andreas Kemnade , David Rivshin X-Mailer: Apple Mail (2.3124) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > Am 28.07.2018 um 22:35 schrieb Ladislav Michl : > > Hi Andreas, > > On Sat, Jul 28, 2018 at 06:59:14PM +0200, Andreas Kemnade wrote: >> I got this in the kernel log: >> [ 0.756042] omap-dmtimer-pwm dmtimer-pwm: dmtimer pdata structure NULL >> [ 0.756134] omap-dmtimer-pwm: probe of dmtimer-pwm failed with error -22 >> >> the probe function has to wait until omap_dm_timer_probe() in >> clocksource/timer-ti-dm.c has initialized pdata, so defer probing > > There already is a patch by David Rivshin addressing the same issue... Here it is: https://patchwork.ozlabs.org/patch/943148/ but hasn't arrived in linux-next. But it is questionable if a driver should dev_info() about doing deferred probing. IMHO, it should just do it which is how Andreas' patch works. > >> Fixes: b7290cf6ff78 (pwm: pwm-omap-dmtimer: Adapt driver to utilize dmtimer pdata ops) >> Signed-off-by: Andreas Kemnade >> --- >> drivers/pwm/pwm-omap-dmtimer.c | 3 +-- >> 1 file changed, 1 insertion(+), 2 deletions(-) >> >> diff --git a/drivers/pwm/pwm-omap-dmtimer.c b/drivers/pwm/pwm-omap-dmtimer.c >> index 665da3c8fbce..808835179c2e 100644 >> --- a/drivers/pwm/pwm-omap-dmtimer.c >> +++ b/drivers/pwm/pwm-omap-dmtimer.c >> @@ -264,8 +264,7 @@ static int pwm_omap_dmtimer_probe(struct platform_device *pdev) >> >> timer_pdata = dev_get_platdata(&timer_pdev->dev); >> if (!timer_pdata) { >> - dev_err(&pdev->dev, "dmtimer pdata structure NULL\n"); >> - ret = -EINVAL; >> + ret = -EPROBE_DEFER; >> goto put; >> } >> >> -- >> 2.11.0 >> BR, Nikolaus