All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] ASoC: Intel: Skylake: Disable async suspend
@ 2016-06-22 14:14 Vinod Koul
  2016-06-22 14:14 ` [PATCH v2 1/4] ASoC: Intel: Revert "ASoC: Intel: Add support for PM ops in bxt-rt298" Vinod Koul
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Vinod Koul @ 2016-06-22 14:14 UTC (permalink / raw)
  To: alsa-devel; +Cc: liam.r.girdwood, patches.audio, broonie, Vinod Koul

Skylake does not support async suspend, so mark it and update the machine
driver. Also revert older machine patch which worked around this by using
pm.complete.

Also update a style inconsistency while at it.

Vinod Koul (4):
  ASoC: Intel: Revert "ASoC: Intel: Add support for PM ops in bxt-rt298"
  ASoC: Intel: Skylake: Disable async suspend
  ASoC: Intel: Skylake: Add pm ops for broxton-rt298 machine
  ASoC: Intel: Skylake: Update comment style

 sound/soc/intel/boards/bxt_rt298.c | 24 +-----------------------
 sound/soc/intel/skylake/skl.c      |  4 +++-
 2 files changed, 4 insertions(+), 24 deletions(-)

Thanks
-- 
1.9.1

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

* [PATCH v2 1/4] ASoC: Intel: Revert "ASoC: Intel: Add support for PM ops in bxt-rt298"
  2016-06-22 14:14 [PATCH v2 0/4] ASoC: Intel: Skylake: Disable async suspend Vinod Koul
@ 2016-06-22 14:14 ` Vinod Koul
  2016-06-22 15:28   ` Applied "ASoC: Intel: Revert "ASoC: Intel: Add support for PM ops in bxt-rt298"" to the asoc tree Mark Brown
  2016-06-22 14:14 ` [PATCH v2 2/4] ASoC: Intel: Skylake: Disable async suspend Vinod Koul
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 9+ messages in thread
From: Vinod Koul @ 2016-06-22 14:14 UTC (permalink / raw)
  To: alsa-devel; +Cc: liam.r.girdwood, patches.audio, broonie, Vinod Koul

This reverts commit 3513798ca4bc ("ASoC: Intel: Add support for
PM ops in bxt-rt298") as the right way to fix this is to disable
async suspend

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
---
 sound/soc/intel/boards/bxt_rt298.c | 23 -----------------------
 1 file changed, 23 deletions(-)

diff --git a/sound/soc/intel/boards/bxt_rt298.c b/sound/soc/intel/boards/bxt_rt298.c
index 2ef33b113bb5..8b956500414b 100644
--- a/sound/soc/intel/boards/bxt_rt298.c
+++ b/sound/soc/intel/boards/bxt_rt298.c
@@ -454,33 +454,10 @@ static int broxton_audio_probe(struct platform_device *pdev)
 	return devm_snd_soc_register_card(&pdev->dev, &broxton_rt298);
 }
 
-/*
- * we want the card to be suspend first and then platform driver. This
- * allows the DAPM to tear down pipelines on suspend and then platform shuts
- * down the DSP. For this use .prepare for suspending card
- *
- * Similarly, use complete to let DSP download firmware first and then sync
- * DAPM and restore pipelines to DSP
- */
-static void broxton_rt298_complete(struct device *dev)
-{
-	snd_soc_resume(dev);
-}
-
-static const struct dev_pm_ops broxton_pm_ops = {
-	.prepare = snd_soc_suspend,
-	.complete = broxton_rt298_complete,
-	.freeze = snd_soc_suspend,
-	.thaw = snd_soc_resume,
-	.poweroff = snd_soc_poweroff,
-	.restore = snd_soc_resume,
-};
-
 static struct platform_driver broxton_audio = {
 	.probe = broxton_audio_probe,
 	.driver = {
 		.name = "bxt_alc298s_i2s",
-		.pm = &broxton_pm_ops,
 	},
 };
 module_platform_driver(broxton_audio)
-- 
1.9.1

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

* [PATCH v2 2/4] ASoC: Intel: Skylake: Disable async suspend
  2016-06-22 14:14 [PATCH v2 0/4] ASoC: Intel: Skylake: Disable async suspend Vinod Koul
  2016-06-22 14:14 ` [PATCH v2 1/4] ASoC: Intel: Revert "ASoC: Intel: Add support for PM ops in bxt-rt298" Vinod Koul
@ 2016-06-22 14:14 ` Vinod Koul
  2016-06-22 15:28   ` Applied "ASoC: Intel: Skylake: Disable async suspend" to the asoc tree Mark Brown
  2016-06-22 14:14 ` [PATCH v2 3/4] ASoC: Intel: Skylake: Add pm ops for broxton-rt298 machine Vinod Koul
  2016-06-22 14:14 ` [PATCH v2 4/4] ASoC: Intel: Skylake: Update comment style Vinod Koul
  3 siblings, 1 reply; 9+ messages in thread
From: Vinod Koul @ 2016-06-22 14:14 UTC (permalink / raw)
  To: alsa-devel; +Cc: liam.r.girdwood, patches.audio, broonie, Vinod Koul

We do not support async suspend due to dependency with rest of
card and require suspend/resume be executed synchronously, mark
the device accordingly.

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
---
 sound/soc/intel/skylake/skl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sound/soc/intel/skylake/skl.c b/sound/soc/intel/skylake/skl.c
index 734072c79205..720efb9fd995 100644
--- a/sound/soc/intel/skylake/skl.c
+++ b/sound/soc/intel/skylake/skl.c
@@ -668,6 +668,8 @@ static int skl_probe(struct pci_dev *pci,
 
 	skl->pci_id = pci->device;
 
+	device_disable_async_suspend(bus->dev);
+
 	skl->nhlt = skl_nhlt_init(bus->dev);
 
 	if (skl->nhlt == NULL)
-- 
1.9.1

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

* [PATCH v2 3/4] ASoC: Intel: Skylake: Add pm ops for broxton-rt298 machine
  2016-06-22 14:14 [PATCH v2 0/4] ASoC: Intel: Skylake: Disable async suspend Vinod Koul
  2016-06-22 14:14 ` [PATCH v2 1/4] ASoC: Intel: Revert "ASoC: Intel: Add support for PM ops in bxt-rt298" Vinod Koul
  2016-06-22 14:14 ` [PATCH v2 2/4] ASoC: Intel: Skylake: Disable async suspend Vinod Koul
@ 2016-06-22 14:14 ` Vinod Koul
  2016-06-22 15:28   ` Applied "ASoC: Intel: Skylake: Add pm ops for broxton-rt298 machine" to the asoc tree Mark Brown
  2016-06-22 14:14 ` [PATCH v2 4/4] ASoC: Intel: Skylake: Update comment style Vinod Koul
  3 siblings, 1 reply; 9+ messages in thread
From: Vinod Koul @ 2016-06-22 14:14 UTC (permalink / raw)
  To: alsa-devel; +Cc: liam.r.girdwood, patches.audio, broonie, Vinod Koul

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
---
 sound/soc/intel/boards/bxt_rt298.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/intel/boards/bxt_rt298.c b/sound/soc/intel/boards/bxt_rt298.c
index 8b956500414b..253d7bfbf511 100644
--- a/sound/soc/intel/boards/bxt_rt298.c
+++ b/sound/soc/intel/boards/bxt_rt298.c
@@ -458,6 +458,7 @@ static struct platform_driver broxton_audio = {
 	.probe = broxton_audio_probe,
 	.driver = {
 		.name = "bxt_alc298s_i2s",
+		.pm = &snd_soc_pm_ops,
 	},
 };
 module_platform_driver(broxton_audio)
-- 
1.9.1

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

* [PATCH v2 4/4] ASoC: Intel: Skylake: Update comment style
  2016-06-22 14:14 [PATCH v2 0/4] ASoC: Intel: Skylake: Disable async suspend Vinod Koul
                   ` (2 preceding siblings ...)
  2016-06-22 14:14 ` [PATCH v2 3/4] ASoC: Intel: Skylake: Add pm ops for broxton-rt298 machine Vinod Koul
@ 2016-06-22 14:14 ` Vinod Koul
  2016-06-22 15:28   ` Applied "ASoC: Intel: Skylake: Update comment style" to the asoc tree Mark Brown
  3 siblings, 1 reply; 9+ messages in thread
From: Vinod Koul @ 2016-06-22 14:14 UTC (permalink / raw)
  To: alsa-devel; +Cc: liam.r.girdwood, patches.audio, broonie, Vinod Koul

Noticed a style inconsistency in a comment, so update that

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
---
 sound/soc/intel/skylake/skl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/intel/skylake/skl.c b/sound/soc/intel/skylake/skl.c
index 720efb9fd995..d5d7c53e07bc 100644
--- a/sound/soc/intel/skylake/skl.c
+++ b/sound/soc/intel/skylake/skl.c
@@ -728,7 +728,7 @@ static int skl_probe(struct pci_dev *pci,
 	list_for_each_entry(hlink, &ebus->hlink_list, list)
 		snd_hdac_ext_bus_link_put(ebus, hlink);
 
-	/*configure PM */
+	/* configure PM */
 	pm_runtime_put_noidle(bus->dev);
 	pm_runtime_allow(bus->dev);
 
-- 
1.9.1

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

* Applied "ASoC: Intel: Skylake: Update comment style" to the asoc tree
  2016-06-22 14:14 ` [PATCH v2 4/4] ASoC: Intel: Skylake: Update comment style Vinod Koul
@ 2016-06-22 15:28   ` Mark Brown
  0 siblings, 0 replies; 9+ messages in thread
From: Mark Brown @ 2016-06-22 15:28 UTC (permalink / raw)
  To: Vinod Koul; +Cc: liam.r.girdwood, patches.audio, alsa-devel, broonie

The patch

   ASoC: Intel: Skylake: Update comment style

has been applied to the asoc tree at

   git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From 957427d94a82459b080a99cc7e9f4d5b8c067410 Mon Sep 17 00:00:00 2001
From: Vinod Koul <vinod.koul@intel.com>
Date: Wed, 22 Jun 2016 19:44:21 +0530
Subject: [PATCH] ASoC: Intel: Skylake: Update comment style

Noticed a style inconsistency in a comment, so update that

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/intel/skylake/skl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/intel/skylake/skl.c b/sound/soc/intel/skylake/skl.c
index 720efb9fd995..d5d7c53e07bc 100644
--- a/sound/soc/intel/skylake/skl.c
+++ b/sound/soc/intel/skylake/skl.c
@@ -728,7 +728,7 @@ static int skl_probe(struct pci_dev *pci,
 	list_for_each_entry(hlink, &ebus->hlink_list, list)
 		snd_hdac_ext_bus_link_put(ebus, hlink);
 
-	/*configure PM */
+	/* configure PM */
 	pm_runtime_put_noidle(bus->dev);
 	pm_runtime_allow(bus->dev);
 
-- 
2.8.1

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

* Applied "ASoC: Intel: Skylake: Add pm ops for broxton-rt298 machine" to the asoc tree
  2016-06-22 14:14 ` [PATCH v2 3/4] ASoC: Intel: Skylake: Add pm ops for broxton-rt298 machine Vinod Koul
@ 2016-06-22 15:28   ` Mark Brown
  0 siblings, 0 replies; 9+ messages in thread
From: Mark Brown @ 2016-06-22 15:28 UTC (permalink / raw)
  To: Vinod Koul; +Cc: liam.r.girdwood, patches.audio, alsa-devel, broonie

The patch

   ASoC: Intel: Skylake: Add pm ops for broxton-rt298 machine

has been applied to the asoc tree at

   git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From f749a78a5433bb571d2c39f4cec8bb08307fa0e9 Mon Sep 17 00:00:00 2001
From: Vinod Koul <vinod.koul@intel.com>
Date: Wed, 22 Jun 2016 19:44:20 +0530
Subject: [PATCH] ASoC: Intel: Skylake: Add pm ops for broxton-rt298 machine

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/intel/boards/bxt_rt298.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/intel/boards/bxt_rt298.c b/sound/soc/intel/boards/bxt_rt298.c
index 8b956500414b..253d7bfbf511 100644
--- a/sound/soc/intel/boards/bxt_rt298.c
+++ b/sound/soc/intel/boards/bxt_rt298.c
@@ -458,6 +458,7 @@ static struct platform_driver broxton_audio = {
 	.probe = broxton_audio_probe,
 	.driver = {
 		.name = "bxt_alc298s_i2s",
+		.pm = &snd_soc_pm_ops,
 	},
 };
 module_platform_driver(broxton_audio)
-- 
2.8.1

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

* Applied "ASoC: Intel: Skylake: Disable async suspend" to the asoc tree
  2016-06-22 14:14 ` [PATCH v2 2/4] ASoC: Intel: Skylake: Disable async suspend Vinod Koul
@ 2016-06-22 15:28   ` Mark Brown
  0 siblings, 0 replies; 9+ messages in thread
From: Mark Brown @ 2016-06-22 15:28 UTC (permalink / raw)
  To: Vinod Koul; +Cc: liam.r.girdwood, patches.audio, alsa-devel, broonie

The patch

   ASoC: Intel: Skylake: Disable async suspend

has been applied to the asoc tree at

   git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From 2e9dc2b645f72dcd528edbad7e35fa34d7204020 Mon Sep 17 00:00:00 2001
From: Vinod Koul <vinod.koul@intel.com>
Date: Wed, 22 Jun 2016 19:44:19 +0530
Subject: [PATCH] ASoC: Intel: Skylake: Disable async suspend

We do not support async suspend due to dependency with rest of
card and require suspend/resume be executed synchronously, mark
the device accordingly.

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/intel/skylake/skl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sound/soc/intel/skylake/skl.c b/sound/soc/intel/skylake/skl.c
index 734072c79205..720efb9fd995 100644
--- a/sound/soc/intel/skylake/skl.c
+++ b/sound/soc/intel/skylake/skl.c
@@ -668,6 +668,8 @@ static int skl_probe(struct pci_dev *pci,
 
 	skl->pci_id = pci->device;
 
+	device_disable_async_suspend(bus->dev);
+
 	skl->nhlt = skl_nhlt_init(bus->dev);
 
 	if (skl->nhlt == NULL)
-- 
2.8.1

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

* Applied "ASoC: Intel: Revert "ASoC: Intel: Add support for PM ops in bxt-rt298"" to the asoc tree
  2016-06-22 14:14 ` [PATCH v2 1/4] ASoC: Intel: Revert "ASoC: Intel: Add support for PM ops in bxt-rt298" Vinod Koul
@ 2016-06-22 15:28   ` Mark Brown
  0 siblings, 0 replies; 9+ messages in thread
From: Mark Brown @ 2016-06-22 15:28 UTC (permalink / raw)
  To: Vinod Koul; +Cc: liam.r.girdwood, patches.audio, alsa-devel, broonie

The patch

   ASoC: Intel: Revert "ASoC: Intel: Add support for PM ops in bxt-rt298"

has been applied to the asoc tree at

   git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From 45a9e0753153907b1a5141377295daf5483805b7 Mon Sep 17 00:00:00 2001
From: Vinod Koul <vinod.koul@intel.com>
Date: Wed, 22 Jun 2016 19:44:18 +0530
Subject: [PATCH] ASoC: Intel: Revert "ASoC: Intel: Add support for PM ops in
 bxt-rt298"

This reverts commit 3513798ca4bc ("ASoC: Intel: Add support for
PM ops in bxt-rt298") as the right way to fix this is to disable
async suspend

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/intel/boards/bxt_rt298.c | 23 -----------------------
 1 file changed, 23 deletions(-)

diff --git a/sound/soc/intel/boards/bxt_rt298.c b/sound/soc/intel/boards/bxt_rt298.c
index 2ef33b113bb5..8b956500414b 100644
--- a/sound/soc/intel/boards/bxt_rt298.c
+++ b/sound/soc/intel/boards/bxt_rt298.c
@@ -454,33 +454,10 @@ static int broxton_audio_probe(struct platform_device *pdev)
 	return devm_snd_soc_register_card(&pdev->dev, &broxton_rt298);
 }
 
-/*
- * we want the card to be suspend first and then platform driver. This
- * allows the DAPM to tear down pipelines on suspend and then platform shuts
- * down the DSP. For this use .prepare for suspending card
- *
- * Similarly, use complete to let DSP download firmware first and then sync
- * DAPM and restore pipelines to DSP
- */
-static void broxton_rt298_complete(struct device *dev)
-{
-	snd_soc_resume(dev);
-}
-
-static const struct dev_pm_ops broxton_pm_ops = {
-	.prepare = snd_soc_suspend,
-	.complete = broxton_rt298_complete,
-	.freeze = snd_soc_suspend,
-	.thaw = snd_soc_resume,
-	.poweroff = snd_soc_poweroff,
-	.restore = snd_soc_resume,
-};
-
 static struct platform_driver broxton_audio = {
 	.probe = broxton_audio_probe,
 	.driver = {
 		.name = "bxt_alc298s_i2s",
-		.pm = &broxton_pm_ops,
 	},
 };
 module_platform_driver(broxton_audio)
-- 
2.8.1

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

end of thread, other threads:[~2016-06-22 15:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-22 14:14 [PATCH v2 0/4] ASoC: Intel: Skylake: Disable async suspend Vinod Koul
2016-06-22 14:14 ` [PATCH v2 1/4] ASoC: Intel: Revert "ASoC: Intel: Add support for PM ops in bxt-rt298" Vinod Koul
2016-06-22 15:28   ` Applied "ASoC: Intel: Revert "ASoC: Intel: Add support for PM ops in bxt-rt298"" to the asoc tree Mark Brown
2016-06-22 14:14 ` [PATCH v2 2/4] ASoC: Intel: Skylake: Disable async suspend Vinod Koul
2016-06-22 15:28   ` Applied "ASoC: Intel: Skylake: Disable async suspend" to the asoc tree Mark Brown
2016-06-22 14:14 ` [PATCH v2 3/4] ASoC: Intel: Skylake: Add pm ops for broxton-rt298 machine Vinod Koul
2016-06-22 15:28   ` Applied "ASoC: Intel: Skylake: Add pm ops for broxton-rt298 machine" to the asoc tree Mark Brown
2016-06-22 14:14 ` [PATCH v2 4/4] ASoC: Intel: Skylake: Update comment style Vinod Koul
2016-06-22 15:28   ` Applied "ASoC: Intel: Skylake: Update comment style" to the asoc tree Mark Brown

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.