Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp653463pxk; Wed, 2 Sep 2020 11:09:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfwTuMtXNWAauPTId6ottzwHVpHekQh5dth8GxomS3NrTaLgsTNhn9JFuJVmnaBo1fVqt9 X-Received: by 2002:aa7:cd06:: with SMTP id b6mr1265924edw.196.1599070192857; Wed, 02 Sep 2020 11:09:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599070192; cv=none; d=google.com; s=arc-20160816; b=CEtBSVPw0rgaiSbEhiLaUdwVY8VnDW61QeBvTXkoDrVekvrxgXYJS3j+hiDEmBNQX1 tlg+/jOfFJvWdUSYjwGHjcMoypR5Io5sOfSKEDnwteh7TFsvUtVxXyvhcC5W6hV5Y+Jw gI40IA/T7GrkBiMdwD0E6VWIdy42SFidDVuVCS2o7FGPPRCc3NnDUXWaJjZlRfskesLL EaoRT76XE4Eziupjd1fVgeJzB+Bs5zqoLmMxJOS/BY94GlJwpu7B03C3H9+P6UPhGrZu 7ErB9KdecDqpIi0lPnHswTvZHxBU9K0Do99AekPVS/Px10E4GIzCWsw0KE4sfQzN69+S gX0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=VSHJHG5+upzM/goEP/xSDgS82DC6KInUZGDcM8Rgka0=; b=KVAM15YCWUZGWCS1X/QV/yE9Dv2gaabRb2y6F48PtuKwCa5k4sIM0grTrVV8x9vZ/2 6/x4cJzWUzs2aMFBjqMpfx7sxHSsGNhAZBFfefzRCZvEKkZhPXFAFsjzMjQrDyyddgy+ go13/2ey5WTOm6CHoP6TyiXqEgcDWr2WypM1SF1iZYrvNHBaYyEHS9C+tbA8ciGeI36i 00lbSlYHjKMDECqVdJAmF8zfGfOLAuOp31rlQeNBpDyViiwJi07WIF58/3IuciAfpTcL 7pPRR9GpDoMPnSMMsYzzSZech1DssicDPMWJA22i+x8AOz8z9h0Ba6Xb4Xuglf+LJ0L9 aDFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=bHBkkk3T; 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 n10si202739eju.408.2020.09.02.11.09.29; Wed, 02 Sep 2020 11:09:52 -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=bHBkkk3T; 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 S1728184AbgIBSH7 (ORCPT + 99 others); Wed, 2 Sep 2020 14:07:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726821AbgIBSHq (ORCPT ); Wed, 2 Sep 2020 14:07:46 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDF81C061244 for ; Wed, 2 Sep 2020 11:07:45 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id w7so87600pfi.4 for ; Wed, 02 Sep 2020 11:07:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=VSHJHG5+upzM/goEP/xSDgS82DC6KInUZGDcM8Rgka0=; b=bHBkkk3TDfWb/oc46NO3T9Wcl1C1+WCRl3YsWSAYw6GuX8yxbSXolnyMtfb3PrpZQh XyZOf4ZwPmAQlmCGZ40oUd2zSE2aeefFxGG/1nZ9Hi0C0axG51w/+1I6O3Rra9oWYSrQ 7xrsZTSbA/p1tYeU1w9VSaskHsyDopzrWLxA4= 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=VSHJHG5+upzM/goEP/xSDgS82DC6KInUZGDcM8Rgka0=; b=M2UTj0PjlqooFAblwNTQ1lOPQjMk9+Koesuvj7MI2omE9bJEHfM3hyR+GXKWUtVLkX EpOl75AodrjyAjmga18rg2DZOHHBv4Lyzk32AQEhJiI2rvX0w2qKdA/gRWFN2+E9R338 CNWYpUmYmK1OCGQdkffYGsqD+Evo0dp//CIjlwPTTECRd9QrgKyTOm5mMeVIryAR7LXu EWrqgNQzvQtO8NAaiQIJVvBfe8pZ0Fh1QBZIHsX7Bw936w1d6Mrn7/AM55QYlzsYtav9 lR/E7i0PWe63iId77RAjFUtH9uNG3RyIz54dWyqcoiK6QaS6U7TxEytpUOuCkGgdv4Kr JVDw== X-Gm-Message-State: AOAM532FcjmF9WZwkNpt9lXELzdvUy/DXD9k9GyMFo/3yYnrAiJIo77y kjujshdWO4eFF1jPap2V51T+zw== X-Received: by 2002:a63:2a91:: with SMTP id q139mr2847387pgq.391.1599070065402; Wed, 02 Sep 2020 11:07:45 -0700 (PDT) Received: from localhost ([2620:15c:202:1:f693:9fff:fef4:e70a]) by smtp.gmail.com with ESMTPSA id i1sm25205pgq.41.2020.09.02.11.07.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Sep 2020 11:07:44 -0700 (PDT) Date: Wed, 2 Sep 2020 11:07:43 -0700 From: Matthias Kaehlcke To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Ravi Chandra Sadineni , Douglas Anderson , Bastien Nocera , Krzysztof Kozlowski , Stephen Boyd , linux-usb@vger.kernel.org, Alan Stern , "Alexander A. Klimov" , Masahiro Yamada Subject: Re: [RFC PATCH] USB: misc: Add usb_hub_pwr driver Message-ID: <20200902180743.GF3419728@google.com> References: <20200901132005.RFC.1.I7c9a1f1d6ced41dd8310e8a03da666a32364e790@changeid> <20200902060744.GA142357@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200902060744.GA142357@kroah.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, On Wed, Sep 02, 2020 at 08:07:44AM +0200, Greg Kroah-Hartman wrote: > On Tue, Sep 01, 2020 at 01:21:43PM -0700, Matthias Kaehlcke wrote: > > diff --git a/drivers/usb/misc/Makefile b/drivers/usb/misc/Makefile > > index da39bddb0604..2bd02388ca62 100644 > > --- a/drivers/usb/misc/Makefile > > +++ b/drivers/usb/misc/Makefile > > @@ -31,3 +31,4 @@ obj-$(CONFIG_USB_CHAOSKEY) += chaoskey.o > > > > obj-$(CONFIG_USB_SISUSBVGA) += sisusbvga/ > > obj-$(CONFIG_USB_LINK_LAYER_TEST) += lvstest.o > > +obj-$(CONFIG_USB_HUB_PWR) += usb_hub_pwr.o usb_hub_psupply.o > > Why is this 2 files? Why can't it just be one? It's effectively two drivers that work together, it seemed cleaner to me to have a file for every driver. The 'usb_hub_psupply' driver (which probably should be named 'onboard_usb_hub' or similar) would even be useful on its own (taking care of powering the hub on and potentially other setup actions) with a bit of rework. > And isn't this much the same thing as many of the other "misc" hub > controller drivers we have? There are some commonalities, however most of these drivers seem to target USB hubs with an I2C bus, using custom 'commands' for initialization and putting the hub in/out of standby. The drivers in this patch have two goals: - provide a generic (configurable) solution for powering up/initializing a USB hub - enable support for powering down a USB hub during system suspend > And to make it easier to review, can you split out the device tree > descriptions so that the DT maintainers can review that? Sure, I wasn't sure if this is the right approach, hence I only sent an RFC without formal bindings to get initial feedback. As of now it seems that you are at least not frontally opposed it ;-)