2012-10-01 17:42:52

by Fabio Estevam

[permalink] [raw]
Subject: Re: [PATCH v2 1/3] w1: mxc_w1: Adapt the clock name to the new clock framework

Evgeny,

Any comments, please?


Fabio Estevam wrote:
> With the new i.mx clock framework the mxc_w1 clock is registered as:
>
> clk_register_clkdev(clk[owire_gate], NULL, "mxc_w1.0"
>
> So we do not need to pass "owire" string and can use NULL instead.
>
> While at it, also fix the clock error handling code.
>
> Signed-off-by: Fabio Estevam <[email protected]>
> -----
> Changes since v1:
> - Fix clock error handling
> drivers/w1/masters/mxc_w1.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/w1/masters/mxc_w1.c b/drivers/w1/masters/mxc_w1.c
> index 1cc61a7..960b362 100644
> --- a/drivers/w1/masters/mxc_w1.c
> +++ b/drivers/w1/masters/mxc_w1.c
> @@ -117,11 +117,11 @@ static int __devinit mxc_w1_probe(struct platform_device *pdev)
> if (!mdev)
> return -ENOMEM;
>
> - mdev->clk = clk_get(&pdev->dev, "owire");
> - if (!mdev->clk) {
> - err = -ENODEV;
> - goto failed_clk;
> - }
> + mdev->clk = clk_get(&pdev->dev, NULL);
> + if (IS_ERR(mdev->clk)) {
> + err = PTR_ERR(mdev->clk);
> + goto failed_clk;
> + }
>
> mdev->clkdiv = (clk_get_rate(mdev->clk) / 1000000) - 1;
>


2012-10-02 05:32:28

by Evgeniy Polyakov

[permalink] [raw]
Subject: Re: [PATCH v2 1/3] w1: mxc_w1: Adapt the clock name to the new clock framework

On Mon, Oct 01, 2012 at 02:51:44PM -0300, Fabio Estevam ([email protected]) wrote:
> Evgeny,
>
> Any comments, please?

I have no objections per se, but I'm hardly an expert in imx clock
framework :)

Since it is only one patch in set of 3, I suppose it will be pushed
through different tree than w1. Feel free to add my ack.

Acked-by: Evgeniy Polyakov <[email protected]>

--
Evgeniy Polyakov

2012-10-03 01:04:20

by Fabio Estevam

[permalink] [raw]
Subject: Re: [PATCH v2 1/3] w1: mxc_w1: Adapt the clock name to the new clock framework

Sascha,

On Tue, Oct 2, 2012 at 2:32 AM, Evgeniy Polyakov <[email protected]> wrote:
> On Mon, Oct 01, 2012 at 02:51:44PM -0300, Fabio Estevam ([email protected]) wrote:
>> Evgeny,
>>
>> Any comments, please?
>
> I have no objections per se, but I'm hardly an expert in imx clock
> framework :)
>
> Since it is only one patch in set of 3, I suppose it will be pushed
> through different tree than w1. Feel free to add my ack.
>
> Acked-by: Evgeniy Polyakov <[email protected]>

Could this series go via your tree?

Regards,

Fabio Estevam

2012-10-03 07:28:19

by Evgeniy Polyakov

[permalink] [raw]
Subject: Re: [PATCH v2 1/3] w1: mxc_w1: Adapt the clock name to the new clock framework

On Tue, Oct 02, 2012 at 10:04:19PM -0300, Fabio Estevam ([email protected]) wrote:
> > I have no objections per se, but I'm hardly an expert in imx clock
> > framework :)
> >
> > Since it is only one patch in set of 3, I suppose it will be pushed
> > through different tree than w1. Feel free to add my ack.
> >
> > Acked-by: Evgeniy Polyakov <[email protected]>
>
> Could this series go via your tree?

Please send it to Greg (added to CC), but I would like someone who knows
this platform (and not only w1 bits, which look good) to acknowledge changes,
feel free to add mine.

--
Evgeniy Polyakov

2012-11-19 01:56:15

by Fabio Estevam

[permalink] [raw]
Subject: Re: [PATCH v2 1/3] w1: mxc_w1: Adapt the clock name to the new clock framework

Hi Sascha,

On Wed, Oct 3, 2012 at 4:28 AM, Evgeniy Polyakov <[email protected]> wrote:
> On Tue, Oct 02, 2012 at 10:04:19PM -0300, Fabio Estevam ([email protected]) wrote:
>> > I have no objections per se, but I'm hardly an expert in imx clock
>> > framework :)
>> >
>> > Since it is only one patch in set of 3, I suppose it will be pushed
>> > through different tree than w1. Feel free to add my ack.
>> >
>> > Acked-by: Evgeniy Polyakov <[email protected]>
>>
>> Could this series go via your tree?
>
> Please send it to Greg (added to CC), but I would like someone who knows
> this platform (and not only w1 bits, which look good) to acknowledge changes,
> feel free to add mine.

Could you please ack this series?

Greg,

Should I re-send the patches with Evgeniy and Sascha's acks?

Thanks,

Fabio Estevam

2012-11-19 02:17:35

by Greg KH

[permalink] [raw]
Subject: Re: [PATCH v2 1/3] w1: mxc_w1: Adapt the clock name to the new clock framework

On Sun, Nov 18, 2012 at 11:56:13PM -0200, Fabio Estevam wrote:
> Hi Sascha,
>
> On Wed, Oct 3, 2012 at 4:28 AM, Evgeniy Polyakov <[email protected]> wrote:
> > On Tue, Oct 02, 2012 at 10:04:19PM -0300, Fabio Estevam ([email protected]) wrote:
> >> > I have no objections per se, but I'm hardly an expert in imx clock
> >> > framework :)
> >> >
> >> > Since it is only one patch in set of 3, I suppose it will be pushed
> >> > through different tree than w1. Feel free to add my ack.
> >> >
> >> > Acked-by: Evgeniy Polyakov <[email protected]>
> >>
> >> Could this series go via your tree?
> >
> > Please send it to Greg (added to CC), but I would like someone who knows
> > this platform (and not only w1 bits, which look good) to acknowledge changes,
> > feel free to add mine.
>
> Could you please ack this series?
>
> Greg,
>
> Should I re-send the patches with Evgeniy and Sascha's acks?

Please do so, so that I can apply them to my tree.

thanks,

greg k-h