Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp378533img; Wed, 20 Mar 2019 02:35:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqyGLYAZ9pBZ50m2QBwfssxa065oNYAD8gRMSijxAhypk+AwKQVh1bwWlny0lOjzBXRcQwOs X-Received: by 2002:a62:1249:: with SMTP id a70mr6707191pfj.160.1553074539495; Wed, 20 Mar 2019 02:35:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553074539; cv=none; d=google.com; s=arc-20160816; b=vrvV54OFAQpFWB6DI5W3zoG+YKLm9eoGbuGk609rCuQdH9daS6QmuAdSrYMiaDewd4 I9rklEkUQWcSQZbDxQ6Czobx2uvrymWBZq99x/Z5YlWxK4C7yNFg7NrRS/TupfsYihTE 1/QziUqxplC8Bu+PdEMgk1KDXwgHcKpROTAionnhOc79ZUwyIlXZTfhC8sHOniKcaEkI wZibKlT3INsf1vpcjdoWdfrpDJWNZ29IwZHNHeJauf5PW1Ij53ZCepzaWJLNPPVFePPH AifarKYBgahJftP44hnYl0PgreAtAkUQFhACDR/6oIPJpwgS45IfJAfzb2V6BHHPHbGE V4sA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature; bh=dRu4mEIkh/n5bBWff4XyaPuG/oRp0w42scvWFUpjYg8=; b=iw0kwTzNkGcpMnyCA6toERFjD9iRBh0nsXFpwryelN/TA825kEc2IKNOCFhBddIRgO iUEZfCMfY0lExGAM3E2G6XVQoFWExiGMWzjWx0Ue8Zy6JHnoC+Ry+9JSWie1wJAb1z+i I1DSdZQQDmvZ/DOLWKq9OYmYADrKgrEzwuCvgzzDJw1q966+7TyfbxXYnH0Ys4kupH90 2Bg/dAubzHWbX9UQA3m6Kpukofjp4ZrFoSD1NImemw+p+WlxthOxJz6w+0EeVc25SRav FR18AiToI/KFkfdAj1iGAw2cqy4I15S+0va9aa2/2duwjNbYAX8iKKq7jOs8InHSlFLh gntw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=FudfDBAH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f40si1516270plb.339.2019.03.20.02.35.23; Wed, 20 Mar 2019 02:35:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=FudfDBAH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727086AbfCTJeg (ORCPT + 99 others); Wed, 20 Mar 2019 05:34:36 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:33668 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725905AbfCTJef (ORCPT ); Wed, 20 Mar 2019 05:34:35 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x2K9XqbB097653; Wed, 20 Mar 2019 04:33:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1553074432; bh=dRu4mEIkh/n5bBWff4XyaPuG/oRp0w42scvWFUpjYg8=; h=Subject:From:To:CC:References:Date:In-Reply-To; b=FudfDBAHIaJta+z1kNcyOlIFFafQZtK8d/R8lMIYvEphaRxd+qWmi6yOE20AbHAVy DGF60ie0QAXdRE9Nn2rDns5/hrrviE3ZR++yvCi7Zd8tV/FbWjm1p4xIBHZyUta2Ka Yu3ZVwO3EGBHOciH/RDuEozlVObuMsCTAbMJhF1o= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x2K9Xqjv099370 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 20 Mar 2019 04:33:52 -0500 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 20 Mar 2019 04:33:50 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1713.5 via Frontend Transport; Wed, 20 Mar 2019 04:33:50 -0500 Received: from [192.168.2.6] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id x2K9Xk34014230; Wed, 20 Mar 2019 04:33:47 -0500 Subject: Re: [PATCH v7 0/4] drm: add support for Cadence MHDP DPI/DP bridge. From: Tomi Valkeinen To: Damian Kos CC: David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , Andrzej Hajda , Laurent Pinchart , Maarten Lankhorst , Maxime Ripard , Sean Paul , Sandy Huang , =?UTF-8?Q?Heiko_St=c3=bcbner?= , , , , , , , , , References: <1548846209-16406-1-git-send-email-dkos@cadence.com> <0f11a4d8-d576-5af8-b7f4-afe3ff26678f@ti.com> Message-ID: Date: Wed, 20 Mar 2019 11:33:46 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <0f11a4d8-d576-5af8-b7f4-afe3ff26678f@ti.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Damian, ping. On 31/01/2019 14:08, Tomi Valkeinen wrote: > Hi, > > On 30/01/2019 13:03, Damian Kos wrote: >> Hello! >> >> This is the series of patches that will add support for the Cadence's DPI/DP >> bridge. Please note that this is a preliminary version of the driver and there >> will be more patches in the future with updates, fixes and improvements. >> Please keep that in mind when looking at FIXME/TODO/XXX comments. >> >> Initially, MHDP driver was developed as a DRM bridge driver and was planed to >> be placed in drivers/gpu/drm/bridge/mhdp.c. However, there was already >> a driver for Cadence's DP controller developed by RockChip, but that driver >> uses the different DRM framework and looks like a part of a bigger system. >> Both controllers (including firmware) are quite different internally >> (MST/FEC/DSC support, link training done by driver, additional commands, IRQ's >> etc.) but they have similar register map, except for Framer/Streamer (which is >> noticeably different), so they appear similar. >> >> The following patches contain: >> - Moving common code to drivers/gpu/drm/bridge/cdns-mhdp-common.* and >> modifying it a bit (mostly new prefixes for functions and data types) so it >> can be used by two, higher level, drivers. >> - Modifying existing RockChip's DP driver to use the common code after changes >> made to it (use the new cdns_mhdp_device structure and new function names). >> - Modifying DRM helpers a bit. Some are required for new driver, some are >> updates from DP 1.2 to 1.3 or 1.4. >> - Adding documentation for device tree bindings. >> - Adding preliminary Cadence DPI/DP bridge driver. >> >> Some of the things that will be added later on include (but are not limited >> to): >> - DSC support >> - FEC support >> - HDCP support > > A few random comments/questions after a quick look at the patches. > > The names of the source files and the kernel Kconfig are only about > "Cadence DP". But the DT bindings is for cdns,mhdp8546, and the > resulting module file is mhdp8546.ko. I think more consistency here > would be good. > > I presume the part number (or family? are there other similar parts with > similar part numbers?) is relevant, so it should be in the Kconfig > option and help text, and probably in the file names too. The module > name should have "cdns" prefix there, similar to the source files and > the cdns-dsi.ko. > > Or maybe the same driver will handle all Cadence DP parts, in which case > generic filenames are fine, but then the resulting kernel module should > also be just "cdns-mhdp.ko". > > I see some audio functions in the code, but it's not mentioned in the DT > bindings. I'm not an audio guy, but the display bridges with audio > support I have seen have had DT bindings for the audio source too. Is > audio supported in the current driver? > > Tomi > -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki