Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5539963rwl; Tue, 11 Apr 2023 06:56:48 -0700 (PDT) X-Google-Smtp-Source: AKy350bPf/o/N3bE9hMteU97F2AycwtB7W3Ui4XCP5h1yY7xBQd75JLJ62mbpCUw+r0lamYuR83t X-Received: by 2002:a50:ff03:0:b0:502:52dc:b9d0 with SMTP id a3-20020a50ff03000000b0050252dcb9d0mr11616040edu.26.1681221408139; Tue, 11 Apr 2023 06:56:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681221408; cv=none; d=google.com; s=arc-20160816; b=eLZFEljtKQEdbL7UGw/TBXfzOchc/811ND1TpJP9kHaWNHlycIlxXDmtrgfcmn/xaH WPr5Q2M0KPHvOwrFW32aN2LAjyNziJFWdJ/rSubcGWsSecbUiTEDTPPTbG3ZNfRB4SJK OC8XArnLEw14ScOQeyFts0CtJhmroYVQd9I+EiUX04eTJZZYckelcnLSZLhnJ/cS2OYh PEnjqRNi7pezgqvZRGfN8+RT5iuu6143jpj7+qWqYdSSiROGyCIi837kYGYwieIOM5sj ZZ4/fSbyFBmg5l2UGsQf6EbRra6jk86BQ6HDMaSt+rIunH27RlhR6R88PExCGfIaQn8j 2qUg== 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=W0g6m7buTh7k7uxMbHQgwdnWrlPLuhqsfKDlelTtBN8=; b=N7mlJaTmIk4HD9AR9I240wMiQAcXkLQQEKSAzj/dEZ2azKNQWAQSFZyscqEPkyRrky wx7EBXiPvbgrefOwwpmeBZmnQQdiUULATHQ/JuAxe01AH3VrHOei2oNyylfha2g3iI+G l+vzhA2LXJuTUFaB0tpVR8kc0ueiig42QILl5B/ezKlXX9/c0hWZduGApNCnNiThLq4o GuVyF/8ILHwOzPs6hLV/LARdvdKMrs4xEv7ZQW1Gk5KsOPbI4WVvglvVhny9NNF9sy2z mlDgJckmCq7VX4DVbdVLx2xFV3LsnNOJ7JCkMT4iimavdaNlQH2PmXpywJiYBfF6DThY BIkA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m20-20020aa7d354000000b00502250fa5a5si12716966edr.470.2023.04.11.06.56.16; Tue, 11 Apr 2023 06:56:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230483AbjDKNzj (ORCPT + 99 others); Tue, 11 Apr 2023 09:55:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229957AbjDKNzi (ORCPT ); Tue, 11 Apr 2023 09:55:38 -0400 Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 4B6EB1FD0 for ; Tue, 11 Apr 2023 06:55:36 -0700 (PDT) Received: (qmail 175747 invoked by uid 1000); 11 Apr 2023 09:55:35 -0400 Date: Tue, 11 Apr 2023 09:55:35 -0400 From: Alan Stern To: Jimmy Hu Cc: gregkh@linuxfoundation.org, badhri@google.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] usb: core: hub: Disable autosuspend for VIA VL813 USB3.0 hub Message-ID: References: <20230411083145.2214105-1-hhhuuu@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230411083145.2214105-1-hhhuuu@google.com> X-Spam-Status: No, score=0.2 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 11, 2023 at 08:31:45AM +0000, Jimmy Hu wrote: > The VIA VL813 USB3.0 hub appears to have an issue with autosuspend and > detecting USB3 devices. This can be reproduced by connecting a USB3 > device to the hub after the hub enters autosuspend mode. > > //connect the hub > [ 106.854204] usb 2-1: new SuperSpeed Gen 1 USB device number 2 using xhci-hcd > [ 107.084993] usb 2-1: New USB device found, idVendor=2109, idProduct=0813, bcdDevice=90.15 > [ 107.094520] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 > [ 107.111836] usb 2-1: Product: USB3.0 Hub > [ 107.116835] usb 2-1: Manufacturer: VIA Labs, Inc. > [ 107.314230] hub 2-1:1.0: USB hub found > [ 107.321356] hub 2-1:1.0: 4 ports detected > > //the hub enters autosuspend mode > [ 107.738873] hub 2-1:1.0: hub_suspend > [ 107.922097] usb 2-1: usb auto-suspend, wakeup 1 > > //connect a USB3 device > [ 133.120060] usb 2-1: usb wakeup-resume > [ 133.160033] usb 2-1: Waited 0ms for CONNECT > [ 133.165423] usb 2-1: finish resume > [ 133.176919] hub 2-1:1.0: hub_resume > [ 133.188026] usb 2-1-port3: status 0263 change 0041 > [ 133.323585] hub 2-1:1.0: state 7 ports 4 chg 0008 evt 0008 > [ 133.342423] usb 2-1-port3: link state change > [ 133.358154] usb 2-1-port3: status 0263, change 0040, 5.0 Gb/s This status value indicates that the port is in the U3 suspend state. Maybe the port needs to be put back into U0 before it can be reset. > [ 133.875150] usb 2-1-port3: not reset yet, waiting 10ms > [ 133.895502] usb 2-1-port3: not reset yet, waiting 10ms > [ 133.918239] usb 2-1-port3: not reset yet, waiting 200ms > [ 134.139529] usb 2-1-port3: not reset yet, waiting 200ms > [ 134.365296] usb 2-1-port3: not reset yet, waiting 200ms > [ 134.590185] usb 2-1-port3: not reset yet, waiting 200ms > [ 134.641330] hub 2-1:1.0: state 7 ports 4 chg 0000 evt 0008 > [ 134.658880] hub 2-1:1.0: hub_suspend > [ 134.792908] usb 2-1: usb auto-suspend, wakeup 1 > > Disabling autosuspend for this hub resolves the issue. It may be possible to fix the problem. You should try that before giving up. Alan Stern