Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2291887imm; Sat, 28 Jul 2018 13:36:58 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeuTi/5iyiT2uDa7eqIMDfgG9lsnl8QU8y8sr/3xaZ/vgMthDVssCbSU8bOiAsn1NkTs2DN X-Received: by 2002:a17:902:46e:: with SMTP id 101-v6mr10966896ple.39.1532810218308; Sat, 28 Jul 2018 13:36:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532810218; cv=none; d=google.com; s=arc-20160816; b=qWqoJmIPw1OmaFItl7Ivgfez+3Kue4iZi1O+Hx04/bpIgCCy3XYJ8M5xbApoSZCykl AkZWT8UDieFOBAyo7PQQoEeSid7K/J4WTC0zG5Jn4ZcBgDw10Xqhadm6xZJwgp/mEG2g eh+/2kPkF6MsCUxIyP1vsNUATPz7XDST37hRrKujhfj6TnFV4vxkyk9kZ9J6ckin9Sbk P2Qb/H6RVyNErkogREnsbv8TwHDiVdKDY+gFsUaMIoMftxC6xx6D6AxUAy2regvFYNDp o5DOcClUdiQ2sCMtGZnfbszSgEQflY2SgVMR6SODeDxMe3QYHd7ExIanXrwoGjqFh60m o8vw== 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=86//EIfkt6JV69GXbvNkmgndkuqwdanrWPrBu6ORRJ0=; b=ayYWnIFqrL7HY+A2dwLJ9UZrH7cpC/O1icblXSaYWTqoRO5Mb2NQa8RHaYbT8iRnaS lKtXsYQ9zzsPLZhhOYHObneS6noSEXJPaX18QG//SPzBOhr4XspnIWxif6FvHb2bvnav sG8bhvLGxghohvuO8IEBPfb5wMfWf4Uu7gU8AnEYVKWMawg/pit8mXS0ByLzEc8W4W7a 31hZ2NghruG/KSh8s8x3tTLiK+ymZdOlWNCRHSpTMwkgsMhWOdbO7E7Mfvh4iJKe81VV D+urd7olsZOOC8XNvMWiDGyCqlVCr5FxYyaWVMkj8xxcfhkqnmMPrqPUk1Q/PVoxRUaI QG4w== 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 30-v6si6236252pgt.678.2018.07.28.13.36.29; Sat, 28 Jul 2018 13:36:58 -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 S1730648AbeG1WCu (ORCPT + 99 others); Sat, 28 Jul 2018 18:02:50 -0400 Received: from eddie.linux-mips.org ([148.251.95.138]:54926 "EHLO cvs.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730481AbeG1WCu (ORCPT ); Sat, 28 Jul 2018 18:02:50 -0400 Received: (from localhost user: 'ladis' uid#1021 fake: STDIN (ladis@eddie.linux-mips.org)) by eddie.linux-mips.org id S23993008AbeG1UfEv2NCH (ORCPT + 2 others); Sat, 28 Jul 2018 22:35:04 +0200 Date: Sat, 28 Jul 2018 22:35:02 +0200 From: Ladislav Michl To: Andreas Kemnade Cc: Thierry Reding , linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, letux-kernel@openphoenux.org, j-keerthy@ti.com, tony@atomide.com, linux-omap@vger.kernel.org Subject: Re: [PATCH] pwm: pwm-omap-dmtimer: fix probing problems by returning EPROBE_DEFER Message-ID: <20180728203501.GA16194@lenoch> References: <20180728165914.15871-1-andreas@kemnade.info> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180728165914.15871-1-andreas@kemnade.info> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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... > 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 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-omap" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html