linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: manual merge of the opp tree with the cpufreq-arm tree
@ 2019-02-07  0:47 Stephen Rothwell
  2019-02-07  4:36 ` Viresh Kumar
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Rothwell @ 2019-02-07  0:47 UTC (permalink / raw)
  To: Viresh Kumar
  Cc: Linux Next Mailing List, Linux Kernel Mailing List,
	Matthias Kaehlcke, Taniya Das

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

Hi Viresh,

Today's linux-next merge of the opp tree got a conflict in:

  drivers/cpufreq/qcom-cpufreq-hw.c

between commit:

  5471b2c9bd08 ("cpufreq: qcom: Read voltage LUT and populate OPP")

from the cpufreq-arm tree and commit:

  597457d7e054 ("cpufreq: qcom-hw: Register an Energy Model")

from the opp tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

-- 
Cheers,
Stephen Rothwell

diff --cc drivers/cpufreq/qcom-cpufreq-hw.c
index 15f31e8c09c2,a16b9dca7ea3..000000000000
--- a/drivers/cpufreq/qcom-cpufreq-hw.c
+++ b/drivers/cpufreq/qcom-cpufreq-hw.c
@@@ -224,13 -205,8 +224,15 @@@ static int qcom_cpufreq_hw_cpu_init(str
  		goto error;
  	}
  
 +	ret = dev_pm_opp_get_opp_count(cpu_dev);
 +	if (ret <= 0) {
 +		dev_err(cpu_dev, "Failed to add OPPs\n");
 +		ret = -ENODEV;
 +		goto error;
 +	}
 +
+ 	dev_pm_opp_of_register_em(policy->cpus);
+ 
  	policy->fast_switch_possible = true;
  
  	return 0;

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: linux-next: manual merge of the opp tree with the cpufreq-arm tree
  2019-02-07  0:47 linux-next: manual merge of the opp tree with the cpufreq-arm tree Stephen Rothwell
@ 2019-02-07  4:36 ` Viresh Kumar
  0 siblings, 0 replies; 2+ messages in thread
From: Viresh Kumar @ 2019-02-07  4:36 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Linux Next Mailing List, Linux Kernel Mailing List,
	Matthias Kaehlcke, Taniya Das

On 07-02-19, 11:47, Stephen Rothwell wrote:
> Hi Viresh,
> 
> Today's linux-next merge of the opp tree got a conflict in:
> 
>   drivers/cpufreq/qcom-cpufreq-hw.c
> 
> between commit:
> 
>   5471b2c9bd08 ("cpufreq: qcom: Read voltage LUT and populate OPP")
> 
> from the cpufreq-arm tree and commit:
> 
>   597457d7e054 ("cpufreq: qcom-hw: Register an Energy Model")
> 
> from the opp tree.
> 
> I fixed it up (see below) and can carry the fix as necessary. This
> is now fixed as far as linux-next is concerned, but any non trivial
> conflicts should be mentioned to your upstream maintainer when your tree
> is submitted for merging.  You may also want to consider cooperating
> with the maintainer of the conflicting tree to minimise any particularly
> complex conflicts.
> 
> -- 
> Cheers,
> Stephen Rothwell
> 
> diff --cc drivers/cpufreq/qcom-cpufreq-hw.c
> index 15f31e8c09c2,a16b9dca7ea3..000000000000
> --- a/drivers/cpufreq/qcom-cpufreq-hw.c
> +++ b/drivers/cpufreq/qcom-cpufreq-hw.c
> @@@ -224,13 -205,8 +224,15 @@@ static int qcom_cpufreq_hw_cpu_init(str
>   		goto error;
>   	}
>   
>  +	ret = dev_pm_opp_get_opp_count(cpu_dev);
>  +	if (ret <= 0) {
>  +		dev_err(cpu_dev, "Failed to add OPPs\n");
>  +		ret = -ENODEV;
>  +		goto error;
>  +	}
>  +
> + 	dev_pm_opp_of_register_em(policy->cpus);
> + 
>   	policy->fast_switch_possible = true;
>   
>   	return 0;

Thanks, I have taken care of it now. You shouldn't see it anymore.

-- 
viresh

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

end of thread, other threads:[~2019-02-07  4:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-07  0:47 linux-next: manual merge of the opp tree with the cpufreq-arm tree Stephen Rothwell
2019-02-07  4:36 ` Viresh Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).