Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp305538pxb; Wed, 18 Nov 2020 05:10:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJyV7zitF+RN0jH8KwChoM9ozn2rhk4VxCmEE9pDj2ECYNBE9J/t+DgiUaOgsF+a48tV4ISz X-Received: by 2002:a17:906:26c7:: with SMTP id u7mr24195518ejc.96.1605705052366; Wed, 18 Nov 2020 05:10:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605705052; cv=none; d=google.com; s=arc-20160816; b=GQu6gz/L9LA/ztJp2/tm7aWpV04KZ491N5w0DeeeTPkNs3bQWPgLS9TjeWKKreowv5 lGAH/hFF1IZrGKeMS/izr8VsBk+50LHAM2IPEBwbfIJHuh4iT21RfxE9+nerAfuZRYkW zrEZkugHy6h19iWYRkB0dmfJxTC+/VJEqNQrP1sFwLfx2NiMog2GSUzKkiTbCKkQWu8D +tdumphgWrb9r0g8Tnn5BTl5shZBHrNnkRJvAH7jA0UGFTQfJtJKbfeeT4snW4wPE7np WAv2jKHxENr8yrhhE+eOF+s6Pdj01C1lBY9dv4RV538tomqfwXn2CAykhcpj+taMYVyw R/Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=GdjofbE2YnFiYAkLI4qWayJ2b8NSI/ije/K/R5uD+K4=; b=itThr9M+QcPGiNYcUx3BeFAf6afnFGhvx2Lh0zipvmk+mOGrSD2IeEfWUSMDLMWNTn GJyrPBhta1pGBNHzMESOSeKVue74Are23tmNBTpknp4lYMzezYOyOUgm5CFkM/wobPA8 1XNzGXAhFYHY5EnuEuwvCWfhuc869XlslcTxJ2NoHkzTlsDrUopW0nlw8Ufg0O9Ezzgd /S6kodWwYKWBhPEcVOta4quoB6c79b3ZAqCj579OAa839TaQ5sPirjXw0HK+zFuJZCiu Ey/Y82nIRd2/S0Edq4FQzZH7xwuwSnDslKpwstWM3ZaMxcOrLJz6AWkOmVIQ6g/WMV8X m6QQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i2si18495249edn.398.2020.11.18.05.10.29; Wed, 18 Nov 2020 05:10:52 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726216AbgKRNIu convert rfc822-to-8bit (ORCPT + 99 others); Wed, 18 Nov 2020 08:08:50 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:57533 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726172AbgKRNIu (ORCPT ); Wed, 18 Nov 2020 08:08:50 -0500 Received: from mail-pl1-f199.google.com ([209.85.214.199]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kfNCa-0000aM-1O for linux-kernel@vger.kernel.org; Wed, 18 Nov 2020 13:08:48 +0000 Received: by mail-pl1-f199.google.com with SMTP id k12so1164634plk.4 for ; Wed, 18 Nov 2020 05:08:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=21ZU1BIRNMQ3+uPHUldMQmJXyQgMOx75iKFMw5odfJA=; b=pjJXNnSQB0Zg1c6tnUvZxJZ2w+DlRbYQjYba+P01jPTV6fzZNCyyXZJIPd8RcMFRXQ E/kZfz/o8GSeMoLCdotvGM4vGZErZZnr2kZfBOZ/7Ubs7QF40OpcH/WIPPlDV+zzj0cj sb/u6py4n8pMbyL/qL43O11vefxFMgbjv3rA0+NvBgnPGJ2goDtfd9UWEVkB/1vAVsJv bWmNqIEYhG4Grgg547Bhjp+ruN4IXOqFE3PzmSWldl0Rdj+z4t0qkfk0SgxvwR5DcCA7 de0MCPiyqJgQpdPZEyBFiB2lPpYhoAE3wlz2TSTtHCadFyFpAIy8llP1YEG/enLTin+D G12Q== X-Gm-Message-State: AOAM533PagzM3zJ8F2HLaIHKVoXrKbXaJW4NuC2+aKWmHuACFJdwAK5e pnPSSjnEOKOly/Zy1Jdvwops31WNl7+M+T5NIvl9VUFomZ35Xg6aB9LgBpG4Urp+s8VeEcsiF6u 57zdxsRXIuXYf2gsXcodSR55wRixHgficEOEQBK7KFw== X-Received: by 2002:a17:90a:ee82:: with SMTP id i2mr3966971pjz.158.1605704926572; Wed, 18 Nov 2020 05:08:46 -0800 (PST) X-Received: by 2002:a17:90a:ee82:: with SMTP id i2mr3966947pjz.158.1605704926236; Wed, 18 Nov 2020 05:08:46 -0800 (PST) Received: from [192.168.1.208] (220-133-187-190.HINET-IP.hinet.net. [220.133.187.190]) by smtp.gmail.com with ESMTPSA id z22sm2428925pje.16.2020.11.18.05.08.43 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Nov 2020 05:08:45 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.20.0.2.21\)) Subject: Re: [PATCH] USB: quirks: Add USB_QUIRK_DISCONNECT_SUSPEND quirk for Lenovo A630Z TIO built-in usb-audio card From: Kai-Heng Feng In-Reply-To: <20201118123039.11696-1-penghao@uniontech.com> Date: Wed, 18 Nov 2020 21:08:41 +0800 Cc: Greg Kroah-Hartman , johan@kernel.org, jonathan@jdcox.net, tomasz@meresinski.eu, Hans de Goede , dlaz@chromium.org, richard.o.dodd@gmail.com, kerneldev@karsmulder.nl, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8BIT Message-Id: <49219711-84BE-44FC-BBFE-DD8D609CA26D@canonical.com> References: <20201118123039.11696-1-penghao@uniontech.com> To: penghao X-Mailer: Apple Mail (2.3654.20.0.2.21) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi penghao, > On Nov 18, 2020, at 20:30, penghao wrote: > > Add a USB_QUIRK_DISCONNECT_SUSPEND quirk for the Lenovo TIO built-in > usb-audio. when A630Z going into S3,the system immediately wakeup 7-8 > seconds later by usb-audio disconnect interrupt to avoids the issue. > eg dmesg: > .... > [ 626.974091 ] usb 7-1.1: USB disconnect, device number 3 > .... > .... > [ 1774.486691] usb 7-1.1: new full-speed USB device number 5 using xhci_hcd > [ 1774.947742] usb 7-1.1: New USB device found, idVendor=17ef, idProduct=a012, bcdDevice= 0.55 > [ 1774.956588] usb 7-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 > [ 1774.964339] usb 7-1.1: Product: Thinkcentre TIO24Gen3 for USB-audio > [ 1774.970999] usb 7-1.1: Manufacturer: Lenovo > [ 1774.975447] usb 7-1.1: SerialNumber: 000000000000 > [ 1775.048590] usb 7-1.1: 2:1: cannot get freq at ep 0x1 Can you please attach full dmesg with dynamic debug enabled when the issue happens? We may need to poll for U3 in xhci_bus_suspend(). Kai-Heng > ....... > Seeking a better fix, we've tried a lot of things, including: > - Check that the device's power/wakeup is disabled > - Check that remote wakeup is off at the USB level > - All the quirks in drivers/usb/core/quirks.c > e.g. USB_QUIRK_RESET_RESUME, > USB_QUIRK_RESET, > USB_QUIRK_IGNORE_REMOTE_WAKEUP, > USB_QUIRK_NO_LPM. > > but none of that makes any difference. > > There are no errors in the logs showing any suspend/resume-related issues. > When the system wakes up due to the modem, log-wise it appears to be a > normal resume. > > Introduce a quirk to disable the port during suspend when the modem is > detected. > > Changes since v5 > - Add dmesg for this issue > > Changes since v4 > - Fixed add a blank line > > Changes since v3 > - Fixed spelling error on appropriate > > Changes since v2 > - Add Changes commit format > > Changes since v1 > - Change subject form "ALSA" to "USB:" > - Adjust to appropriate line > > Signed-off-by: penghao > --- > drivers/usb/core/quirks.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/usb/core/quirks.c b/drivers/usb/core/quirks.c > index 7c1198f80c23..26b852ae0d85 100644 > --- a/drivers/usb/core/quirks.c > +++ b/drivers/usb/core/quirks.c > @@ -410,6 +410,10 @@ static const struct usb_device_id usb_quirk_list[] = { > { USB_DEVICE(0x1532, 0x0116), .driver_info = > USB_QUIRK_LINEAR_UFRAME_INTR_BINTERVAL }, > > + /* Lenovo ThinkCenter A630Z TI024Gen3 usb-audio */ > + { USB_DEVICE(0x17ef, 0xa012), .driver_info = > + USB_QUIRK_DISCONNECT_SUSPEND }, > + > /* BUILDWIN Photo Frame */ > { USB_DEVICE(0x1908, 0x1315), .driver_info = > USB_QUIRK_HONOR_BNUMINTERFACES }, > -- > 2.11.0 > > >