* [PATCH] i2c: tegra: use clk_disable_unprepare in place of clk_disable @ 2012-06-20 12:56 Laxman Dewangan [not found] ` <1340196960-3002-1-git-send-email-ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> 0 siblings, 1 reply; 8+ messages in thread From: Laxman Dewangan @ 2012-06-20 12:56 UTC (permalink / raw) To: khali-PUYAD+kWke1g9hUCZPvPmw, w.sang-bIcnvbaLZ9MEGnE8C9+IrQ, swarren-DDmLM1+adcrQT0dZR+AlfA Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, pgaikwad-DDmLM1+adcrQT0dZR+AlfA, Laxman Dewangan Use clk_disable_unprepare() inplace of clk_disable(). This was missed as part of moving clock enable/disable to prepare/unprepare for using the common clock framework. Signed-off-by: Laxman Dewangan <ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> --- drivers/i2c/busses/i2c-tegra.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c index 00cdc10..d071cf0 100644 --- a/drivers/i2c/busses/i2c-tegra.c +++ b/drivers/i2c/busses/i2c-tegra.c @@ -696,7 +696,7 @@ static int __devinit tegra_i2c_probe(struct platform_device *pdev) ret = i2c_add_numbered_adapter(&i2c_dev->adapter); if (ret) { dev_err(&pdev->dev, "Failed to add I2C adapter\n"); - clk_disable(i2c_dev->i2c_clk); + clk_disable_unprepare(i2c_dev->i2c_clk); return ret; } -- 1.7.1.1 ^ permalink raw reply related [flat|nested] 8+ messages in thread
[parent not found: <1340196960-3002-1-git-send-email-ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH] i2c: tegra: use clk_disable_unprepare in place of clk_disable [not found] ` <1340196960-3002-1-git-send-email-ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> @ 2012-06-20 16:26 ` Stephen Warren [not found] ` <4FE1F9A0.6080200-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> 0 siblings, 1 reply; 8+ messages in thread From: Stephen Warren @ 2012-06-20 16:26 UTC (permalink / raw) To: Laxman Dewangan Cc: khali-PUYAD+kWke1g9hUCZPvPmw, w.sang-bIcnvbaLZ9MEGnE8C9+IrQ, swarren-DDmLM1+adcrQT0dZR+AlfA, linux-i2c-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, pgaikwad-DDmLM1+adcrQT0dZR+AlfA On 06/20/2012 06:56 AM, Laxman Dewangan wrote: > Use clk_disable_unprepare() inplace of clk_disable(). > This was missed as part of moving clock enable/disable to > prepare/unprepare for using the common clock framework. Wolfram, Since I've taken the other I2C patch on this topic through the Tegra tree (in order to satisfy any common clock dependencies there), I believe I should take this one patch through the Tegra tree too. I see no reason not to take the second patch in the series through the I2C tree though. Do you agree? ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <4FE1F9A0.6080200-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>]
* Re: [PATCH] i2c: tegra: use clk_disable_unprepare in place of clk_disable [not found] ` <4FE1F9A0.6080200-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> @ 2012-06-20 16:27 ` Stephen Warren 2012-06-25 9:46 ` Laxman Dewangan 0 siblings, 1 reply; 8+ messages in thread From: Stephen Warren @ 2012-06-20 16:27 UTC (permalink / raw) To: Laxman Dewangan Cc: khali-PUYAD+kWke1g9hUCZPvPmw, w.sang-bIcnvbaLZ9MEGnE8C9+IrQ, swarren-DDmLM1+adcrQT0dZR+AlfA, linux-i2c-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, pgaikwad-DDmLM1+adcrQT0dZR+AlfA On 06/20/2012 10:26 AM, Stephen Warren wrote: > On 06/20/2012 06:56 AM, Laxman Dewangan wrote: >> Use clk_disable_unprepare() inplace of clk_disable(). >> This was missed as part of moving clock enable/disable to >> prepare/unprepare for using the common clock framework. ... > I see no reason not to take the second patch in the series through the > I2C tree though. Uggh. Ignore that paragraph - the other patch was sent separately not as a series. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] i2c: tegra: use clk_disable_unprepare in place of clk_disable 2012-06-20 16:27 ` Stephen Warren @ 2012-06-25 9:46 ` Laxman Dewangan [not found] ` <4FE83374.6090608-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> 0 siblings, 1 reply; 8+ messages in thread From: Laxman Dewangan @ 2012-06-25 9:46 UTC (permalink / raw) To: Stephen Warren Cc: khali@linux-fr.org, w.sang@pengutronix.de, Stephen Warren, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Prashant Gaikwad Stephen, On Wednesday 20 June 2012 09:57 PM, Stephen Warren wrote: > On 06/20/2012 10:26 AM, Stephen Warren wrote: >> On 06/20/2012 06:56 AM, Laxman Dewangan wrote: >>> Use clk_disable_unprepare() inplace of clk_disable(). >>> This was missed as part of moving clock enable/disable to >>> prepare/unprepare for using the common clock framework. > ... >> I see no reason not to take the second patch in the series through the >> I2C tree though. > Uggh. Ignore that paragraph - the other patch was sent separately not as > a series. so are you taking care of this patch or do I need to send the patch based on your tree in place of linux-next? ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <4FE83374.6090608-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH] i2c: tegra: use clk_disable_unprepare in place of clk_disable [not found] ` <4FE83374.6090608-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> @ 2012-06-25 15:55 ` Stephen Warren [not found] ` <4FE889D6.4030500-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> 0 siblings, 1 reply; 8+ messages in thread From: Stephen Warren @ 2012-06-25 15:55 UTC (permalink / raw) To: Laxman Dewangan Cc: khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org, w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org, Stephen Warren, linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Prashant Gaikwad On 06/25/2012 03:46 AM, Laxman Dewangan wrote: > Stephen, > > On Wednesday 20 June 2012 09:57 PM, Stephen Warren wrote: >> On 06/20/2012 10:26 AM, Stephen Warren wrote: >>> On 06/20/2012 06:56 AM, Laxman Dewangan wrote: >>>> Use clk_disable_unprepare() inplace of clk_disable(). >>>> This was missed as part of moving clock enable/disable to >>>> prepare/unprepare for using the common clock framework. >> ... >>> I see no reason not to take the second patch in the series through the >>> I2C tree though. >> Uggh. Ignore that paragraph - the other patch was sent separately not as >> a series. > > so are you taking care of this patch or do I need to send the patch > based on your tree in place of linux-next? Yes, this patch should be applied through the Tegra tree, since it will be a dependency of the common clock framework switchover there, which I hope to take place this kernel cycle. I did just attempt to apply this patch to the for-3.6/common-clk branch, but it doesn't apply:-( Could you please rebase and resend. Thanks. ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <4FE889D6.4030500-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>]
* Re: [PATCH] i2c: tegra: use clk_disable_unprepare in place of clk_disable [not found] ` <4FE889D6.4030500-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> @ 2012-06-26 6:27 ` Laxman Dewangan [not found] ` <4FE9564C.4010502-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> 0 siblings, 1 reply; 8+ messages in thread From: Laxman Dewangan @ 2012-06-26 6:27 UTC (permalink / raw) To: Stephen Warren Cc: khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org, w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org, Stephen Warren, linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Prashant Gaikwad On Monday 25 June 2012 09:25 PM, Stephen Warren wrote: > On 06/25/2012 03:46 AM, Laxman Dewangan wrote: >> Stephen, >> >> On Wednesday 20 June 2012 09:57 PM, Stephen Warren wrote: >>> On 06/20/2012 10:26 AM, Stephen Warren wrote: >>>> On 06/20/2012 06:56 AM, Laxman Dewangan wrote: >>>>> Use clk_disable_unprepare() inplace of clk_disable(). >>>>> This was missed as part of moving clock enable/disable to >>>>> prepare/unprepare for using the common clock framework. >>> ... >>>> I see no reason not to take the second patch in the series through the >>>> I2C tree though. >>> Uggh. Ignore that paragraph - the other patch was sent separately not as >>> a series. >> so are you taking care of this patch or do I need to send the patch >> based on your tree in place of linux-next? > Yes, this patch should be applied through the Tegra tree, since it will > be a dependency of the common clock framework switchover there, which I > hope to take place this kernel cycle. > > I did just attempt to apply this patch to the for-3.6/common-clk branch, > but it doesn't apply:-( Could you please rebase and resend. Thanks. Looked at your common_clk branch and the related code is not there. The clk_disable() in the particular case is introduced by change i2c: tegra: make all resource allocation through devm_* which is not in your branch. Then later Prashant post the change as i2c: tegra: Add clk_prepare/clk_unprepare and it does not accounted for the above patch. So none of your local tree will have this issue. You need to pull some of the change from Wofram's tree to you commn-clk to fix the issue. Suggest to pull the change i2c: tegra: make all resource allocation through devm_* i2c: tegra: support for I2C_M_NOSTART functionality i2c: tegra: add PROTOCOL_MANGLING as supported functionality. i2c: tegra: make sure register writes completes ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <4FE9564C.4010502-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH] i2c: tegra: use clk_disable_unprepare in place of clk_disable [not found] ` <4FE9564C.4010502-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> @ 2012-06-26 16:28 ` Stephen Warren 2012-06-27 15:59 ` Laxman Dewangan 0 siblings, 1 reply; 8+ messages in thread From: Stephen Warren @ 2012-06-26 16:28 UTC (permalink / raw) To: Laxman Dewangan, w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org Cc: khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org, Stephen Warren, linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Prashant Gaikwad On 06/26/2012 12:27 AM, Laxman Dewangan wrote: > On Monday 25 June 2012 09:25 PM, Stephen Warren wrote: >> On 06/25/2012 03:46 AM, Laxman Dewangan wrote: >>> Stephen, >>> >>> On Wednesday 20 June 2012 09:57 PM, Stephen Warren wrote: >>>> On 06/20/2012 10:26 AM, Stephen Warren wrote: >>>>> On 06/20/2012 06:56 AM, Laxman Dewangan wrote: >>>>>> Use clk_disable_unprepare() inplace of clk_disable(). >>>>>> This was missed as part of moving clock enable/disable to >>>>>> prepare/unprepare for using the common clock framework. >>>> ... >>>>> I see no reason not to take the second patch in the series through the >>>>> I2C tree though. >>>> Uggh. Ignore that paragraph - the other patch was sent separately >>>> not as >>>> a series. >>> so are you taking care of this patch or do I need to send the patch >>> based on your tree in place of linux-next? >> Yes, this patch should be applied through the Tegra tree, since it will >> be a dependency of the common clock framework switchover there, which I >> hope to take place this kernel cycle. >> >> I did just attempt to apply this patch to the for-3.6/common-clk branch, >> but it doesn't apply:-( Could you please rebase and resend. Thanks. > > Looked at your common_clk branch and the related code is not there. > The clk_disable() in the particular case is introduced by change > i2c: tegra: make all resource allocation through devm_* > which is not in your branch. > > Then later Prashant post the change as > i2c: tegra: Add clk_prepare/clk_unprepare > and it does not accounted for the above patch. > > So none of your local tree will have this issue. OK. In that case, it's best if this patch goes through the I2C tree since that's where the code is that it's modifying. This might not be optimal for runtime git bisection depending on the order Linus ends up merging things, but it's probably as good as we can do without inter-twining the I2C and Tegra trees a lot. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] i2c: tegra: use clk_disable_unprepare in place of clk_disable 2012-06-26 16:28 ` Stephen Warren @ 2012-06-27 15:59 ` Laxman Dewangan 0 siblings, 0 replies; 8+ messages in thread From: Laxman Dewangan @ 2012-06-27 15:59 UTC (permalink / raw) To: Stephen Warren Cc: w.sang@pengutronix.de, khali@linux-fr.org, Stephen Warren, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Prashant Gaikwad On Tuesday 26 June 2012 09:58 PM, Stephen Warren wrote: > On 06/26/2012 12:27 AM, Laxman Dewangan wrote: >> On Monday 25 June 2012 09:25 PM, Stephen Warren wrote: >>> On 06/25/2012 03:46 AM, Laxman Dewangan wrote: >>>> Stephen, >>>> >>>> On Wednesday 20 June 2012 09:57 PM, Stephen Warren wrote: >>>>> On 06/20/2012 10:26 AM, Stephen Warren wrote: >>>>>> On 06/20/2012 06:56 AM, Laxman Dewangan wrote: >>>>>>> Use clk_disable_unprepare() inplace of clk_disable(). >>>>>>> This was missed as part of moving clock enable/disable to >>>>>>> prepare/unprepare for using the common clock framework. >>>>> ... >>>>>> I see no reason not to take the second patch in the series through the >>>>>> I2C tree though. >>>>> Uggh. Ignore that paragraph - the other patch was sent separately >>>>> not as >>>>> a series. >>>> so are you taking care of this patch or do I need to send the patch >>>> based on your tree in place of linux-next? >>> Yes, this patch should be applied through the Tegra tree, since it will >>> be a dependency of the common clock framework switchover there, which I >>> hope to take place this kernel cycle. >>> >>> I did just attempt to apply this patch to the for-3.6/common-clk branch, >>> but it doesn't apply:-( Could you please rebase and resend. Thanks. >> Looked at your common_clk branch and the related code is not there. >> The clk_disable() in the particular case is introduced by change >> i2c: tegra: make all resource allocation through devm_* >> which is not in your branch. >> >> Then later Prashant post the change as >> i2c: tegra: Add clk_prepare/clk_unprepare >> and it does not accounted for the above patch. >> >> So none of your local tree will have this issue. > OK. In that case, it's best if this patch goes through the I2C tree > since that's where the code is that it's modifying. This might not be > optimal for runtime git bisection depending on the order Linus ends up > merging things, but it's probably as good as we can do without > inter-twining the I2C and Tegra trees a lot. Then it can go Wolfram's tree along with other patch i2c: tegra: remove unused member variable. as some of previous i2c patches are in his tree. ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-06-27 15:59 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-06-20 12:56 [PATCH] i2c: tegra: use clk_disable_unprepare in place of clk_disable Laxman Dewangan [not found] ` <1340196960-3002-1-git-send-email-ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> 2012-06-20 16:26 ` Stephen Warren [not found] ` <4FE1F9A0.6080200-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> 2012-06-20 16:27 ` Stephen Warren 2012-06-25 9:46 ` Laxman Dewangan [not found] ` <4FE83374.6090608-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> 2012-06-25 15:55 ` Stephen Warren [not found] ` <4FE889D6.4030500-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> 2012-06-26 6:27 ` Laxman Dewangan [not found] ` <4FE9564C.4010502-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> 2012-06-26 16:28 ` Stephen Warren 2012-06-27 15:59 ` Laxman Dewangan
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).