Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752584AbdLKKM3 (ORCPT ); Mon, 11 Dec 2017 05:12:29 -0500 Received: from mail-qt0-f196.google.com ([209.85.216.196]:45009 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751281AbdLKKMZ (ORCPT ); Mon, 11 Dec 2017 05:12:25 -0500 X-Google-Smtp-Source: AGs4zMbZ5TbppT7RkvYzseC1wQ1ax+6QEmb7c3bJTsAJeoTJh0Jb6SsSmntsVgb64S7B+7xtLxNh3g== Date: Mon, 11 Dec 2017 11:12:22 +0100 From: Thierry Reding To: Dmitry Osipenko Cc: linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 1/2] drm/tegra: dc: Link DC1 to DC0 on Tegra20 Message-ID: <20171211101222.GF10671@ulmo> References: <85902b42264b094cbf7cf30930f8c0bbccdca1b7.1512947732.git.digetx@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="+ts6NCQ4mrNQIV8p" Content-Disposition: inline In-Reply-To: <85902b42264b094cbf7cf30930f8c0bbccdca1b7.1512947732.git.digetx@gmail.com> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2031 Lines: 55 --+ts6NCQ4mrNQIV8p Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 11, 2017 at 02:19:43AM +0300, Dmitry Osipenko wrote: > HW reset isn't actually broken on Tegra20, but there is a dependency on > first display controller to be taken out of reset for the second to be > enabled successfully. >=20 > Signed-off-by: Dmitry Osipenko > --- > drivers/gpu/drm/tegra/dc.c | 77 +++++++++++++++++++++++++++++-----------= ------ > drivers/gpu/drm/tegra/dc.h | 4 ++- > 2 files changed, 51 insertions(+), 30 deletions(-) >=20 > diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c > index fc70351b9017..6139d3e9cedf 100644 > --- a/drivers/gpu/drm/tegra/dc.c > +++ b/drivers/gpu/drm/tegra/dc.c > @@ -24,6 +24,8 @@ > #include > #include > =20 > +static struct tegra_dc *dc0; I'd like to avoid the global variable. Perhaps you can use the driver_for_each_device() or driver_find_device() functions to find the correct device? Thierry --+ts6NCQ4mrNQIV8p Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAlouWgYACgkQ3SOs138+ s6EG/w/+OdUlYCGesWRUDkC0Atva94YOX4LC2yqhddrxtzaMg0D03jcZx+SFoMIt zCSBftARcqcH/bpw/feHmeN2/0Y1aYrERNsAaRpAHjNJ4a5UGXegKjr8+rKJ82Vn yWDcj92UxSW1HyTlv+8yoFownaUg9yi2oOxe2PHM3k4+ccIK+SenSKBK8uI6atfR 20ja+KwKoxuPXYqPEPOLHT9bAv1PTFfGavpKH8qGLsrtUraQFXpiF5jW2UpQI0K5 m8pRvQlaQCSP+COhA15yf12bcEd43Nc9dUduELEVXwJ6Uvg3SC9+xChS3EFYhjlv wvK2LHUWyCpteRcPQTFYJvADKzsCSM4m+jkewNmL9wpmEWm65Q5kGU7noKYCTXZo 5HqdWiNCBRpC6FDO/MzsefX+Z1f9EpxFw/3G9Jt4/AxfgNv1jYImunZIbI/8vKSd uxCsQ8izCN7dEwDMNR6TiyAbO1Ctk89V2pCIyRN/voEakQw4km3Mzy5l5QWtuAKT cQQJsT8XLqLQaVU/4PDVktli3iZRoYYn3d7CuiYFeHkGczSQnwK5EnJYv6pzLU3P OS3m0OSNyg3WHh5J6XMTQ8piPN8fLIDu+ANnMGVbPM+53DbcYnvkXEK1U9EQ/aIy l/o1/qRqFQsBccdYwEL/5A/bDHhJS1h/ljtyj+PAA9zDxhIb3QM= =uv1F -----END PGP SIGNATURE----- --+ts6NCQ4mrNQIV8p--