From mboxrd@z Thu Jan 1 00:00:00 1970 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.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 3B25FC432BE for ; Fri, 23 Jul 2021 23:59:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0771D60E90 for ; Fri, 23 Jul 2021 23:59:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233372AbhGWXSf (ORCPT ); Fri, 23 Jul 2021 19:18:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233059AbhGWXSe (ORCPT ); Fri, 23 Jul 2021 19:18:34 -0400 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7FECC061575; Fri, 23 Jul 2021 16:59:06 -0700 (PDT) Received: by mail-io1-xd30.google.com with SMTP id n19so4606824ioz.0; Fri, 23 Jul 2021 16:59:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WiDACkcaGfVG9TmW2biO8dZY6cfo1/gxjtjvcU264pg=; b=gWRe6SMgaPvcfXAdd6tpPvrUmvywiaCnBV5uYBeAn10agVBitz8ejYP0qjQ4b2E9aU Yy0aDKawOx5k1btJ+y5Tl4MAyozu5dc4a5j7ejKzD97S9K8MAX17JF8jJiYTTFEAvIGm 6BNGvr+Xs7e/yXSUlnrY3egcwIVGfdQIoznWK8yUmNNHSvT1znpzwLzZPEcg/rA6ghwl Ko0HEGV8CaT3/hG1JZEi715xP3eMMuY7FEkd5ZOyefP8oYdY8S4mSyzMaJ/Z6Zp0UgVA WjRHiRnVIncXlyj8oBv5lJ6u0iRBF0ILL44hiN+0+LetCJR5UmjizjIFb212j0TBXb+c pHJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WiDACkcaGfVG9TmW2biO8dZY6cfo1/gxjtjvcU264pg=; b=SDR5GnM5NCOaKM6aAL7ZlZz77VeQS/Y/6N+bnRuf1LB59DuZdYlATolKE7eoKrSIfN u81cMKS3MsDnNOA6Kfc1b18Le2xmUlFmGeU/iwMB24/JI9oQzliWOCBA+AlkpOO8bDZT 5L9oFOAtc9AVxa7Zj0tWMqJ5JECt02bbL3RZplM7DgH7DaiUNAxX5V1cXOvCLq8H3w+c uOmtiCcviCxATYx+9kjT5DWcXvuZw/zYKjCJa69T1fyFD2L+nMr5PVEH5taRQS2bfIGA apaYBtvcB/un7IVgIOiqaKhfYunf/JxPs2cA+JHdspyz2h/KLDPit0gdjl9J1++DMOxK wf8A== X-Gm-Message-State: AOAM530ZZpJZ/b8EFUQ4J8zIhEXC3mSDitDEjSWI1IZG8+t9TeIYTGQB gyYzTJnzfWGc55l+UfG265uEeLS1OqU2LKt1+LU= X-Google-Smtp-Source: ABdhPJwR1WbFxz9U2Ynuu7C/o0kObcKmhZHkNuOdmmMLocNfX/gIpZL1oofwMeAw22PyYW3zy5W1kIJYYz6T54K9MVU= X-Received: by 2002:a05:6638:240c:: with SMTP id z12mr6124273jat.41.1627084746308; Fri, 23 Jul 2021 16:59:06 -0700 (PDT) MIME-Version: 1.0 References: <20210721235526.10588-1-msbroadf@gmail.com> <7b02cb66-d672-ae95-01ea-c6015725e1ac@linuxfoundation.org> In-Reply-To: From: Michael Date: Sat, 24 Jul 2021 09:58:54 +1000 Message-ID: Subject: Re: [PATCH v2] vhci_hcd: USB port can get stuck in the disabled state To: Shuah Khan Cc: valentina.manea.m@gmail.com, shuah@kernel.org, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Here is the lsusb on the client when the device fails to attach --------------------------------------- michael@ubuntu:~$ lsusb Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Here is the lsusb on the host before use ----------------------------------------------------- pi@raspberrypi:~ $ lsusb Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 045e:02e6 Microsoft Corp. Wireless XBox Controller Dongle Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub On Sat, 24 Jul 2021 at 02:29, Shuah Khan wrote: > > On 7/21/21 8:27 PM, Michael wrote: > > You can pass through any bluetooth dongle (or xbox wireless dongle) through usbip and it will cause this issue. > > > > For example, here is one of my customers https://www.virtualhere.com/comment/9432#comment-9432 with the issue. > > > > The device is in the VDEV_ST_USED state when a reset occurs and so its never re-enabled > > > > Furthermore there is a bug in the line pr_err("vhci_device speed not set\n"); > > (L479) because resetting a full-speed device is not an error. > > > > Can you provide me the full demsg from host and client including the part > where device is attached? I assume usbip tools from Linux sources are used? > > Also send me lsusb output on host and client > > thanks, > -- Shuah