Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1620495pxk; Fri, 4 Sep 2020 14:24:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKwy0b7sE4epnZ/zWW9WCn3YOyZrnU40PUcxSis/PDa8NA6b7KKznM6As5+/Mo3aKG8saQ X-Received: by 2002:a17:906:178d:: with SMTP id t13mr9851451eje.410.1599254678708; Fri, 04 Sep 2020 14:24:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599254678; cv=none; d=google.com; s=arc-20160816; b=AVRLo8Z9fIE+K7PGoeFAodCl6XE6g46D8zdVsJnas2mztJnk+QvFMPPXlSJdPtcZQW sJEwWH9MpkR9GgJQelw7sk7etPq5DD87Lp1juZ8R7z53bETEyhE/5LX7R+bRMgrJHDB3 mrcO3/2cc59a97ggXZkZPGydyRFgfo0tthDLjZhXvr456bHX61R/fA/HxYCywyz2iyKh Xovx1WK/WbIU2MfeDYoErRtETLwYqqik8BwBsIsH+9sBZV2UhuPuVbyxmKwqTYoaOySR rHAwI/4zRGd7ki+7aOrf7ZoYNViXYQKaWVr9J8IZEO9ilR1lh/8K7gtvDj50RiSs76Qc 2Igg== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=NYty6vn4aP/InfPG0GFObolNU2Hkh9Q8H5b+Fk2M8zM=; b=WP+JTI2IqOn6TdHS5bV5Bzh1kL6a0ZgPv+0k/U3eY1WTyrvyYv5Rm1A/xUtf6fiMCy BvNHSZRojE2j8oVRcQG/iVd7zTRr7ooFU+TYIsmLGcQ+PkqJ/L/uw/FdobgviMaJUyEk rwFNkYWh0waqGGbE09BLcroMpc2d8sd7QLY+2+RFaj8SAdnuPxLAjABWy+XIC6Y5WNOR HepSlKSp4InZIx2KPNmBEAYrgDMd8bIs6W4pWu9ivBV5B1HByLEyihDMpRiGLp9Kadry cqI8IEtWDxMfmVlcZWontVtoXe6fQBtmcwUnzIHEbHBZ+x75tVNSRZlDYnLqc4HTU5QZ fokg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f14si5048239ejd.289.2020.09.04.14.24.15; Fri, 04 Sep 2020 14:24:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728027AbgIDVXg (ORCPT + 99 others); Fri, 4 Sep 2020 17:23:36 -0400 Received: from gloria.sntech.de ([185.11.138.130]:56938 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726842AbgIDVXf (ORCPT ); Fri, 4 Sep 2020 17:23:35 -0400 Received: from ip5f5aa64a.dynamic.kabel-deutschland.de ([95.90.166.74] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kEJB4-00015W-HH; Fri, 04 Sep 2020 23:23:22 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: MyungJoo Ham , Chanwoo Choi , Rob Herring , Jagan Teki Cc: Tom Cubie , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: Re: [PATCH 0/3] extcon: Add Type-C Virtual PD Date: Fri, 04 Sep 2020 23:23:21 +0200 Message-ID: <6955091.ERBjKZ0CLf@diego> In-Reply-To: <20200904191830.387296-1-jagan@amarulasolutions.com> References: <20200904191830.387296-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jagan, Am Freitag, 4. September 2020, 21:18:27 CEST schrieb Jagan Teki: > USB Type-C protocol supports various modes of operations > includes PD, USB3, and Altmode. If the platform design > supports a Type-C connector then configuring these modes > can be done via enumeration. > > However, there are some platforms that design these modes > of operations as separate protocol connectors like design > Display Port from on-chip USB3 controller. So accessing > Type-C Altmode Display Port via onboard Display Port > connector instead of a Type-C connector. > > These kinds of platforms require an explicit extcon driver > in order to handle Power Delivery and Port Detection. > > This series support this Type-C Virtual PD and enable the > same in ROCK Pi 4C SBC. > > Any inputs? I tend to disagree on the design via an extcon. That the Rockchip rk3399 currently carries that extcon thingy is unfortunate and only works for ChromeOS devices based on the rk3399. The kernel now has a real type-c framework so we should not extend this extcon hack any further, because that will make it even harder to roll back later. Also simply because other Rockchip boards currently can't really make use of type-c due to this, as they use the fsusb302 phys directly connected. ChromeOS actually spend some time to make the cros-ec pd part of the type-c framework if I remember correctly, so a viable battle plan would be to: (1) move the Rockchip type-c phy driver to actually be part of the type-c framework, with the extcon being a deprecated fallback for old DTs. (2) implement your gpio-altmode as part of the type-c framework (which may even already exist) In short, please don't extend the rk3399 type-c extcon hack. Thanks Heiko