From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Fri, 23 Feb 2018 20:40:34 +0100 Subject: [U-Boot] [PATCH 4/5] rockchip: video: rk_vop: migrate to livetree In-Reply-To: <1519403933-64408-5-git-send-email-philipp.tomsich@theobroma-systems.com> References: <1519403933-64408-1-git-send-email-philipp.tomsich@theobroma-systems.com> <1519403933-64408-5-git-send-email-philipp.tomsich@theobroma-systems.com> Message-ID: <20180223204034.456492e3@crub> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, 23 Feb 2018 17:38:52 +0100 Philipp Tomsich philipp.tomsich at theobroma-systems.com wrote: > This migrates rk_vop (the shared functions used by multiple VOP > mini-drivers) to be compatible with a live tree. > > Unfortunately, there's > (i) a lot of tree traversal needed for a VOP (as each active VOP > vnode references back to the endpoints in the encoders and vice > versa) to configure the connection between VOPs and encoders; > (ii) the DTS binding is not too sane and one needs to walk a node's > parents (the original code just assumed that the device would > live 3 levels above the property linked through a phandle) until > a UCLASS_DISPLAY device can be found. > > As part of the migration, the code for finding the enclosing display > device has been changed to not assume a specific depth of nesting > (i.e. we walk until we reach the root or find a matching device) and > to use the newly introduced (in the same series) ofnode_get_parent() > function. > > Signed-off-by: Philipp Tomsich > Tested-by: Klaus Goger Reviewed-by: Anatolij Gustschin