All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state trig by Lenovo ThinkCentre TI024Gen3 USB-audio
@ 2020-08-19 11:57 ` penghao
  0 siblings, 0 replies; 20+ messages in thread
From: penghao @ 2020-08-19 11:57 UTC (permalink / raw)
  To: perex, tiwai
  Cc: alexander, dan.carpenter, crwulff, penghao, gustavoars,
	alsa-devel, linux-kernel

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 <penghao@uniontech.com>
---
 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);
 
 	/*
 	 * For devices with more than one control interface, we assume the
-- 
2.11.0




^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state trig by Lenovo ThinkCentre TI024Gen3 USB-audio
@ 2020-08-19 11:57 ` penghao
  0 siblings, 0 replies; 20+ messages in thread
From: penghao @ 2020-08-19 11:57 UTC (permalink / raw)
  To: perex, tiwai
  Cc: alsa-devel, penghao, crwulff, gustavoars, linux-kernel,
	alexander, dan.carpenter

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 <penghao@uniontech.com>
---
 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);
 
 	/*
 	 * For devices with more than one control interface, we assume the
-- 
2.11.0




^ permalink raw reply related	[flat|nested] 20+ messages in thread

* Re: [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state trig by Lenovo ThinkCentre TI024Gen3 USB-audio
  2020-08-19 11:57 ` penghao
@ 2020-08-19 17:18   ` Takashi Iwai
  -1 siblings, 0 replies; 20+ messages in thread
From: Takashi Iwai @ 2020-08-19 17:18 UTC (permalink / raw)
  To: penghao
  Cc: Mark Pearson, Hui Wang, Kai-Heng Feng, perex, alexander,
	dan.carpenter, crwulff, gustavoars, alsa-devel, linux-kernel

[ 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 <penghao@uniontech.com>
> ---
>  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?)


thanks,

Takashi

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state trig by Lenovo ThinkCentre TI024Gen3 USB-audio
@ 2020-08-19 17:18   ` Takashi Iwai
  0 siblings, 0 replies; 20+ messages in thread
From: Takashi Iwai @ 2020-08-19 17:18 UTC (permalink / raw)
  To: penghao
  Cc: alsa-devel, linux-kernel, crwulff, gustavoars, Hui Wang,
	alexander, Kai-Heng Feng, Mark Pearson, dan.carpenter

[ 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 <penghao@uniontech.com>
> ---
>  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?)


thanks,

Takashi

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state trig by Lenovo ThinkCentre TI024Gen3 USB-audio
  2020-08-19 11:57 ` penghao
  (?)
@ 2020-08-19 17:21   ` kernel test robot
  -1 siblings, 0 replies; 20+ messages in thread
From: kernel test robot @ 2020-08-19 17:21 UTC (permalink / raw)
  To: penghao, perex, tiwai
  Cc: kbuild-all, clang-built-linux, alexander, dan.carpenter, crwulff,
	penghao, gustavoars, alsa-devel, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2595 bytes --]

Hi penghao,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on sound/for-next]
[also build test ERROR on v5.9-rc1 next-20200819]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/penghao/ALSA-usb-audio-Add-prevent-wakeup-from-s3-state-trig-by-Lenovo-ThinkCentre-TI024Gen3-USB-audio/20200819-200006
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
config: x86_64-randconfig-a004-20200818 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project b34b1e38381fa4d1b1d9751a6b5233b68e734cfe)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> sound/usb/card.c:666:28: error: non-ASCII characters are not allowed outside of literals and identifiers
                   device_set_wakeup_enable(&dev->dev, 0);
                                            ^~
>> sound/usb/card.c:666:31: error: passing 'struct device' to parameter of incompatible type 'struct device *'; take the address with &
                   device_set_wakeup_enable(&dev->dev, 0);
                                              ^~~~~~~~
                                              &
   include/linux/pm_wakeup.h:159:59: note: passing argument to parameter 'dev' here
   static inline int device_set_wakeup_enable(struct device *dev, bool enable)
                                                             ^
   2 errors generated.

# https://github.com/0day-ci/linux/commit/b49bfa7145277ea86b0487f7fd4e51566477f092
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review penghao/ALSA-usb-audio-Add-prevent-wakeup-from-s3-state-trig-by-Lenovo-ThinkCentre-TI024Gen3-USB-audio/20200819-200006
git checkout b49bfa7145277ea86b0487f7fd4e51566477f092
vim +666 sound/usb/card.c

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 25925 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state trig by Lenovo ThinkCentre TI024Gen3 USB-audio
@ 2020-08-19 17:21   ` kernel test robot
  0 siblings, 0 replies; 20+ messages in thread
From: kernel test robot @ 2020-08-19 17:21 UTC (permalink / raw)
  To: penghao, perex, tiwai
  Cc: alsa-devel, kbuild-all, penghao, crwulff, gustavoars,
	linux-kernel, clang-built-linux, alexander, dan.carpenter

[-- Attachment #1: Type: text/plain, Size: 2595 bytes --]

Hi penghao,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on sound/for-next]
[also build test ERROR on v5.9-rc1 next-20200819]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/penghao/ALSA-usb-audio-Add-prevent-wakeup-from-s3-state-trig-by-Lenovo-ThinkCentre-TI024Gen3-USB-audio/20200819-200006
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
config: x86_64-randconfig-a004-20200818 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project b34b1e38381fa4d1b1d9751a6b5233b68e734cfe)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> sound/usb/card.c:666:28: error: non-ASCII characters are not allowed outside of literals and identifiers
                   device_set_wakeup_enable(&dev->dev, 0);
                                            ^~
>> sound/usb/card.c:666:31: error: passing 'struct device' to parameter of incompatible type 'struct device *'; take the address with &
                   device_set_wakeup_enable(&dev->dev, 0);
                                              ^~~~~~~~
                                              &
   include/linux/pm_wakeup.h:159:59: note: passing argument to parameter 'dev' here
   static inline int device_set_wakeup_enable(struct device *dev, bool enable)
                                                             ^
   2 errors generated.

# https://github.com/0day-ci/linux/commit/b49bfa7145277ea86b0487f7fd4e51566477f092
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review penghao/ALSA-usb-audio-Add-prevent-wakeup-from-s3-state-trig-by-Lenovo-ThinkCentre-TI024Gen3-USB-audio/20200819-200006
git checkout b49bfa7145277ea86b0487f7fd4e51566477f092
vim +666 sound/usb/card.c

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 25925 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state trig by Lenovo ThinkCentre TI024Gen3 USB-audio
@ 2020-08-19 17:21   ` kernel test robot
  0 siblings, 0 replies; 20+ messages in thread
From: kernel test robot @ 2020-08-19 17:21 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2645 bytes --]

Hi penghao,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on sound/for-next]
[also build test ERROR on v5.9-rc1 next-20200819]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/penghao/ALSA-usb-audio-Add-prevent-wakeup-from-s3-state-trig-by-Lenovo-ThinkCentre-TI024Gen3-USB-audio/20200819-200006
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
config: x86_64-randconfig-a004-20200818 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project b34b1e38381fa4d1b1d9751a6b5233b68e734cfe)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> sound/usb/card.c:666:28: error: non-ASCII characters are not allowed outside of literals and identifiers
                   device_set_wakeup_enable(&dev->dev, 0);
                                            ^~
>> sound/usb/card.c:666:31: error: passing 'struct device' to parameter of incompatible type 'struct device *'; take the address with &
                   device_set_wakeup_enable(&dev->dev, 0);
                                              ^~~~~~~~
                                              &
   include/linux/pm_wakeup.h:159:59: note: passing argument to parameter 'dev' here
   static inline int device_set_wakeup_enable(struct device *dev, bool enable)
                                                             ^
   2 errors generated.

# https://github.com/0day-ci/linux/commit/b49bfa7145277ea86b0487f7fd4e51566477f092
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review penghao/ALSA-usb-audio-Add-prevent-wakeup-from-s3-state-trig-by-Lenovo-ThinkCentre-TI024Gen3-USB-audio/20200819-200006
git checkout b49bfa7145277ea86b0487f7fd4e51566477f092
vim +666 sound/usb/card.c

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 25925 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state trig by Lenovo ThinkCentre TI024Gen3 USB-audio
  2020-08-19 17:18   ` Takashi Iwai
@ 2020-08-19 18:10     ` Kai-Heng Feng
  -1 siblings, 0 replies; 20+ messages in thread
From: Kai-Heng Feng @ 2020-08-19 18:10 UTC (permalink / raw)
  To: Takashi Iwai
  Cc: penghao, Mark Pearson, Hui Wang, Jaroslav Kysela, alexander,
	dan.carpenter, crwulff, gustavoars, moderated list:SOUND,
	linux-kernel



> On Aug 20, 2020, at 01:18, Takashi Iwai <tiwai@suse.de> 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 <penghao@uniontech.com>
>> ---
>> 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

> 
> 
> thanks,
> 
> Takashi


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state trig by Lenovo ThinkCentre TI024Gen3 USB-audio
@ 2020-08-19 18:10     ` Kai-Heng Feng
  0 siblings, 0 replies; 20+ messages in thread
From: Kai-Heng Feng @ 2020-08-19 18:10 UTC (permalink / raw)
  To: Takashi Iwai
  Cc: moderated list:SOUND, penghao, linux-kernel, crwulff, gustavoars,
	Hui Wang, alexander, Mark Pearson, dan.carpenter



> On Aug 20, 2020, at 01:18, Takashi Iwai <tiwai@suse.de> 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 <penghao@uniontech.com>
>> ---
>> 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

> 
> 
> thanks,
> 
> Takashi


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state trig by Lenovo ThinkCentre TI024Gen3 USB-audio
  2020-08-19 11:57 ` penghao
  (?)
@ 2020-08-19 19:35   ` kernel test robot
  -1 siblings, 0 replies; 20+ messages in thread
From: kernel test robot @ 2020-08-19 19:35 UTC (permalink / raw)
  To: penghao, perex, tiwai
  Cc: kbuild-all, alexander, dan.carpenter, crwulff, penghao,
	gustavoars, alsa-devel, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2743 bytes --]

Hi penghao,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on sound/for-next]
[also build test ERROR on v5.9-rc1 next-20200819]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/penghao/ALSA-usb-audio-Add-prevent-wakeup-from-s3-state-trig-by-Lenovo-ThinkCentre-TI024Gen3-USB-audio/20200819-200006
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
config: x86_64-rhel (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
        # save the attached .config to linux build tree
        make W=1 ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   sound/usb/card.c: In function 'usb_audio_probe':
   sound/usb/card.c:666:28: error: stray '\357' in program
     666 |   device_set_wakeup_enable(&dev->dev, 0);
         |                            ^
   sound/usb/card.c:666:29: error: stray '\274' in program
     666 |   device_set_wakeup_enable(&dev->dev, 0);
         |                             ^
   sound/usb/card.c:666:30: error: stray '\206' in program
     666 |   device_set_wakeup_enable(&dev->dev, 0);
         |                              ^
>> sound/usb/card.c:666:34: error: incompatible type for argument 1 of 'device_set_wakeup_enable'
     666 |   device_set_wakeup_enable(&dev->dev, 0);
         |                               ~~~^~~~~
         |                                  |
         |                                  struct device
   In file included from include/linux/device.h:644,
                    from include/linux/usb/ch9.h:36,
                    from include/linux/usb.h:6,
                    from sound/usb/card.c:29:
   include/linux/pm_wakeup.h:108:52: note: expected 'struct device *' but argument is of type 'struct device'
     108 | extern int device_set_wakeup_enable(struct device *dev, bool enable);
         |                                     ~~~~~~~~~~~~~~~^~~

# https://github.com/0day-ci/linux/commit/b49bfa7145277ea86b0487f7fd4e51566477f092
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review penghao/ALSA-usb-audio-Add-prevent-wakeup-from-s3-state-trig-by-Lenovo-ThinkCentre-TI024Gen3-USB-audio/20200819-200006
git checkout b49bfa7145277ea86b0487f7fd4e51566477f092
vim +/device_set_wakeup_enable +666 sound/usb/card.c

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 45509 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state trig by Lenovo ThinkCentre TI024Gen3 USB-audio
@ 2020-08-19 19:35   ` kernel test robot
  0 siblings, 0 replies; 20+ messages in thread
From: kernel test robot @ 2020-08-19 19:35 UTC (permalink / raw)
  To: penghao, perex, tiwai
  Cc: alsa-devel, kbuild-all, penghao, crwulff, gustavoars,
	linux-kernel, alexander, dan.carpenter

[-- Attachment #1: Type: text/plain, Size: 2743 bytes --]

Hi penghao,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on sound/for-next]
[also build test ERROR on v5.9-rc1 next-20200819]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/penghao/ALSA-usb-audio-Add-prevent-wakeup-from-s3-state-trig-by-Lenovo-ThinkCentre-TI024Gen3-USB-audio/20200819-200006
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
config: x86_64-rhel (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
        # save the attached .config to linux build tree
        make W=1 ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   sound/usb/card.c: In function 'usb_audio_probe':
   sound/usb/card.c:666:28: error: stray '\357' in program
     666 |   device_set_wakeup_enable(&dev->dev, 0);
         |                            ^
   sound/usb/card.c:666:29: error: stray '\274' in program
     666 |   device_set_wakeup_enable(&dev->dev, 0);
         |                             ^
   sound/usb/card.c:666:30: error: stray '\206' in program
     666 |   device_set_wakeup_enable(&dev->dev, 0);
         |                              ^
>> sound/usb/card.c:666:34: error: incompatible type for argument 1 of 'device_set_wakeup_enable'
     666 |   device_set_wakeup_enable(&dev->dev, 0);
         |                               ~~~^~~~~
         |                                  |
         |                                  struct device
   In file included from include/linux/device.h:644,
                    from include/linux/usb/ch9.h:36,
                    from include/linux/usb.h:6,
                    from sound/usb/card.c:29:
   include/linux/pm_wakeup.h:108:52: note: expected 'struct device *' but argument is of type 'struct device'
     108 | extern int device_set_wakeup_enable(struct device *dev, bool enable);
         |                                     ~~~~~~~~~~~~~~~^~~

# https://github.com/0day-ci/linux/commit/b49bfa7145277ea86b0487f7fd4e51566477f092
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review penghao/ALSA-usb-audio-Add-prevent-wakeup-from-s3-state-trig-by-Lenovo-ThinkCentre-TI024Gen3-USB-audio/20200819-200006
git checkout b49bfa7145277ea86b0487f7fd4e51566477f092
vim +/device_set_wakeup_enable +666 sound/usb/card.c

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 45509 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state trig by Lenovo ThinkCentre TI024Gen3 USB-audio
@ 2020-08-19 19:35   ` kernel test robot
  0 siblings, 0 replies; 20+ messages in thread
From: kernel test robot @ 2020-08-19 19:35 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2800 bytes --]

Hi penghao,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on sound/for-next]
[also build test ERROR on v5.9-rc1 next-20200819]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/penghao/ALSA-usb-audio-Add-prevent-wakeup-from-s3-state-trig-by-Lenovo-ThinkCentre-TI024Gen3-USB-audio/20200819-200006
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
config: x86_64-rhel (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
        # save the attached .config to linux build tree
        make W=1 ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   sound/usb/card.c: In function 'usb_audio_probe':
   sound/usb/card.c:666:28: error: stray '\357' in program
     666 |   device_set_wakeup_enable(&dev->dev, 0);
         |                            ^
   sound/usb/card.c:666:29: error: stray '\274' in program
     666 |   device_set_wakeup_enable(&dev->dev, 0);
         |                             ^
   sound/usb/card.c:666:30: error: stray '\206' in program
     666 |   device_set_wakeup_enable(&dev->dev, 0);
         |                              ^
>> sound/usb/card.c:666:34: error: incompatible type for argument 1 of 'device_set_wakeup_enable'
     666 |   device_set_wakeup_enable(&dev->dev, 0);
         |                               ~~~^~~~~
         |                                  |
         |                                  struct device
   In file included from include/linux/device.h:644,
                    from include/linux/usb/ch9.h:36,
                    from include/linux/usb.h:6,
                    from sound/usb/card.c:29:
   include/linux/pm_wakeup.h:108:52: note: expected 'struct device *' but argument is of type 'struct device'
     108 | extern int device_set_wakeup_enable(struct device *dev, bool enable);
         |                                     ~~~~~~~~~~~~~~~^~~

# https://github.com/0day-ci/linux/commit/b49bfa7145277ea86b0487f7fd4e51566477f092
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review penghao/ALSA-usb-audio-Add-prevent-wakeup-from-s3-state-trig-by-Lenovo-ThinkCentre-TI024Gen3-USB-audio/20200819-200006
git checkout b49bfa7145277ea86b0487f7fd4e51566477f092
vim +/device_set_wakeup_enable +666 sound/usb/card.c

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 45509 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state trig by Lenovo ThinkCentre TI024Gen3 USB-audio
  2020-08-19 11:57 ` penghao
  (?)
@ 2020-08-19 19:47   ` kernel test robot
  -1 siblings, 0 replies; 20+ messages in thread
From: kernel test robot @ 2020-08-19 19:47 UTC (permalink / raw)
  To: penghao, perex, tiwai
  Cc: kbuild-all, alexander, dan.carpenter, crwulff, penghao,
	gustavoars, alsa-devel, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1636 bytes --]

Hi penghao,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on sound/for-next]
[also build test ERROR on v5.9-rc1 next-20200819]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/penghao/ALSA-usb-audio-Add-prevent-wakeup-from-s3-state-trig-by-Lenovo-ThinkCentre-TI024Gen3-USB-audio/20200819-200006
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):


# https://github.com/0day-ci/linux/commit/b49bfa7145277ea86b0487f7fd4e51566477f092
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review penghao/ALSA-usb-audio-Add-prevent-wakeup-from-s3-state-trig-by-Lenovo-ThinkCentre-TI024Gen3-USB-audio/20200819-200006
git checkout b49bfa7145277ea86b0487f7fd4e51566477f092
vim +/357 +666 sound/usb/card.c

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 57351 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state trig by Lenovo ThinkCentre TI024Gen3 USB-audio
@ 2020-08-19 19:47   ` kernel test robot
  0 siblings, 0 replies; 20+ messages in thread
From: kernel test robot @ 2020-08-19 19:47 UTC (permalink / raw)
  To: penghao, perex, tiwai
  Cc: alsa-devel, kbuild-all, penghao, crwulff, gustavoars,
	linux-kernel, alexander, dan.carpenter

[-- Attachment #1: Type: text/plain, Size: 1636 bytes --]

Hi penghao,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on sound/for-next]
[also build test ERROR on v5.9-rc1 next-20200819]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/penghao/ALSA-usb-audio-Add-prevent-wakeup-from-s3-state-trig-by-Lenovo-ThinkCentre-TI024Gen3-USB-audio/20200819-200006
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):


# https://github.com/0day-ci/linux/commit/b49bfa7145277ea86b0487f7fd4e51566477f092
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review penghao/ALSA-usb-audio-Add-prevent-wakeup-from-s3-state-trig-by-Lenovo-ThinkCentre-TI024Gen3-USB-audio/20200819-200006
git checkout b49bfa7145277ea86b0487f7fd4e51566477f092
vim +/357 +666 sound/usb/card.c

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 57351 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state trig by Lenovo ThinkCentre TI024Gen3 USB-audio
@ 2020-08-19 19:47   ` kernel test robot
  0 siblings, 0 replies; 20+ messages in thread
From: kernel test robot @ 2020-08-19 19:47 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1673 bytes --]

Hi penghao,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on sound/for-next]
[also build test ERROR on v5.9-rc1 next-20200819]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/penghao/ALSA-usb-audio-Add-prevent-wakeup-from-s3-state-trig-by-Lenovo-ThinkCentre-TI024Gen3-USB-audio/20200819-200006
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):


# https://github.com/0day-ci/linux/commit/b49bfa7145277ea86b0487f7fd4e51566477f092
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review penghao/ALSA-usb-audio-Add-prevent-wakeup-from-s3-state-trig-by-Lenovo-ThinkCentre-TI024Gen3-USB-audio/20200819-200006
git checkout b49bfa7145277ea86b0487f7fd4e51566477f092
vim +/357 +666 sound/usb/card.c

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 57351 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state trig by Lenovo ThinkCentre TI024Gen3 USB-audio
  2020-08-19 18:10     ` Kai-Heng Feng
@ 2020-08-20  1:42       ` Hui Wang
  -1 siblings, 0 replies; 20+ messages in thread
From: Hui Wang @ 2020-08-20  1:42 UTC (permalink / raw)
  To: Kai-Heng Feng, Takashi Iwai
  Cc: penghao, Mark Pearson, Jaroslav Kysela, alexander, dan.carpenter,
	crwulff, gustavoars, moderated list:SOUND, linux-kernel


On 2020/8/20 上午2:10, Kai-Heng Feng wrote:
>
>> On Aug 20, 2020, at 01:18, Takashi Iwai <tiwai@suse.de> 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 <penghao@uniontech.com>
>>> ---
>>> 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

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state trig by Lenovo ThinkCentre TI024Gen3 USB-audio
@ 2020-08-20  1:42       ` Hui Wang
  0 siblings, 0 replies; 20+ messages in thread
From: Hui Wang @ 2020-08-20  1:42 UTC (permalink / raw)
  To: Kai-Heng Feng, Takashi Iwai
  Cc: moderated list:SOUND, penghao, linux-kernel, crwulff, gustavoars,
	alexander, Mark Pearson, dan.carpenter


On 2020/8/20 上午2:10, Kai-Heng Feng wrote:
>
>> On Aug 20, 2020, at 01:18, Takashi Iwai <tiwai@suse.de> 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 <penghao@uniontech.com>
>>> ---
>>> 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

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re:Re: [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state trig byLenovo ThinkCentre TI024Gen3 USB-audio
  2020-08-20  1:42       ` Hui Wang
  (?)
@ 2020-08-20  6:25       ` 彭浩
  -1 siblings, 0 replies; 20+ messages in thread
From: 彭浩 @ 2020-08-20  6:25 UTC (permalink / raw)
  To: Hui Wang , Kai-Heng Feng , Takashi Iwai 
  Cc: moderated list:SOUND , crwulff , linux-kernel , gustavoars ,
	alexander , dan.carpenter ,
	Mark Pearson

   hi Hui Wang

    Lt is Lenovo A630z TIO built-in usb sound card,

   Thanks,

   penghao


   ç»ä¿¡è½¯ä»¶ææ¯æéå¬å¸

   UnionTech Software Technology Co., Ltd. ã

   å®ç½ï¼www.uniontech.comãã

   æ¤çµåé®ä»¶æ¶æ¯ä»ä¾é¢ææ¶ä»¶äººä½¿ç¨ï¼å¶ä¸å¯è½åå«ä¿å¯æç¹æ使ç¨ä¿¡æ¯ãå¦ææ¨
   ä¸æ¯é¢ææ¶ä»¶äººï¼è¯·å¿ä½¿ç¨ãä¼ æãååæå¤å¶æ¤çµåé®ä»¶æä¿¡èµæ¤é®ä»¶éåä»»ä½è
   ¡å¨ãå¦ææ¨è¯¯æ¶äºæ¤é®ä»¶ï¼è¯·ç«å³åå¤é®ä»¶éç¥ç»ä¿¡è½¯ä»¶ææ¯æéå¬å¸å件人ï
   ¼å¹¶å é¤è¯¯æ¶çµåé®ä»¶åå¶ç¸å³é件ãæè°¢éåï¼

   This email message is intended only for the use of the individual or
   entity who/which is the intended recipient and may contain information
   that is privileged or confidential. If you are not the intended
   recipient, you are hereby notified that any use, dissemination,
   distribution or copying of, or taking any action in reliance on, this
   e-mail is strictly prohibited. If you have received this email in
   error, please notify UnionTech Software Technology  immediately by
   replying to this e-mail and immediately delete and discard all copies
   of the e-mail and the attachment thereto (if any). Thank you.



   From: "Hui Wang <hui.wang@canonical.com>"

   To: "Kai-Heng Feng <kai.heng.feng@canonical.com>","Takashi Iwai
   <tiwai@suse.de>"

   CC: "moderated list:SOUND <alsa-devel@alsa-project.org>","penghao
   <penghao@uniontech.com>","linux-kernel
   <linux-kernel@vger.kernel.org>","crwulff
   <crwulff@gmail.com>","gustavoars <gustavoars@kernel.org>","alexander
   <alexander@tsoy.me>","Mark Pearson
   <mpearson@lenovo.com>","dan.carpenter <dan.carpenter@oracle.com>"

   Sent: 2020-08-20 09:42

   Subject: Re: [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state
   trig byLenovo ThinkCentre TI024Gen3 USB-audio

   On 2020/8/20 ä¸å2:10, Kai-Heng Feng wrote:
   >
   >> On Aug 20, 2020, at 01:18, Takashi Iwai <tiwai@suse.de> 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 <penghao@uniontech.com>
   >>> ---
   >>> 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
   [1]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

References

   1. https://bugs.launchpad.net/ubuntu/+source/linux/+filebug,

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state trig by Lenovo ThinkCentre TI024Gen3 USB-audio
@ 2020-08-19  3:34 ` penghao
  0 siblings, 0 replies; 20+ messages in thread
From: penghao @ 2020-08-19  3:34 UTC (permalink / raw)
  To: perex, tiwai
  Cc: alexander, dan.carpenter, crwulff, penghao, gustavoars,
	alsa-devel, linux-kernel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=yes, Size: 833 bytes --]

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 <penghao@uniontech.com>
---
 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);
 
 	/*
 	 * For devices with more than one control interface, we assume the
-- 
2.11.0




^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state trig by Lenovo ThinkCentre TI024Gen3 USB-audio
@ 2020-08-19  3:34 ` penghao
  0 siblings, 0 replies; 20+ messages in thread
From: penghao @ 2020-08-19  3:34 UTC (permalink / raw)
  To: perex, tiwai
  Cc: alsa-devel, penghao, crwulff, gustavoars, linux-kernel,
	alexander, dan.carpenter

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=yes, Size: 833 bytes --]

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 <penghao@uniontech.com>
---
 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);
 
 	/*
 	 * For devices with more than one control interface, we assume the
-- 
2.11.0




^ permalink raw reply related	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2020-08-20  6:26 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-19 11:57 [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state trig by Lenovo ThinkCentre TI024Gen3 USB-audio penghao
2020-08-19 11:57 ` penghao
2020-08-19 17:18 ` Takashi Iwai
2020-08-19 17:18   ` Takashi Iwai
2020-08-19 18:10   ` Kai-Heng Feng
2020-08-19 18:10     ` Kai-Heng Feng
2020-08-20  1:42     ` Hui Wang
2020-08-20  1:42       ` Hui Wang
2020-08-20  6:25       ` Re:Re: [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state trig byLenovo " 彭浩
2020-08-19 17:21 ` [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state trig by Lenovo " kernel test robot
2020-08-19 17:21   ` kernel test robot
2020-08-19 17:21   ` kernel test robot
2020-08-19 19:35 ` kernel test robot
2020-08-19 19:35   ` kernel test robot
2020-08-19 19:35   ` kernel test robot
2020-08-19 19:47 ` kernel test robot
2020-08-19 19:47   ` kernel test robot
2020-08-19 19:47   ` kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2020-08-19  3:34 penghao
2020-08-19  3:34 ` penghao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.