Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1642369pxb; Wed, 10 Feb 2021 13:06:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJxO6aoXKkeQl2vBSeMmja4kWh2WUoZcSVUMZaJ2Lw/Tx5Gf50kpQm74MbBvj90Y0A8MdOvG X-Received: by 2002:a17:906:e15:: with SMTP id l21mr4864590eji.376.1612991214332; Wed, 10 Feb 2021 13:06:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612991214; cv=none; d=google.com; s=arc-20160816; b=od6AjP/I05MDBlUhQu2w735Hp2jIB48DGKi48UTQ5fcrmEWyQo806f3VbICDtPS5aA W+8giTy2lYdIp7ZkDvokcNf6wIqIStshVbm1+Nnu/QczwaLNd0sg/R0NneJ17Z8kAf5w 15MZnHfcybXcb46spH2Ic0Q84GvqyI4LANrJuR7f8H7ee0Zn9BZp3FKzKZ1qHk9LiVk3 GKAZHYnO/o2xagXJoUQPbDaK95Yk+lSy8URKjAY4t5k4o1/WIxPJMVVi5OjAODEbEALs mmdIT19BDAUGnvEP46zGI3lgyAyVvf7vOKgAY5FXhbPfTCDFJlAVU7YN4Uka2d4ZMOR6 pXUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=2TDlg5kjQ/FiLU6fnovw1yongTK1pX31S0OpLZGyLWg=; b=PNL6nHknG6kUfG1o+psj0ow07h1RwteYUlBzupE0PMWaXJ8/7m68NnoTP4ePxsgdTO ZGoKfr+dusgoSEAdJoHETjOQcFYhS5jeEfY0bdGQhgINvrrxl+dybwhSEqlJdl0iiE6h 18lh2qgWOqNfRwpXsXOOk83Qo1Q4iJvSJblZ7svZETv0xmMlQrxkHTOcAbDYab3ApOuI zelp3wcb+baHjSYI9JeLDjE5+OXaq07jeF1HA9Nw5hP2FSWavPASDyyW1D4LGAAi4Ij8 XZK75u5+UEgnlEXYMD8w+E7mKuCfER5WJoSqBr4U5xe8LZOw5oyEzTs8PJgJxjFJ1OIe jV1Q== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r16si2042544ejs.580.2021.02.10.13.06.30; Wed, 10 Feb 2021 13:06:54 -0800 (PST) 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233006AbhBJVFr (ORCPT + 99 others); Wed, 10 Feb 2021 16:05:47 -0500 Received: from mail-wm1-f53.google.com ([209.85.128.53]:50221 "EHLO mail-wm1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232103AbhBJVFi (ORCPT ); Wed, 10 Feb 2021 16:05:38 -0500 Received: by mail-wm1-f53.google.com with SMTP id 190so3067124wmz.0; Wed, 10 Feb 2021 13:05:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=2TDlg5kjQ/FiLU6fnovw1yongTK1pX31S0OpLZGyLWg=; b=TOJtLrRKBK2DT9E+OxSKWPiVTt5PUV4EwCyND0ro8YRjm41R6dXTjB/XGMyJRjZM5a WUY/6e3rW7LL1bJ8SYsisNBfMHY5gz0JoMO6/F1rDvgAX0uI7iwofMzAO1o4wBZqPYFa oqE6Oipf34aC/C7V3gsIkHSZrS1s5GeQqRBjrbp4nWcVRsNjF/IF72qM9NHy5mesbdgH njtuBowsoYEQ6cmk6uzIiFpnKV+e8HVSbPGgeLl5elokhW0oFA9B/NCYcvzXWyiYbB+x PIzxCCmRxy+IlxKyHn0eY9RLmsebCmHxzfyfxRTpLO/HBCYiarXZD19j0Oqa2WkfX6rQ fLHA== X-Gm-Message-State: AOAM530mOd8eZYRs+119t1fBuKocDnnxprFPsbw0vp/GQ/q4p/9YeZi1 QTDEnP+CTPaKtFzJ8u8RwXE= X-Received: by 2002:a1c:dd55:: with SMTP id u82mr914409wmg.135.1612991095811; Wed, 10 Feb 2021 13:04:55 -0800 (PST) Received: from kozik-lap (adsl-84-226-167-205.adslplus.ch. [84.226.167.205]) by smtp.googlemail.com with ESMTPSA id s23sm4554534wmc.29.2021.02.10.13.04.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Feb 2021 13:04:53 -0800 (PST) Date: Wed, 10 Feb 2021 22:04:51 +0100 From: Krzysztof Kozlowski To: Matthias Kaehlcke Cc: Greg Kroah-Hartman , Rob Herring , Frank Rowand , devicetree@vger.kernel.org, Peter Chen , Stephen Boyd , Alan Stern , Ravi Chandra Sadineni , Bastien Nocera , linux-kernel@vger.kernel.org, Douglas Anderson , linux-usb@vger.kernel.org, Al Cooper , "Alexander A. Klimov" , Andy Gross , Bjorn Andersson , Masahiro Yamada , Mathias Nyman , linux-arm-msm@vger.kernel.org Subject: Re: [PATCH v5 0/4] USB: misc: Add onboard_usb_hub driver Message-ID: <20210210210451.3coi62cynptzb6wf@kozik-lap> References: <20210210171040.684659-1-mka@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210210171040.684659-1-mka@chromium.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 10, 2021 at 09:10:35AM -0800, Matthias Kaehlcke wrote: > This series adds the onboard_usb_hub_driver, the corresponding > device tree bindings and creation of onboard_usb_hub platform in > the xhci-plat driver during probe(). > > The main issue the driver addresses is that a USB hub needs to be > powered before it can be discovered. For discrete onboard hubs (an > example for such a hub is the Realtek RTS5411) this is often solved > by supplying the hub with an 'always-on' regulator, which is kind > of a hack. It seems you are re-developing the power sequence drivers which perform exactly this. Peter Chen some time ago was bringing power sequence to USB devices, but I lost track where this ended up. Some of his (and my) very old work (2017...) can be found here: https://github.com/krzk/linux/tree/wip/odroid-u3-usb3503-pwrseq Instead of adding custom driver hiding some USB hub implementation, power sequence seems a generic solution. What if you need to power cycle other embedded USB device? Not a hub? I was not aware of previous discussions so maybe I am repeating someone. Best regards, Krzysztof