Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1995152pxy; Mon, 2 Aug 2021 16:15:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzQ7yP/oIYFXZzlNYCRDtYVULmU6HvzfFizKQZyq4dDwhm+RP2F0sjF0EtIJOWfuCUE9xr X-Received: by 2002:a02:90cb:: with SMTP id c11mr17204359jag.53.1627946155353; Mon, 02 Aug 2021 16:15:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627946155; cv=none; d=google.com; s=arc-20160816; b=GLyv5K1EQyZVWi64xK0dO3DNMNIqCF1uojvpb1YQ/G/1MgG1sDKwt0gf6UZod0USfx fZpDtpSpa3hhfDUKysnKvIRDxsobqU97MLcMPdFh2PDho4yODoD39ZJfX4XMHzgUzK35 a6kfjHzrW1IphpZc0LAPZZ7eHjBsY6Gdt4HYIm+C6GkC1U9RgPGA9mCuV7GOozp4s3nK LbQ46N/MUk+09OBbvvIOY26lvuINaOAWn2GhQpDCvVMTHuaopYXHBK6j93kwjuI1Gpdg 8wrYVM5+zO3uQg6ojmOLs6/m6qhJHH3NZSX2Bx4a9j+WxaeT1BpqqsYbilwIq6lmUjAB iRBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=TjypnJIGsZivq+AJtxRV91gMpI4hjSbuEGhwWn6yEp0=; b=S6Go/lxHFLXDucxr5IlSN6lR2PuaTpgLMaDkhM0IFM5qFA6uZYpzwaPyRSniFE+fKV Ww6ZOMtbJNg3gYd6RFOh//7MoId11VzoeqJjeQpAaWAAUfka66XKz6XAvvFUnVwCRGmo xb0/Jnj/9/Kf7AL3/d4P5l22+LkcnKtzVWeL/aAlnLHHwcDrE8d30M8LHIT4ecbn3Ro9 AG8Ah0fzbBHdY8JKk08W2z60BZuCoqSCKStDmoylkBPipvWIK6OYTv/a6pxW/e0w5Te2 Iq5XYfjeNWawrpwkPKGyixOQ8v1tZbxuKc1sdP1I6Iso4xxEUdql+WOOOt95aCAVtKq3 uYFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=N7eUayXy; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b15si11806388ilj.38.2021.08.02.16.15.43; Mon, 02 Aug 2021 16:15:55 -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=@linuxfoundation.org header.s=google header.b=N7eUayXy; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232282AbhHBXPJ (ORCPT + 99 others); Mon, 2 Aug 2021 19:15:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232192AbhHBXPI (ORCPT ); Mon, 2 Aug 2021 19:15:08 -0400 Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1789CC061764 for ; Mon, 2 Aug 2021 16:14:58 -0700 (PDT) Received: by mail-oi1-x22c.google.com with SMTP id q6so26061748oiw.7 for ; Mon, 02 Aug 2021 16:14:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=TjypnJIGsZivq+AJtxRV91gMpI4hjSbuEGhwWn6yEp0=; b=N7eUayXyS8f/dXjID2CZc+xN2hUP0dvrCdcJPVCU0NXTH0GnKWNJgWV5L9MF5BPFCP +eilS/z3KOT2ot6uKoSMmal3ammgg0Vpq43fUq8OUyHLz1cbioLTIWbmWTPDIEq4yxqC OxAhQeGQ/IZGL6NOZHSMrTLKxEcnLr9FaX5GY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=TjypnJIGsZivq+AJtxRV91gMpI4hjSbuEGhwWn6yEp0=; b=CJcpPEdvoLxnNi6Xj3V9znnyz5lO3sK0DmIzHFHc3xiG50x9MFT4GsZh9/mhz9TOwN FDcJYH8UeyRvdv2jnxqs64twmlS4Mvt7L2hfZddmuZ7fEUdIf48b9MrTTPjKjjRD7NRK 4HQLbrXCchBYDwh7av8xFCS6O1Y9AnPyaSY4beFKi2NTf4FOqXRmjtTt0/4CEQXjmnbJ Wmi4Naeq1ytFXJXBp6jB6pztDgdXSDw2+HboMxnFMerX5sf6lSsoHgMH0ieoZ/Qs/mU8 asM+vYtV3h07Js4FOAativ56je/3YatAO/nTsONR3t7h8gWdlEBsyWwQd3qonRdOftZX gvgA== X-Gm-Message-State: AOAM533i9NR+2Svw5zpOd9yWfg3JwaJOunk4TpXwMTfvUXJYoj6L3t+J L9n+yGSfLfI/2pawfQnlLf1PBA== X-Received: by 2002:a05:6808:8e6:: with SMTP id d6mr12673956oic.45.1627946096985; Mon, 02 Aug 2021 16:14:56 -0700 (PDT) Received: from [172.31.99.103] (c-73-14-2-216.hsd1.co.comcast.net. [73.14.2.216]) by smtp.gmail.com with ESMTPSA id t24sm21296otq.66.2021.08.02.16.14.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 Aug 2021 16:14:56 -0700 (PDT) Subject: Re: [PATCH v2] vhci_hcd: USB port can get stuck in the disabled state To: Michael Cc: valentina.manea.m@gmail.com, shuah@kernel.org, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan References: <20210721235526.10588-1-msbroadf@gmail.com> <7b02cb66-d672-ae95-01ea-c6015725e1ac@linuxfoundation.org> <976d34c0-d603-1f16-edbd-ad6c8881ad4e@linuxfoundation.org> From: Shuah Khan Message-ID: <5165bd84-11af-35dd-8a9b-11c7f219fb88@linuxfoundation.org> Date: Mon, 2 Aug 2021 17:14:54 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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