Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CE1CCC433EF for ; Tue, 7 Dec 2021 18:21:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236153AbhLGSZM (ORCPT ); Tue, 7 Dec 2021 13:25:12 -0500 Received: from mga03.intel.com ([134.134.136.65]:10489 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236098AbhLGSZL (ORCPT ); Tue, 7 Dec 2021 13:25:11 -0500 X-IronPort-AV: E=McAfee;i="6200,9189,10190"; a="237592054" X-IronPort-AV: E=Sophos;i="5.87,295,1631602800"; d="scan'208";a="237592054" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Dec 2021 09:54:49 -0800 X-IronPort-AV: E=Sophos;i="5.87,293,1631602800"; d="scan'208";a="502693308" Received: from ideak-desk.fi.intel.com ([10.237.68.141]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Dec 2021 09:54:44 -0800 Date: Tue, 7 Dec 2021 19:54:40 +0200 From: Imre Deak To: Heikki Krogerus Cc: Bjorn Andersson , Hans de Goede , Prashant Malani , Doug Anderson , Laurent Pinchart , Rob Clark , Sean Paul , David Airlie , Daniel Vetter , linux-arm-msm , LKML , Abhinav Kumar , Stephen Boyd , Kuogee Hsieh , dri-devel , Vara Reddy , freedreno , Enric Balletbo i Serra , Benson Leung Subject: Re: [RFC] drm/msm/dp: Allow attaching a drm_panel Message-ID: <20211207175440.GB727629@ideak-desk.fi.intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 07, 2021 at 02:26:05PM +0200, Heikki Krogerus wrote: > +Hans and Imre > [...] > > Originally I wanted an API that we could use to pass all the details > that we have in the USB Type-C drivers (that would be the > configuration and status) to the GPU drivers, but Hans was against > that because, if I remember correctly, the OOB hotplug event may need > to be delivered to the GPU drivers in some cases even when the > connector is not USB Type-C connector, and he wanted a common API. > Hans, please correct me if I got it wrong. > > I think that the GPU drivers need to handle USB Type-C connectors > separately one way or the other, but maybe the notification from the > connector can continue to be generic - not USB Type-C specific. > > Imre proposed that the GPU drivers should be able to query the > DisplayPort configuration and status from the USB Type-C drivers > instead of the USB Type-C drivers just dumping the information > together with the notification about some event (so connection, > disconnection or attention) like I originally proposed. Imre, please > correct me if I misunderstood you :-). I think the link config may be useful on Intel systems as well where the hotplug event is delivered by another mean, the Gfx driver getting an actual HW interrupt. Also on systems where the hotplug event does get delivered OOB, the Gfx driver may want to query the current state, for instance during booting or system resuming, independently of a hotplug event. Based on the above imo it would make sense to decouple the hotplug event notification and the link configuration querying interface, or at least make the querying possible in addition to the notification. > I'm fine with anything, but we do need improvement here as you guys > can see. > > thanks, > > -- > heikki