Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3927908pxj; Mon, 21 Jun 2021 09:33:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzvUMUytEkg8PKAl1t9Xu/2hJS69EQvBrAztvdyb1/U1SdNGGHxj+5uqy0qAT+s1LCgLk0 X-Received: by 2002:a05:6e02:5aa:: with SMTP id k10mr19384282ils.136.1624293204247; Mon, 21 Jun 2021 09:33:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624293204; cv=none; d=google.com; s=arc-20160816; b=qOmjD3hJmeqzXyUUt25ekA/eGdBRkwU96m5Dl5P/YhTiXxyN2FiY1OPnnqNJH9Tn2F NVll2DHa8L6UVIOYbwdlmeq28u84aHdJfFnYly2BqKYEMEmMLRnp3Vk9yHfBBzXhIYai c/VurlWMfuvVJTJN/fG2TLpXtiCra451cWpYf1MNt3DxtjjCIq45QdG93aEW2x20uGqx tbMMiOyCHTE2RmDsKrfyCnbw/sqcKLs6doT7bQj2pwm7nQhlThFYpoOnT45OBrxZkLcv jtSiMYJczJHVibIgE9Qn1LZcPfYGJTQJhMk1w0V+s7ZWDcaXpncyMNSB8klyIUAKCmJ7 00LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ATTqyWVgXg3bwRWecSIiJL8S918WWkcsGSFOYZPplGI=; b=NTwHod5VTZjteACg2PL9AXdVBC+qd39hAAA8poJuBRWhfOmtrX2wZ/u+H17JHqFZfk weL0ZCyeIAiPl3lQtcMypTsR6sEVyDBxdojYRcVrQdbIZWApC/G0b+2sxuPaWT+AaZos /Vk5/Z43aWlm4zIJ0HkesSyfkESdI+BAbPJe9hRU5GXm7MBKPla+gBSKf2WnXSmyoZL7 DMHWF/vA89vww9/9JB/LTTMEJj2GtU2fAr47zIwchRutY+fHdOiifY86bczNA3d5fN06 ePqvJLiMiimOc+n318bLtSM/c84VFD9hDZfCCYmcbxy6fGS/lMuTZz0CjCBMOJ/kQtKa 5NAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CuclQa6Q; 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 b40si12158723jav.35.2021.06.21.09.33.10; Mon, 21 Jun 2021 09:33:24 -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=korg header.b=CuclQa6Q; 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 S232543AbhFUQeC (ORCPT + 99 others); Mon, 21 Jun 2021 12:34:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:49176 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231986AbhFUQbE (ORCPT ); Mon, 21 Jun 2021 12:31:04 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 255DB6134F; Mon, 21 Jun 2021 16:25:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624292714; bh=gejLy919EjzY/hYIvCNM1x6wflCUUrXKnIQSERbaZqg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CuclQa6QN7/XvB/2/Qm2ntuzWq5VHrGvbDBVKen8qBg+hsC1pqHZOGsKyQoE3sBbh vYr/IWdzOJbxK5mTDI21L4eqkcWIa3sivJ6MzGIfpMD+ujP7PL1g1sl5Vu704QDS17 ZEkR24IQe2R62DnEroe4ka3C/oq20118aFUsMoho= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andrew Lunn Subject: [PATCH 5.10 102/146] usb: core: hub: Disable autosuspend for Cypress CY7C65632 Date: Mon, 21 Jun 2021 18:15:32 +0200 Message-Id: <20210621154917.732736057@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210621154911.244649123@linuxfoundation.org> References: <20210621154911.244649123@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andrew Lunn commit a7d8d1c7a7f73e780aa9ae74926ae5985b2f895f upstream. The Cypress CY7C65632 appears to have an issue with auto suspend and detecting devices, not too dissimilar to the SMSC 5534B hub. It is easiest to reproduce by connecting multiple mass storage devices to the hub at the same time. On a Lenovo Yoga, around 1 in 3 attempts result in the devices not being detected. It is however possible to make them appear using lsusb -v. Disabling autosuspend for this hub resolves the issue. Fixes: 1208f9e1d758 ("USB: hub: Fix the broken detection of USB3 device in SMSC hub") Cc: stable@vger.kernel.org Signed-off-by: Andrew Lunn Link: https://lore.kernel.org/r/20210614155524.2228800-1-andrew@lunn.ch Signed-off-by: Greg Kroah-Hartman --- drivers/usb/core/hub.c | 7 +++++++ 1 file changed, 7 insertions(+) --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c @@ -40,6 +40,8 @@ #define USB_VENDOR_GENESYS_LOGIC 0x05e3 #define USB_VENDOR_SMSC 0x0424 #define USB_PRODUCT_USB5534B 0x5534 +#define USB_VENDOR_CYPRESS 0x04b4 +#define USB_PRODUCT_CY7C65632 0x6570 #define HUB_QUIRK_CHECK_PORT_AUTOSUSPEND 0x01 #define HUB_QUIRK_DISABLE_AUTOSUSPEND 0x02 @@ -5644,6 +5646,11 @@ static const struct usb_device_id hub_id .bInterfaceClass = USB_CLASS_HUB, .driver_info = HUB_QUIRK_DISABLE_AUTOSUSPEND}, { .match_flags = USB_DEVICE_ID_MATCH_VENDOR + | USB_DEVICE_ID_MATCH_PRODUCT, + .idVendor = USB_VENDOR_CYPRESS, + .idProduct = USB_PRODUCT_CY7C65632, + .driver_info = HUB_QUIRK_DISABLE_AUTOSUSPEND}, + { .match_flags = USB_DEVICE_ID_MATCH_VENDOR | USB_DEVICE_ID_MATCH_INT_CLASS, .idVendor = USB_VENDOR_GENESYS_LOGIC, .bInterfaceClass = USB_CLASS_HUB,