Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934020AbdC3Nke (ORCPT ); Thu, 30 Mar 2017 09:40:34 -0400 Received: from smtprelay.synopsys.com ([198.182.60.111]:56365 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750766AbdC3Nkb (ORCPT ); Thu, 30 Mar 2017 09:40:31 -0400 Subject: Re: DRM: Component framework API support To: Eugeniy Paltsev , "dri-devel@lists.freedesktop.org" References: <1490875508.6561.11.camel@synopsys.com> CC: "daniel@ffwll.ch" , "linux-kernel@vger.kernel.org" , "linux-snps-arc@lists.infradead.org" , "airlied@linux.ie" From: Jose Abreu Message-ID: <18e6380f-738f-9c54-ba4b-08e83b134e22@synopsys.com> Date: Thu, 30 Mar 2017 14:40:14 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <1490875508.6561.11.camel@synopsys.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.107.19.125] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 996 Lines: 27 Hi Eugeniy, On 30-03-2017 13:05, Eugeniy Paltsev wrote: > Hi, > > I am trying to add support of new component framework API in ARC PGU driver. > The point is that for now we have ARC PGU driver which works with adv7511 encoder. Both of them don't support component framework API. I had to add support of component framework based dw_hdmi encoder to ARC PGU driver. As of commit 69497eb9 ("drm: bridge: dw-hdmi: Implement DRM bridge registration") you don't need to use component API, you can just use a platform driver wrapper. > > So what is best way of implementing both component framework API and regular API in one driver? I guess you want to have support for ADV7511 and dw-hdmi, right? For component API you need to have a master device which binds all the components and inits them, for regular API not. I don't see a clean way to do this (but I'm not that experienced in component API). Do you need runtime support for both of bridges? Best regards, Jose Miguel Abreu > > Thanks.