From patchwork Wed Oct 17 11:45:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hui Wang X-Patchwork-Id: 985335 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42Zr2t5GZfz9s9J; Wed, 17 Oct 2018 22:45:26 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1gCkGO-0003DD-SZ; Wed, 17 Oct 2018 11:45:20 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.86_2) (envelope-from ) id 1gCkGN-0003D7-Oq for kernel-team@lists.ubuntu.com; Wed, 17 Oct 2018 11:45:19 +0000 Received: from [123.114.33.134] (helo=localhost.localdomain) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1gCkGM-0002iI-6C for kernel-team@lists.ubuntu.com; Wed, 17 Oct 2018 11:45:19 +0000 From: Hui Wang To: kernel-team@lists.ubuntu.com Subject: [SRU][Bionic/OEM-B][PATCH 0/1] USB cardreader (0bda:0328) make the system can't enter s3 or hang Date: Wed, 17 Oct 2018 19:45:07 +0800 Message-Id: <20181017114508.4483-1-hui.wang@canonical.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1798328 This patch is already in the Cosmic. The OEM project is waiting for this patch to be landed in the OEM-B kernel, if it passes review, please help merge this patch to OEM-B kernel ASAP. [Impact] We have a couple o lenovo laptops, they have the realtek cardreader (0bda:0328), this cardreader is the latest product from realtek, and it uses the common usb-to-scsi driver UAS. When the system suspend and resume, the USB host will print some errors like can't disable the device under this USB bus and reset-and-verify fails, after that the system can't suspend anymore and hang randomly. [Fix] the mainline build v4.17-rc1 doesn't have this issue, so through bisecting, we found this patch can fix the problem. [Test Case] suspend and resume 30 times, and plug sd storage card into the cardreader, everything worked well. [Regression Potential] Low, we tested this patch on 7 different lenovo laptops. After suspending and resuming for 30 times, the system still worked well, and plug a usb storage, it still worked well. Mathias Nyman (1): usb: Don't disable Latency tolerance Messaging (LTM) before port reset drivers/usb/core/hub.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-)