Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3940252pxj; Mon, 21 Jun 2021 09:49:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsb914dn1lZVBR3qQmQqkFVVTcBmII7NZQdhwP4umqaKRTaKcVtPnLCo0oS5Uxr/Gl6DK7 X-Received: by 2002:a92:c991:: with SMTP id y17mr19186326iln.125.1624294158523; Mon, 21 Jun 2021 09:49:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624294158; cv=none; d=google.com; s=arc-20160816; b=hpRBoPPePj1wrpc3Pn9TE+NZbjkXz32bxIyCL1vsbJNxTV/oMvlLAfrkO3JHUtlnxO bq1y0wyVRksaRiOf2LZ6mXq1vTw89T+XZ39SxRhRFlYh789rGUpzsjwZgkxj4scoanmm hvuEiRCUwntVek8C3sjqYB1YR0YHKPIY3JrTd7y5fpUj6i2OzS7cjcKeQy4A/AOzs7pH 20CYLMJGg4GF69Oo1u1X4MPQz6Sc1B16yf8xu9VKpGWhiUrAOvIOlRhH8zWWnPLjwxtw P63JyGfjxdoGefvN1vWv7o09lj2R7ETAxE5cu1nvx+fxaG7y6GNphCKuPPNXGcHH9Sfb S/gg== 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=r+cuVuvJpGbr+viITmk5Y0Kdkb4VKlI0j1YxOGuoNVA=; b=e5uTke0R7bAeUy+ixDEmg+HEEd9ypQjCm6unjQxNY40WZM+YosnzHuiZYZU/rRe9rP D3ZUsubm3QxOw009sMie2ArxsRCcaUzDqXQGjH+ZGgkmhCpvvx46P0gtY4ZBa95L85YG 6nBI1sfJ4bRCIMWWJ1RUdd/Nlph+sPwVfVVMWsSODRSCdl7uWAWJWeplgyaD00j9kiie w0w98MrSe+RH87cSuJZR/xZixV7Bh6yU1om93QKVTBmJpaIqgUSx/Ex6UW07iTXiykDn GqE1hTlp3fw9+tztxOPngzAVNZnVcwxaqTCFePZMLjSAALJzaGYkzbof1MojzFpzFOz9 MMhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=o5u1+mav; 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 s4si21708892jat.42.2021.06.21.09.49.06; Mon, 21 Jun 2021 09:49:18 -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=o5u1+mav; 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 S233365AbhFUQth (ORCPT + 99 others); Mon, 21 Jun 2021 12:49:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:38072 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233881AbhFUQpn (ORCPT ); Mon, 21 Jun 2021 12:45:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A4A29613AB; Mon, 21 Jun 2021 16:32:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624293163; bh=d2ki7TxWsogr3eyhyR4SNJ12gnFwt3ToDzuc8xwd0O8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o5u1+mavxE3/YXM4eRukapANVsBK6IZKzHNQyX34Uewqifv8ppcpIl43hUM0Knnar iyeyigyMu4SG62ZE24z1udLDI9ERNI9oZ+XOuNB3wZMP5cAM7iLPiwvg1NFMeYtMeF S63KzupS55dpI8ipf67NbsTA6JnbRrDVInzDRzis= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andrew Lunn Subject: [PATCH 5.12 121/178] usb: core: hub: Disable autosuspend for Cypress CY7C65632 Date: Mon, 21 Jun 2021 18:15:35 +0200 Message-Id: <20210621154926.894704500@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210621154921.212599475@linuxfoundation.org> References: <20210621154921.212599475@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 @@ -5645,6 +5647,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,