From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: [PATCH] pwm-omap: handle timers not ready in probe Date: Mon, 16 Jul 2018 10:37:20 +0200 Message-ID: <20180716083720.GA3047@amd> References: <20180709214910.tes6u4ivxomd3aja@earth.universe> <20180709220211.GA7760@amd> <20180710101147.lyu65ro4czvrs2da@earth.universe> <20180710133040.GA4391@amd> <20180710161123.azym6sbboriuj4yc@earth.universe> <20180711080218.GA21225@amd> <20180711132739.GL99251@atomide.com> <20180711142526.dto6iost57zx5t5l@earth.universe> <20180716071323.GB23110@amd> <20180716075740.GT99251@atomide.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J/dobhs11T7y2rNN" Return-path: Content-Disposition: inline In-Reply-To: <20180716075740.GT99251@atomide.com> Sender: linux-kernel-owner@vger.kernel.org To: Tony Lindgren , DRivshin@allworx.com Cc: Sebastian Reichel , kernel list , linux-arm-kernel , linux-omap@vger.kernel.org, nekit1000@gmail.com, mpartap@gmx.net, merlijn@wizzup.org List-Id: linux-omap@vger.kernel.org --J/dobhs11T7y2rNN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon 2018-07-16 00:57:40, Tony Lindgren wrote: > * Pavel Machek [180716 07:16]: > >=20 > > When all the drivers are built-in, timers are not ready and probing > > fails. Fix that with -EPROBE_DEFFER. > >=20 > > Signed-off-by: Pavel Machek > >=20 > > diff --git a/drivers/pwm/pwm-omap-dmtimer.c b/drivers/pwm/pwm-omap-dmti= mer.c > > index 665da3c..debeb70 100644 > > --- a/drivers/pwm/pwm-omap-dmtimer.c > > +++ b/drivers/pwm/pwm-omap-dmtimer.c > > @@ -265,7 +271,7 @@ static int pwm_omap_dmtimer_probe(struct platform_d= evice *pdev) > > timer_pdata =3D dev_get_platdata(&timer_pdev->dev); > > if (!timer_pdata) { > > dev_err(&pdev->dev, "dmtimer pdata structure NULL\n"); > > - ret =3D -EINVAL; > > + ret =3D -EPROBE_DEFER; > > goto put; > > } >=20 > There seems to be an earlier similar patch, care to take a look > at "[PATCH] pwm: pwm-omap-dmtimer: return -EPROBE_DEFER if no > dmtimer platform data"? Yes, that one is equivalent. You can add Acked-by: Pavel Machek Tested-by: Pavel Machek on it. Thanks, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --J/dobhs11T7y2rNN Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAltMWUAACgkQMOfwapXb+vI5zwCgtqHRoJVmYUG/mvzzRXErAeRS UNYAoK7oDOTjteMR0KarRfPYlMHNvSLc =ssz9 -----END PGP SIGNATURE----- --J/dobhs11T7y2rNN--