From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thierry Reding Subject: Re: [PATCH v5 0/5] drm/dsi: DSI for devices with different control bus Date: Wed, 2 Mar 2016 17:05:55 +0100 Message-ID: <20160302160553.GA21529@ulmo.nvidia.com> References: <1449751300-2841-1-git-send-email-architt@codeaurora.org> <1455268714-28755-1-git-send-email-architt@codeaurora.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1056430276==" Return-path: Received: from hqemgate14.nvidia.com (hqemgate14.nvidia.com [216.228.121.143]) by gabe.freedesktop.org (Postfix) with ESMTPS id AA5D56E8D6 for ; Wed, 2 Mar 2016 16:06:05 +0000 (UTC) In-Reply-To: <1455268714-28755-1-git-send-email-architt@codeaurora.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Archit Taneja Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, a.hajda@samsung.com List-Id: dri-devel@lists.freedesktop.org --===============1056430276== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="y0ulUmNC+osPPQO6" Content-Disposition: inline --y0ulUmNC+osPPQO6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 12, 2016 at 02:48:29PM +0530, Archit Taneja wrote: > We are currently restricted when it comes to supporting DSI on devices > that have a non-DSI control bus. For example, DSI encoder chips are > available in the market that are configured via i2c. Configuring their > registers via DSI bus is either optional or not available at all. >=20 > These devices still need to pass DSI parameters (data lanes, mode flags > etc) to the DSI host they are connected to. We don't have a way to do > that at the moment. >=20 > After some discussions on the previous RFC[1], we decided to support this > by providing additional API in drm_mipi_dsi.c which lets us create new DSI > devices without the need of them to have a DT node. >=20 > [1]: https://lkml.org/lkml/2015/6/30/42 >=20 > Changes in v5: > - Simplify refactoring as suggested by Thierry. > - Use abbreviations correctly. > - Drop "drm/dsi: Check for used channels" > - Return the correct encoded error code for of_mipi_dsi_device_add > when CONFIG_OF is disabled. > - Use mipi_dsi_device_unregister to implement mipi_dsi_remove_device_fn() > too. >=20 > Changes in v4: > - Added a new patch that fixes build issues when CONFIG_OF is not set. >=20 > Changes in v3: >=20 > - Incorporated misc comments by Andrzej. Changed from RFC to a PATCH set. > - Fixed htmldocs warnings. >=20 >=20 > Archit Taneja (5): > drm/dsi: check for CONFIG_OF when defining of_mipi_dsi_device_add > drm/dsi: Use mipi_dsi_device_register_full for DSI device creation > drm/dsi: Try to match non-DT DSI devices > drm/dsi: Add routine to unregister a DSI device > drm/dsi: Get DSI host by DT device node >=20 > drivers/gpu/drm/drm_mipi_dsi.c | 127 +++++++++++++++++++++++++++++++++++= ++---- > include/drm/drm_mipi_dsi.h | 26 +++++++++ > 2 files changed, 141 insertions(+), 12 deletions(-) I've applied this with minor fixups and cleanups to the commit messages. Thanks, Thierry --y0ulUmNC+osPPQO6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABCAAGBQJW1w9fAAoJEN0jrNd/PrOhFhUP/3qez6pKZy2iSjKCBAgSoQWc MLBtWFlJ60UoqcjvLFQwrnkiapBMLivvJ9aFlPIybQKp5wdFYE9mMpwff3HORC9M 5RRCW4t6xoro4AvPHzDmSzIeTAwvixmZeUul2FMU2A5IHKszJYduy32sHpBBV7iZ DNqbuLHVlzn/y3DYrOVzmXNK0MqIYH5W0K1e/NpAYbNdbnmEVM8ThHleDOtynqR0 fOTPEYN7MsuPjWXo2alymgYBDnQANlKOaqJuGVxSd/h99Ye6mjJRxMq7MxvnK6UU OLgDm2KBIw7x/54d7d8gV+8TfaHuuEJsvlenihbkynnLxm0E/ZvquCUVe8PQguWl jyQYwCx2h/sNPq3Rg5zcprDafw+MpFqlfkFSXsf+DIRfSC6JWGRzmEkEiaTiRFyn pi+9Ko3hERlpCeJvYychUlYPwstAOG78kAlrOUN3j5rB1CFt7U6mRsjf0ie8AH0o i2EhV88l0IksR5FizWFPk247loH33dJ+5XIaAl7Hr3JhNXCfDafXqr2scFrSN/5T SwPQeMH/76rr3BvPB9Oxn4gyoX5itH6yPRL/fmlfmgT6Cf6EpUIx8NsVqZw9NcST KC0SIcyJGJcVEoOjldj4dn5R5gyi+gRQEAuZ+HE3N62sBZsrSyDBRvUaRsR0x786 xfptYzZaYDPzSMQVLR3/ =HVKH -----END PGP SIGNATURE----- --y0ulUmNC+osPPQO6-- --===============1056430276== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1056430276==--