Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp889927pxa; Wed, 19 Aug 2020 18:44:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+atXmXBjAaqBJmqkv1NJpOPP36WyzxKKZUecwMYBHq7gdWu8zHdtVAlbHcOzx5hbgra1V X-Received: by 2002:aa7:db0f:: with SMTP id t15mr754416eds.359.1597887840918; Wed, 19 Aug 2020 18:44:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597887840; cv=none; d=google.com; s=arc-20160816; b=bgLPh/skS95RPkJfH8DriEwFXZbhRoaBpo0RBzrm9GFdbav+5himBeNaIRbCE7bdD9 BwecdwAaPl1cl3nW2uL0lmj9/SP+DjS7odzFH5h8s8juF+7P1eyH50pSrygA9MxfklKw vwn60ABiDQstbZ8VKQRqX194pLOWeT5KZLlyrlDiWvPdzaOLfF9AAZ7/IM1W95YW5TFk 4VaX9iGfQnJV/3qKpyMcMxi6LXmQ0s8TjHSgwOzfcRuplkLp9iZUrLTayJk7zwamTfWx FsNcWLsY1NqFXxlN0wz2kB2iJkCFff/eCTSYdYuDKLpKJt4hDMsTKVRYiSK4XVhA6qb5 mMBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=2MGo2bQtWeT865xarI8RZSXkrSfbBMFdQhADxueHZKk=; b=oQxXwafHQg3C15xoFuHNTHk/fFdFwg5gjhRL2T/e2i9mu9hjgCZtaQ3XtcWB+n7o8D 2Fx4BEq1O4nfJ0nLRAZkfEoHfJKuXE60YbMpIcU0w6OIEPSJODlUNPKSMRBKrcZMkA8J T2kP8YlG/QKKuRn369Bu3dE1/gu8F7CmthoDRolVdIviC8gSxInyOgurwh4xClx8ftge LIUemmoddVUtpoJYFHqDuXobIUZj5epagrUTiFJw/nAU4YkEKO4RzNI5VcqKKrzbJCsZ n/eiXOeGNZ7eIVPFmKUEqezHa4MHPmdkKRJ4nP8cExsUlsIUt/LkVoAQNck1+PmH7M9l czZA== 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 qq10si297073ejb.362.2020.08.19.18.43.36; Wed, 19 Aug 2020 18:44:00 -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; 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 S1726640AbgHTBnA (ORCPT + 99 others); Wed, 19 Aug 2020 21:43:00 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:48509 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726435AbgHTBnA (ORCPT ); Wed, 19 Aug 2020 21:43:00 -0400 Received: from [111.196.79.150] (helo=[192.168.0.103]) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1k8ZbU-0006l0-8l; Thu, 20 Aug 2020 01:42:56 +0000 Subject: Re: [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state trig by Lenovo ThinkCentre TI024Gen3 USB-audio To: Kai-Heng Feng , Takashi Iwai Cc: penghao , Mark Pearson , Jaroslav Kysela , alexander@tsoy.me, dan.carpenter@oracle.com, crwulff@gmail.com, gustavoars@kernel.org, "moderated list:SOUND" , linux-kernel@vger.kernel.org References: <20200819115757.23168-1-penghao@uniontech.com> <74B3A9AD-8B49-4E5F-BE9F-BF88865304B7@canonical.com> From: Hui Wang Message-ID: Date: Thu, 20 Aug 2020 09:42:41 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <74B3A9AD-8B49-4E5F-BE9F-BF88865304B7@canonical.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/8/20 上午2:10, Kai-Heng Feng wrote: > >> On Aug 20, 2020, at 01:18, Takashi Iwai wrote: >> >> [ Adding a few more relevant people to Cc. ] >> >> On Wed, 19 Aug 2020 13:57:57 +0200, >> penghao wrote: >>> TI024Gen3 USB-audio is controlled by TI024Gen3,when TI024Gens >>> enter sleep mode, USB-audio will disconnect from USB bus port, >>> wakup form s3 state >>> >>> Signed-off-by: penghao >>> --- >>> sound/usb/card.c | 6 ++++++ >>> 1 file changed, 6 insertions(+) >>> >>> diff --git a/sound/usb/card.c b/sound/usb/card.c >>> index 696e788c5d31..6bdbb34009b3 100644 >>> --- a/sound/usb/card.c >>> +++ b/sound/usb/card.c >>> @@ -658,6 +658,12 @@ static int usb_audio_probe(struct usb_interface *intf, >>> } >>> >>> dev_set_drvdata(&dev->dev, chip); >>> + /* >>> + *ALSA: usb-audio: Add prevent wakeup from s3 state trig by Lenovo >>> + *ThinkCentre TI024Gen3 usb-audio >>> + */ >>> + if ((usb_id->idVendor == 0x17ef) && (usb_id->idProduct == 0xa012)) >>> + device_set_wakeup_enable(&dev->dev, 0); >> Here it's no proper ASCII letter, and this must be broken. >> Please check the actual patch before submitting. >> >> In anyway, before going further, I'd like to hear from other people >> whether this is really mandatory and appropriate. And whether it's >> specific to that device, too (not other Lenovo devices?) > If USB remote wakeup on this device is broken then we need to fix it in USB core instead of USB audio. > We need USB and xHCI logs to understand the real problem here, the commit message doesn't contain enough information. > > Kai-Heng I checked with our QA, we didn't enable this machine before.  And I tried 2 different usb audio cards, neither of them has wakeup capability. it is weird that your usb sound card (maybe a built-in usb sound card) has wakeup capability. You could file a bug to https://bugs.launchpad.net/ubuntu/+source/linux/+filebug, then upload the needed logs,  Kai-Heng and I will help investigate this issue. Thanks, Hui. >> >> thanks, >> >> Takashi