Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2053891pxy; Mon, 2 Aug 2021 18:02:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw36u7ndKNx9OO/sO06eHMQC+jyzF1F0FayOt2G5yQMnkx+Zr0jsBuLvk9Eky5qpZenfJXz X-Received: by 2002:a02:9444:: with SMTP id a62mr8444469jai.138.1627952549847; Mon, 02 Aug 2021 18:02:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627952549; cv=none; d=google.com; s=arc-20160816; b=rZhYjY9XwKugnb6Ok9Zy/s0WgqVSIoiKx4UL44FFehLEa0EtQxWMLcZppX20u3VJek HTaosWnQ8mCb9a9HMor8hQzIoftLB5ec9mA2MqNwt5g/Rzp0pF1KWytaLn54sy7SAdAW GE52m9aO8DP3KWBquLRlYhiMF9yLJUwb+rXTbAiUlLQMuKGzwCynrF5eYDMU6VqOJCrx F38SnPb9pFMvOg/7KPAs5JZzSeG6qi9FBb26xbSbyy2apQsjfvj/SIBbLh7a6vMg0pav hiYDIvpPPA0V6Niyl9wb7+Z34xNGkl4UnpHVnkcA+BX3F0pNJEXkPugv0m8JxqQWMApX JOgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=gXoEjoad1R7HKIdPw8tJDXKRSirWOIxZ0y/mYDE99v0=; b=UWsW0FODFWH80EpbBJFHGiMG6z4eIlwBpjq++EImMkl0xYAZeJgc+fMpexN/Z9GME/ vLF8+4vaolINlPSZITD9dLb14DtSZoiUni91U8YlsQcjbuXAtkvNeUtBAnlnVrTEWc3d CDD9E9KyjZCBmtAi5VUgsx4BydEP71Wm0KSABahv5StEfrX/rfZqb4Z9cAHAtE73HSVp h3J4hFtYQMao+lUMZTjKns4QQbyiKCap4p3fjqFbZ2iEGnOSHlBEgIkElM8Wn/O2i/qi szelYtY17KtBksztjWuPGLqXOrM5nkjmRNU1XH+PU/s/kWSdMoBdvx/4UobeO49jQTf4 0f/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZoNb5UVh; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b26si7650610jar.107.2021.08.02.18.02.16; Mon, 02 Aug 2021 18:02:29 -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=@gmail.com header.s=20161025 header.b=ZoNb5UVh; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233050AbhHCBAd (ORCPT + 99 others); Mon, 2 Aug 2021 21:00:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232848AbhHCBAc (ORCPT ); Mon, 2 Aug 2021 21:00:32 -0400 Received: from mail-il1-x12f.google.com (mail-il1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4550C06175F; Mon, 2 Aug 2021 18:00:22 -0700 (PDT) Received: by mail-il1-x12f.google.com with SMTP id r5so18136268ilc.13; Mon, 02 Aug 2021 18:00:22 -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=gXoEjoad1R7HKIdPw8tJDXKRSirWOIxZ0y/mYDE99v0=; b=ZoNb5UVhY0zVJKHbk9/MQEn67Pd8KgLIzylIDwxnhBFKFL5DDvwTDVHMNdN9plPiUU cjI5S6Plz61gmcLk7Zf0PQqFyHeUEYHVcTNSutbPjsX/p0ay6x8ZmoE5UOD3TWp1ecYt 7W1RkTnOeT5DF2Vpf2gAdtPXAgd5AqEmo72gfD7tneDODCdo9htlPijYQzXkCbRPyG7x /bz3EmKxZ6uLVlenU4FjcpJ4D3K9zOep14MHxoH5ekrWEDNBpqft9cc/PxoLEenLPt4L 80TxkLpQLeLpSKyz9ENWDEVkRO6kwHIrvJaCJL5+Uyflzc7Zj6atlKbciECPHwRCghwV CkQQ== 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=gXoEjoad1R7HKIdPw8tJDXKRSirWOIxZ0y/mYDE99v0=; b=FltRVQlgVK3CwOsHX6px/EYKnxUb7pR37q296U7sS9gnxfWGr83k/gtULvjRH3Zqfk 2ph+VKqCysyOQZ8vaV3PjETa4D4pO8WPWCLdmAntr/r74G0b4OMcZfreS8KRuQGcA3nu 7iXow+AyefG8OsuHF+ZD6RZE17ejzTkTRauvQMr5/LEcj1tibHUcKn7jEvA+ETHOrKKP T57rw9EF8aSaF1rZrJb7Q1bJZ7+UiL1ceYH7U9UJUe1Fdn0DIhi6kT9sRH9ND4GzylMN winZodFFvbJpKqyDJqdmxbI7hd65YArtACrYeS5zSKNSQB2y4aZakiRyjkkVvd0o9KAl CPUA== X-Gm-Message-State: AOAM533UE5RQQRREtTok7qPaobVhk21gMweWxZ9cRINtOXwah1rhYqMu yBevNd+VKZrwUOvXTidMqrRnhdtMpGCKSublGKYJHtztY74= X-Received: by 2002:a05:6e02:2194:: with SMTP id j20mr383023ila.108.1627952422178; Mon, 02 Aug 2021 18:00:22 -0700 (PDT) MIME-Version: 1.0 References: <20210721235526.10588-1-msbroadf@gmail.com> <7b02cb66-d672-ae95-01ea-c6015725e1ac@linuxfoundation.org> <976d34c0-d603-1f16-edbd-ad6c8881ad4e@linuxfoundation.org> <5165bd84-11af-35dd-8a9b-11c7f219fb88@linuxfoundation.org> In-Reply-To: <5165bd84-11af-35dd-8a9b-11c7f219fb88@linuxfoundation.org> From: Michael Date: Tue, 3 Aug 2021 11:00:10 +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 On Tue, 3 Aug 2021 at 09:14, Shuah Khan wrote: > > On 7/30/21 5:52 PM, Michael wrote: > > Yes i think just adding the VDEV_ST_USED check in addition to the > > VDEV_ST_NOT_ASSIGNED state is fine and would fix the issue. > > > > Can you please confirm if this works? > > > After many years of writing virtualhere (a similar system to usb/ip > > but cross-platform and different non-kernel way of doing it server > > side) I've seen many drivers that issue reset at any time. Loading > > firmware is usually the reason. Also sometimes switching > > configurations requires a reset also, for example some gaming wheels > > do this. I don't think you should make this VDEV_ST_USED check > > specific to Wifi devices, as a lot of devices don't follow too closely > > to the USB protocol to begin with from my experience. They primarily > > base their USB interactions assuming the windows platform and its > > quirks. > > > > When sending responses to Linux kernel mailing lists, please use bottom post. > This check will be used for all drivers. We don't add checks for specific cases > in the code. > > thanks, > -- Shuah > Yes it works with that change.