Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3708568pxt; Tue, 10 Aug 2021 09:31:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuIcSkBHdC/MSeGP6hIVKJSbvqofWnlmQNqdFzxnJmOyyXIBOqUEL+LdO+PZEro4ZA/B9c X-Received: by 2002:a5d:8e19:: with SMTP id e25mr986872iod.175.1628613078014; Tue, 10 Aug 2021 09:31:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628613078; cv=none; d=google.com; s=arc-20160816; b=czygr6hBok3SCqItQDBlmo3TPFWaztkaMXi5dWfyNNhHiWQzoRpW6xbP3Upey8BYGM 53woTeUi7+5qs7g8AWtobVkYR6zPIY80FaXY/BEns+sRKH6NDhRwePz9VBeSdv3DERNq zH7ws+Q5fLOKffNFSP4kol9PFAdB7Hbj6EfyszQLIv/XaO3sRMJMbYwlDrvUv4kwXuqy KCzra5tvm0vuyvWZ5WstbsXoPNRah20LTYn02VZz4H/Qoqx/9iUtGg1gHP06S1RBYJdG B9utvpkzS4a0O7LbzYdJ2No21YquoFW3wfc2e6qvtS/bk3kJFVzV1jXszphnOZanY7iK grFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=1aP2MGCt6x1EI1j8i0SNenJcSbGqijK89cL+0pCIHus=; b=TBUZiAsTmL+tZyIZxRDDhP+t0AUh53//F0no0sAt8n7qTpKsrwlBNB8EcJIiaR4i7x 1am1xK3QPAIz6EpVBFwqbSk/0Pa5CYbD/tEeULE7SCCxZnd16O+kj1aRI0faOWraqR4w jKgLPLrRG2xzY5GUPu2xIDivvSNbJnPXXVdPoaE2KM+8VODz0IeLnmyP7AytKeVJaJyx AEt9qfygmpK/AorzqftulBnXB0K5W0xcwcutnGRUq6qjQT0IP2UyFpUbHPVNihdc5D7P TRnyR5yhyHPo+rw3f4Wk0rYxxviDfBaY2hljKZpahj8LNpSd/Q6bqMKZjpKiNdQxzQZ5 XLyQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y17si3343950ila.114.2021.08.10.09.31.06; Tue, 10 Aug 2021 09:31:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240585AbhHJMkj (ORCPT + 99 others); Tue, 10 Aug 2021 08:40:39 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:39778 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240682AbhHJMkc (ORCPT ); Tue, 10 Aug 2021 08:40:32 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id B8C5A1C0B77; Tue, 10 Aug 2021 14:40:07 +0200 (CEST) Date: Tue, 10 Aug 2021 14:40:07 +0200 From: Pavel Machek To: Tony Lindgren , sashal@kernel.org Cc: linux-omap@vger.kernel.org, Dave Gerlach , Faiz Abbas , Greg Kroah-Hartman , Grygorii Strashko , Keerthy , Nishanth Menon , Suman Anna , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jarkko Nikula Subject: Re: [PATCH] bus: ti-sysc: Fix gpt12 system timer issue with reserved status Message-ID: <20210810124006.GA25121@amd> References: <20210611060224.36769-1-tony@atomide.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bp/iNruPH9dso1Pn" Content-Disposition: inline In-Reply-To: <20210611060224.36769-1-tony@atomide.com> User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --bp/iNruPH9dso1Pn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! I noticed the issue while reviewing stable kernels, as this is being backported. > Jarkko Nikula reported that Beagleboard > revision c2 stopped booting. Jarkko bisected the issue down to > commit 6cfcd5563b4f ("clocksource/drivers/timer-ti-dm: Fix suspend > and resume for am3 and am4"). >=20 > Let's fix the issue by tagging system timers as reserved rather than > ignoring them. And let's not probe any interconnect target module child > devices for reserved modules. +++ b/drivers/bus/ti-sysc.c > @@ -3093,8 +3095,8 @@ static int sysc_probe(struct platform_device *pdev) > return error; > =20 > error =3D sysc_check_active_timer(ddata); > - if (error) > - return error; > + if (error =3D=3D -EBUSY) > + ddata->reserved =3D true; > =20 > error =3D sysc_get_clocks(ddata); > if (error) What is going on here? First, we silently ignore errors other than EBUSY. Second, sysc_check_active_timer() can't return -EBUSY: it returns either 0 or -ENXIO. (I checked 5.10-stable, mainline and -next-20210806). Best regards, Pavel --=20 DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany --bp/iNruPH9dso1Pn Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAmESc6YACgkQMOfwapXb+vKZ5wCeLKBimzJgT4TZyjOoeCGslBeJ BH8AoKYD1/pIPyYP4B42sem9TRwrdWEx =XRbK -----END PGP SIGNATURE----- --bp/iNruPH9dso1Pn--