Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41605C06510 for ; Tue, 2 Jul 2019 13:10:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 243542146F for ; Tue, 2 Jul 2019 13:10:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727059AbfGBNKd (ORCPT ); Tue, 2 Jul 2019 09:10:33 -0400 Received: from gate.crashing.org ([63.228.1.57]:33926 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726401AbfGBNKc (ORCPT ); Tue, 2 Jul 2019 09:10:32 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id x62DAMDc013985; Tue, 2 Jul 2019 08:10:23 -0500 Message-ID: <3cea94e3f461c44c0799c2d494b174d20895cc08.camel@kernel.crashing.org> Subject: Re: Aspeed vhub configuration From: Benjamin Herrenschmidt To: Felipe Balbi , Greg KH Cc: "linux-usb@vger.kernel.org" Date: Tue, 02 Jul 2019 23:10:21 +1000 In-Reply-To: <8736jobnnb.fsf@linux.intel.com> References: <44bb150fb8b283a3036a382fa7e821b045554c15.camel@kernel.crashing.org> <20190702122430.GC12019@kroah.com> <8736jobnnb.fsf@linux.intel.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On Tue, 2019-07-02 at 15:56 +0300, Felipe Balbi wrote: > We already have an interface for disconnecting from the host > programatically by disconnecting data pullup. > > static ssize_t soft_connect_store(struct device *dev, > struct device_attribute *attr, const char *buf, > size_t n) .../... I could reproduce the same interface for the vhub, at least it would provide consistency... The vhub itself is not an UDC device. It provides UDC devices that are the hub "ports". Cheers, Ben.