From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752186AbcHHI5g (ORCPT ); Mon, 8 Aug 2016 04:57:36 -0400 Received: from mx2.suse.de ([195.135.220.15]:48360 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751280AbcHHI5e (ORCPT ); Mon, 8 Aug 2016 04:57:34 -0400 Message-ID: <1470646360.3175.1.camel@suse.com> Subject: Re: [RFC PATCHv2] usb: USB Type-C Connector Class From: Oliver Neukum To: Pavel Machek Cc: Andy Shevchenko , Rajaram R , Felipe Balbi , Heikki Krogerus , Mathias Nyman , Greg KH , Guenter Roeck , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Date: Mon, 08 Aug 2016 10:52:40 +0200 In-Reply-To: <20160807213710.GA27135@amd> References: <1463661894-22820-1-git-send-email-heikki.krogerus@linux.intel.com> <1466514532.2091.5.camel@suse.com> <20160621135845.GA10715@kuha.fi.intel.com> <1466541785.2014.16.camel@suse.com> <20160622093156.GA19856@kuha.fi.intel.com> <1466590137.12516.5.camel@suse.com> <20160807213710.GA27135@amd> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.11 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2016-08-07 at 23:37 +0200, Pavel Machek wrote: > Hi! > > > > With these boards, you will not see anything on the screen that is > > > attached to a Type-C connector until the OS has booted to the point > > > where it has negotiated the power contract and entered a mode. > > > > > > If the system has BIOS/FW/EC capable of negotiating the power contract > > > and enter a mode, but where we still are expected to take over the > > > whole TCPM in OS, I think the connection will be reset. > > > > Think about a DP over type C display with a USB PD power brick on a > > daisy chain. > > If the host needs more than 15W or more than 5V, a reset is suicide. > > > > And losing earlyprintk hurts a lot. > > This means we need USB PD statically in the kernel. And a kernel > > based policy that brings up all displays. > > Yes please. > > Of course, even that will hurt, because I guess that means printk() > after USB, and that means late in the boot process, but better late in > kernel than in initrd. i can confirm that in a laptop with a decent firmware a docking station is switched into the mode that will make the display work. In principle all is well if we can manage a handover. Regards Oliver