From: Eric Anholt Subject: Re: [PATCH 2/2] drm: Rely on mode_config data for fb_helper initialization Date: Wed, 01 Feb 2017 12:50:48 -0800 Message-ID: <8737fxr5xz.fsf@eliezer.anholt.net> References: <20170201182008.9724-1-krisman@collabora.co.uk> <20170201182008.9724-2-krisman@collabora.co.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0851945594==" Return-path: Received: from anholt.net (anholt.net [50.246.234.109]) by gabe.freedesktop.org (Postfix) with ESMTP id D98946E8C7 for ; Wed, 1 Feb 2017 20:50:50 +0000 (UTC) In-Reply-To: <20170201182008.9724-2-krisman@collabora.co.uk> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org Cc: Gabriel Krisman Bertazi List-Id: dri-devel@lists.freedesktop.org --===============0851945594== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain Gabriel Krisman Bertazi writes: > Instead of receiving the num_crts as a parameter, we can read it > directly from the mode_config structure. I audited the drivers that > invoke this helper and I believe all of them (but one, see below) > initialize the mode_config struct accordingly, prior to calling the > fb_helper. This is a nice cleanup! It always felt silly to be passing in my mode_config's members to the fbdev setup. Could we do the same for num_connector? I've verified that all the drivers either init their CRTCs or have already looked at mode_config.num_crtcs before the fbdev init call, so this is: Reviewed-by: Eric Anholt --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE/JuuFDWp9/ZkuCBXtdYpNtH8nugFAliSSigACgkQtdYpNtH8 nui/xxAArDSejBF/naTIcb4groHjirmvIoDzfz/Gj+Zrp/BLih3R/aM4o8twE/+C ReEAUhJpOd1hAgv3STMWAUnqz+0zu/DE3fDYSmORlsdWBBlITZZfAKxwlHpM1Kmt bmFjzjd5QR2smKowXu0CTszgx40jvjFO+qLz2qeH9OiIUM/s5rL5Gu+NubhxjZuS z2E9mzB+snYQagidCxeh+rFVYnw1R7u8mOKv9pfO52K/c+dWOaqBjpc8cxWXmrbO ehyiM1PBOF7IeVdOSlz//OEcd1iLnaPUks1jhDT+o5bwmrQYjeG62+6plOxlgB1q RsssG65B8NXx6MAFxuZA4X0tv0RA9BCCLsR5afDBsPwWL/vA0p7jIIkToimCKlgc nQXEaE5shQqqeHzlxCZFyo9NvNBIdyhK67Z2vwI+gcNXBlvIYqeRmEVVPtvme798 N6f0TbP33x79IwIc8RJi3FT2FUZF8B+Rl0k97KbPLGUMBRPuLshUxsA3YZpQ7LKc uRDJiUMQ9H93qTEsX6BDQsO6Tf2ZQIEHHD+4Vlct5cFb0W8WmVNdiMtJzl2SAvwr OzaUUG6XtLecxkRSZ6iOb4Inv5jbwKO1+BM7uvHh5vjTC2p7OjR91ZdxFDpMfdes Yj9x2Cs+N8bmHKpmhtCWMCwxxBiaczhVWiXWoRX0utwWGJlhIrs= =QjgA -----END PGP SIGNATURE----- --=-=-=-- --===============0851945594== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0851945594==--