Received: by 2002:a25:1104:0:0:0:0:0 with SMTP id 4csp803824ybr; Fri, 22 May 2020 21:14:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxU+NA9FgU9AXArDPptebSgwSAbff1A8Z0v1lW1FGWCQNZjJYBe8sRSpHPAZX1MMUAy9tfX X-Received: by 2002:a17:906:b299:: with SMTP id q25mr11370861ejz.448.1590207260851; Fri, 22 May 2020 21:14:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590207260; cv=none; d=google.com; s=arc-20160816; b=aDT0CnGtcUDvd2lxsq2m8CCXCQjWx5jiw9I1ZwL7JQQJ6ozd7Ibf7/fl1m3x+idAcr Xe4AMh9R+KL6QL7aJ+qiuzEBP+CyJG3BpLea2jLT7bjwtTyGpBWs1AXYXsT9t/2MsXBZ MrFbFp8MInlR/HEDXnXQ3U23Ar55OB66L0NhIQlSt0aDki6oIFevq/Jy7eX6xHSk4+VL tMUPVjfdPpwJvll9qWOfbrSfPajdlIT8gcbdfUe65dsRx+H4ypu8HBz3a2yuLkeCGB2n C8HDv104cWGsDvgCMmvCVuwAUn/o6jjvWsPQdrRIqtSUDQikDIcS6OrQBSX7ND9Da0RD qpdQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=gEbiXPOVzb6l609iXNKKkbZ9NpmGZQsueDMQ1EDDZ9s=; b=mrJc2ilxtsFbjF0brieLUhwcH5IoIIHVhdjgLmMQ25UIysppnHHeDD7RdPVQuAUIpS YbuLV7NfP9QgEM+gb/zLTtnFr4S5MS1C+3eVM//ngdfRQmqW3aqmIHl0je9LAxgY+9Rs 23I9tq4NE2ZKJDw6+VmB1e289mvcrkpX41AmkzE7g5bcBtNJ/MfCG+GYNE+zOwqq4W1F shLJQmETztWoKJP73IkIMDfzjkeplN1PVNZBPyRHr7A7UPuRvOitKaMTGka0DBx27LhZ VnvQDsTwWtfogyW0PJe4+SykN4glJ2M+jJfWETQYk2VN6Y70BKRJLlZvwD6/HJvDyM6t YF9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NckDMGHM; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v26si5291208eda.549.2020.05.22.21.13.58; Fri, 22 May 2020 21:14:20 -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; dkim=pass header.i=@chromium.org header.s=google header.b=NckDMGHM; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387577AbgEWEMQ (ORCPT + 99 others); Sat, 23 May 2020 00:12:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725535AbgEWEMP (ORCPT ); Sat, 23 May 2020 00:12:15 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D1CDC05BD43 for ; Fri, 22 May 2020 21:12:15 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id k22so5198760pls.10 for ; Fri, 22 May 2020 21:12:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gEbiXPOVzb6l609iXNKKkbZ9NpmGZQsueDMQ1EDDZ9s=; b=NckDMGHMskW1gWZnB4u4TCZi03QywErgjTEeoCcEP1lCZtUJXH1X6w/A58bfy6Wq1s VzCAscttd/0oSduppqZw4RtDIFJ5Dafn+F/gwezXE7mC+aM4GpsiCmTFbtHnc30FPOnC TQMqW6dkk7vWOVpC3NV2yJ4C5iZPloiDGyBOA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gEbiXPOVzb6l609iXNKKkbZ9NpmGZQsueDMQ1EDDZ9s=; b=eUJ0O7JRsq5Vnc3xKg4hiO0wewm+trYDQ3EoS3z601/roD5XPR5A4mQDRwrFvAwT1P x2+7sy/4iHxqQtfgS14aMlkDWKQ29aDAd2RF1uI3y2jrBI7KN2myuNpmdIqbiLr4Z/P7 uBNsXm5iZQK+lb2ErpKLuaQD0+8ii5If9Nc+FW3CGpeS/X5UNGoK1EjozycSCZfDLNY3 xotR0AIfX13GmF0HgQRge7SCsJfAsl2bSQ1uy/dFMB2igt6Izl7fi1EVXUYZhoyHvMBz NkFKNU3tn0nzhFXRH7YSV8yzH4bfj2ueZl3DjI3zByFdbMWi5kt1wR/plO0z2pMO4QOS /hDw== X-Gm-Message-State: AOAM5306Sl+j3Q8AFD/M+p/oIfXnafPfRRZHytRGKEWVDCyf3xPpzK6C MB1D4BoXBEAw4gfjlMGEpF5CoSHfW/c= X-Received: by 2002:a17:902:6b09:: with SMTP id o9mr16542135plk.100.1590207134669; Fri, 22 May 2020 21:12:14 -0700 (PDT) Received: from pmalani2.mtv.corp.google.com ([2620:15c:202:201:476b:691:abc3:38db]) by smtp.gmail.com with ESMTPSA id h7sm7075741pgn.60.2020.05.22.21.12.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 May 2020 21:12:14 -0700 (PDT) From: Prashant Malani To: linux-kernel@vger.kernel.org Cc: enric.balletbo@collabora.com, bleung@chromium.org, groeck@chromium.org, Prashant Malani , Felipe Balbi , Greg Kroah-Hartman , linux-usb@vger.kernel.org (open list:DESIGNWARE USB3 DRD IP DRIVER) Subject: [RFC PATCH 0/1] usb: dwc3: Extcon hotplug support to of-simple Date: Fri, 22 May 2020 21:12:00 -0700 Message-Id: <20200523041201.75217-1-pmalani@chromium.org> X-Mailer: git-send-email 2.27.0.rc0.183.gde8f92d652-goog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some platforms like rk3399 would like to power on the USB PHY layer only when external devices are connected. This patch introduces optional support for extcon USB_HOST events, so that child devices are populated/depopulated when external devices are connected/disconnected, respectively. This is also useful since some PHY drivers like phy-rockchip-typec only configure their Type C Phy on power on; if they are only powered on once at boot by dwc3, these drivers will not be able to reconfigure their PHY for peripherals plugged in later, like (Display Port) DP monitors. I thought I’d send out an initial RFC patch, for comments and feedback about the approach. Depending on feedback, we can refine this approach and modify the bindings file. Thanks, Prashant Malani (1): usb: dwc3: of-simple: Add extcon support drivers/usb/dwc3/dwc3-of-simple.c | 149 +++++++++++++++++++++++++++++- 1 file changed, 146 insertions(+), 3 deletions(-) -- 2.27.0.rc0.183.gde8f92d652-goog