Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp598576pxb; Tue, 19 Oct 2021 09:07:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycXiT2WUHpc7W/7Xqv6azThUqcitWV2afmijSl9f3iHVDqCJlTlD9Qv3AV3/5yxMTHvJ11 X-Received: by 2002:a05:6402:50cd:: with SMTP id h13mr55223955edb.245.1634659623810; Tue, 19 Oct 2021 09:07:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634659623; cv=none; d=google.com; s=arc-20160816; b=rrd6w1wtcX++nngyg0rVG46JGzGAAveaRqHw3MlR2k5ZqLU+LpB1hh9Q2VPjQung/+ lXPPsiyPF9izfEt7U8QRO5QBjhvU3DsKMMEKgzcRzEdtdDL4GujbHnMIObJJjwNOfEXC p/kvTjBwOfvxapkZ/9NQswIXbCx2gyLGJp0kxsLqdp0gBIU3PHKJVhDly46WkK8dXipu cD6NK95zanIX18o1Z9oyawpKuvZvkBfa/Z2N9c6NE1rbr/a6A1oQj/ojK5cOOLuQwhkC KNHM7kI/PqACOoeEcRZRM5Hgiod/fF1fb4j2eJ5lXbM8kk97RoOq0LLYG04cc6Uh6KBE BWeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=fdqa3FWQjGrFeZEe9ls1cJx0wp/BD6sM4yLn8Lo2/UM=; b=cJuR3BfdBojGzv5GxQdRFWpuUQM1iksiGiKPlaFUucRu2ntNbRZiuSvgxcx6axMfvJ bKa3VV5Kf9dlgq6yhxN2MC4zMeEw6CzJ8AxjBI5ITlzH1txVtA1YhBHxeYcf+HKz7jfw dIUBzdY/9pQOoP6e3QJfqJaBrLyRL0ZU47XUMeyboI2/+ULjDgCE8v14r/PRQt6ciHwB dXXw/v8ZeXrQiIB48en0uxjSOqOOB6Iw4hH3KI05I8KCWhjY9wK1TvrO2NLCw7A2PQyz 9lfE3q4x9v2Yqzv+i3nGFMsMNGQg57oVUZjLALhDTPE7zYuHVGjomtRQn3r6+MctJsvJ c+ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b="MQ9RMn/g"; 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=foss.st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z70si505836ede.388.2021.10.19.09.06.38; Tue, 19 Oct 2021 09:07:03 -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=@foss.st.com header.s=selector1 header.b="MQ9RMn/g"; 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=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232357AbhJSQGf (ORCPT + 99 others); Tue, 19 Oct 2021 12:06:35 -0400 Received: from mx07-00178001.pphosted.com ([185.132.182.106]:53144 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230168AbhJSQGd (ORCPT ); Tue, 19 Oct 2021 12:06:33 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19JE1L0R004966; Tue, 19 Oct 2021 18:04:12 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=fdqa3FWQjGrFeZEe9ls1cJx0wp/BD6sM4yLn8Lo2/UM=; b=MQ9RMn/gavH7KWZKGlRD6W0G2SSSkl5rnWfomMnQraGoBLCCHVk7jvRfO3aOZbIRWyNK rTEUjBGacbreKzkcYuCBGK8UiX/Ut9TxE807dUDJCBr5jcV3Vcf3545KxTw35ANnCi79 ntGjUtShm65X9ljUriPAf/Qnl3Ikeq8raNJJBn2P+eH5AtWhltGkoFo5MjpgCDDirkpX LKA6IMeKuLKHVln5APy8+shqAHtWyYFWeBr8Z3nBH/MpMJnRFx72LkX4P7aMsYNpgRXf lebYdKxDqnm/vEwwKrjLzLxo9DDHqMLeUMcs+GHoGb8XvJ0iyRECLeXXCIo141/KFMqs NA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 3bstrwauuq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 19 Oct 2021 18:04:12 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id C1EA3100034; Tue, 19 Oct 2021 18:04:09 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag2node2.st.com [10.75.127.5]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 61C78231518; Tue, 19 Oct 2021 18:04:09 +0200 (CEST) Received: from [10.48.0.126] (10.75.127.50) by SFHDAG2NODE2.st.com (10.75.127.5) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Tue, 19 Oct 2021 18:04:06 +0200 Subject: Re: Re: [PATCH v16 0/7] usb: misc: Add onboard_usb_hub driver To: Greg Kroah-Hartman , Doug Anderson , Matthias Kaehlcke , Rob Herring CC: Alan Stern , Frank Rowand , Mathias Nyman , "Felipe Balbi" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Peter Chen , LKML , Linux USB List , Bastien Nocera , "Ravi Chandra Sadineni" , Michal Simek , Roger Quadros , Krzysztof Kozlowski , Stephen Boyd , Al Cooper , Al Viro , Alexandre Belloni , Alexandre TORGUE - foss , Andrew Lunn , Andrey Zhizhikin , Andy Gross , Arnd Bergmann , "Aswath Govindraju" , Bjorn Andersson , Catalin Marinas , Dmitry Baryshkov , Dmitry Osipenko , Dong Aisheng , "Enric Balletbo i Serra" , Fabio Estevam , Florian Fainelli , Gregory Clement , Grygorii Strashko , =?UTF-8?Q?Guido_G=c3=bcnther?= , Jagan Teki , Jens Axboe , Johan Hovold , Krzysztof Kozlowski , Lad Prabhakar , Lionel DEBIEVE , Manivannan Sadhasivam , "Marek Szyprowski" , Mark Brown , =?UTF-8?Q?Martin_J=c3=bccker?= , Nishanth Menon , Olivier MOYSAN , Pawel Laszczak , Robert Richter , Russell King , Sebastian Hesselbarth , Shawn Guo , "Thomas Gleixner" , Tony Lindgren , Vinod Koul , Viresh Kumar , Will Deacon , William Cohen , Linux ARM , linux-arm-msm , linux-omap , linux-samsung-soc , =?UTF-8?Q?=c5=81ukasz_Stelmach?= References: <20210813195228.2003500-1-mka@chromium.org> From: Fabrice Gasnier Message-ID: <03f28680-35eb-25f4-5041-f3a56144da24@foss.st.com> Date: Tue, 19 Oct 2021 18:04:06 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="iso-8859-2" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.50] X-ClientProxiedBy: SFHDAG1NODE2.st.com (10.75.127.2) To SFHDAG2NODE2.st.com (10.75.127.5) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-19_02,2021-10-19_01,2020-04-07_01 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/15/21 8:39 AM, Greg Kroah-Hartman wrote: > On Thu, Oct 14, 2021 at 02:38:55PM -0700, Doug Anderson wrote: >> Hi, >> >> On Tue, Sep 21, 2021 at 10:09 AM Matthias Kaehlcke wrote: >>> >>> Hi Greg, >>> >>> are there any actions pending or can this land in usb-testing? >>> >>> I confirmed that this series can be rebased on top of v5.15-rc2 >>> without conflicts. >> >> I'm quite interested to know what the next action items are, too. This >> is one of the very few patches we have for trogdor (excluding MIPI >> camera, which is a long story) that we're carrying downstream, so I'm >> keenly interested in making sure it's unblocked (if, indeed, it's >> blocked on anything). >> >> If folks feel that this needs more review eyes before landing again >> then I'll try to find some time in the next week or two. If it's just >> waiting for the merge window to open/close so it can have maximal bake >> time, that's cool too. Please yell if there's something that I can do >> to help, though! :-) > > I would love more review-eyes on this please. > Hi, I noticed this series some time ago, and wanted to take a closer look. The same issue this series address is seen on stm32 board for instance. (arch/arm/boot/dts/stm32mp15xx-dkx.dtsi). On board HUB (not described in the DT) is supplied by an always-on regulator. So it could could be interesting/useful to address the same case , on stm32 boards, where USB2 (ehci-platform driver) is used currently. I noticed a few things, especially on the dt-bindings. I've some questions here. In this series, RTS5411 is used. The dt-bindings documents it as a child node of the USB controller. E.g. &usb { usb_hub_2_0: hub@1 { ... }; usb_hub_3_0: hub@2 { }; } I had a quick look at RTS5411 datasheet. It looks like there's an i2c interface too. - I guess the I2C interface isn't used in your case ? (I haven't checked what it could be used for...) In the stm32 boards (stm32mp15xx-dkx), there's an usb2514b chip - that also could be wired on I2C interface (0R mount option) - unused on stm32 boards by default usb2514b chip already has a dt-bindings (with compatible), and a driver: - drivers/usb/misc/usb251xb.c - Documentation/devicetree/bindings/usb/usb251xb.txt It is defined more as an i2c chip, so I'd expect it as an i2c child, e.g. like: &i2c { usb2514b@2c { compatible = "microchip,usb2514b"; ... }; }; This way, I don't see how it could be used together with onboard_usb_hub driver ? (But I may have missed it) Is it possible to use a phandle, instead of a child node ? However, in the stm32mp15xx-dkx case, i2c interface isn't wired/used by default. So obviously the i2c driver isn't used. In this case, could the "microchip,usb2514b" be listed in onboard_usb_hub driver ? (wouldn't it be redundant ?) In this case it would be a child node of the usb DT node... Maybe that's more a question for Rob: would it be "legal" regarding existing dt-bindings ? Thanks in advance Best Regards, Fabrice > It's in my queue to review, I just need to spend the time on it, sorry > for the delay. > > greg k-h >