Skip to contentSkip to conversation

linux-next: manual merge of the driver-core tree with the sound-asoc tree

DISCUSSION Stephen Rothwell 3 participants 5 messages Nov 10, 2014 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi Greg,

Today's linux-next merge of the driver-core tree got a conflict in sound/soc/intel/sst-haswell-pcm.c between commit 2e4f75919e5a ("ASoC:
Intel: Add PM support to HSW/BDW PCM driver") from the sound-asoc tree and commit 3c1af8802e45 ("ASoC: intel: drop owner assignment from platform_drivers") from the driver-core tree.

I fixed it up (see below) and can carry the fix as necessary (no action is required).

Signature · 17 lines
Cheers,
Stephen Rothwell                    [email protected]

diff --cc sound/soc/intel/sst-haswell-pcm.c
index 7eb9afc9b33d,ad21e636edc6..000000000000
--- a/sound/soc/intel/sst-haswell-pcm.c
+++ b/sound/soc/intel/sst-haswell-pcm.c
@@@ -1173,9 -899,6 +1173,8 @@@ static const struct dev_pm_ops hsw_pcm_
  static struct platform_driver hsw_pcm_driver = {
  	.driver = {
  		.name = "haswell-pcm-audio",
- 		.owner = THIS_MODULE,
 +		.pm = &hsw_pcm_pm,
 +
  	},
  
  	.probe = hsw_pcm_dev_probe,
#1 lore raw
Quoted 20 lines · Stephen Rothwell

Hi Greg,

Today's linux-next merge of the driver-core tree got a conflict in sound/soc/intel/sst-haswell-pcm.c between commit 2e4f75919e5a ("ASoC:
Intel: Add PM support to HSW/BDW PCM driver") from the sound-asoc tree and commit 3c1af8802e45 ("ASoC: intel: drop owner assignment from platform_drivers") from the driver-core tree.

I fixed it up (see below) and can carry the fix as necessary (no action is required).

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]
sound/soc/intel/sst-haswell-pcm.c +0 -0
diff --cc sound/soc/intel/sst-haswell-pcm.c
index 7eb9afc9b33d,ad21e636edc6..000000000000

sound/soc/intel/sst-haswell-pcm.c

Quoted 9 lines
sound/soc/intel/sst-haswell-pcm.c +0 -1
@@@ -1173,9 -899,6 +1173,8 @@@ static const struct dev_pm_ops hsw_pcm_
  static struct platform_driver hsw_pcm_driver = {
  	.driver = {
  		.name = "haswell-pcm-audio",
- 		.owner = THIS_MODULE,
 +		.pm = &hsw_pcm_pm,
 +
  	},
 
  	.probe = hsw_pcm_dev_probe,

Fix looks good, thanks.

greg k-h

#2 lore raw

Hi Greg,

Quoted 29 lines · On Mon, 10 Nov 2014 13:38:53 +0900 Greg KH <[email protected]> wrote:
Quoted 27 lines · Stephen Rothwell

Today's linux-next merge of the driver-core tree got a conflict in sound/soc/intel/sst-haswell-pcm.c between commit 2e4f75919e5a ("ASoC:
Intel: Add PM support to HSW/BDW PCM driver") from the sound-asoc tree and commit 3c1af8802e45 ("ASoC: intel: drop owner assignment from platform_drivers") from the driver-core tree.

I fixed it up (see below) and can carry the fix as necessary (no action is required).

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]
sound/soc/intel/sst-haswell-pcm.c +0 -1
diff --cc sound/soc/intel/sst-haswell-pcm.c
index 7eb9afc9b33d,ad21e636edc6..000000000000
@@@ -1173,9 -899,6 +1173,8 @@@ static const struct dev_pm_ops hsw_pcm_
  static struct platform_driver hsw_pcm_driver = {
  	.driver = {
  		.name = "haswell-pcm-audio",
- 		.owner = THIS_MODULE,
 +		.pm = &hsw_pcm_pm,
 +
  	},
Quoted 4 lines
Quoted 1 line

.probe = hsw_pcm_dev_probe,

Fix looks good, thanks.

I assume that there was a good reason not to farm these patches out to their respective maintainers?

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]
#3 lore raw
Quoted 32 lines · Stephen Rothwell

Hi Greg,

Quoted 29 lines · On Mon, 10 Nov 2014 13:38:53 +0900 Greg KH <[email protected]> wrote:
Quoted 27 lines · Stephen Rothwell

Today's linux-next merge of the driver-core tree got a conflict in sound/soc/intel/sst-haswell-pcm.c between commit 2e4f75919e5a ("ASoC:
Intel: Add PM support to HSW/BDW PCM driver") from the sound-asoc tree and commit 3c1af8802e45 ("ASoC: intel: drop owner assignment from platform_drivers") from the driver-core tree.

I fixed it up (see below) and can carry the fix as necessary (no action is required).

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]
sound/soc/intel/sst-haswell-pcm.c +0 -1
diff --cc sound/soc/intel/sst-haswell-pcm.c
index 7eb9afc9b33d,ad21e636edc6..000000000000
@@@ -1173,9 -899,6 +1173,8 @@@ static const struct dev_pm_ops hsw_pcm_
  static struct platform_driver hsw_pcm_driver = {
  	.driver = {
  		.name = "haswell-pcm-audio",
- 		.owner = THIS_MODULE,
 +		.pm = &hsw_pcm_pm,
 +
  	},
Quoted 7 lines
Quoted 4 lines
Quoted 1 line

.probe = hsw_pcm_dev_probe,

Fix looks good, thanks.

I assume that there was a good reason not to farm these patches out to their respective maintainers?

Yes, It was easier to hit everything in one tree, at one time, so that is what Wolfram did. Sorry for the merge conflicts, I didn't think anyone would be adding .driver attributes to files after they had been added to the tree.

thanks,

greg k-h

maintainer
#4 lore raw
Quoted 9 lines · Greg KH
Quoted 2 lines · Stephen Rothwell

I assume that there was a good reason not to farm these patches out to their respective maintainers?

Yes, It was easier to hit everything in one tree, at one time, so that is what Wolfram did. Sorry for the merge conflicts, I didn't think anyone would be adding .driver attributes to files after they had been added to the tree.

People are rather more likely to do that if they know that not adding driver attributes is a thing, and that's more likely to happen if you tell people that this change is happening, for example by sending the patches to them. This merge conflict was the first I'd heard of this being something we wanted to do.