[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5318A3C8.2020903@mm-sol.com>
Date: Thu, 06 Mar 2014 18:35:20 +0200
From: "Ivan T. Ivanov" <iivanov@...sol.com>
To: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>,
Felipe Balbi <balbi@...com>
CC: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-msm@...r.kernel.org
Subject: Re: [PATCH v5 10/14] usb: phy: msm: Use reset framework for LINK
and PHY resets
On 03/05/14 14:34, Sergei Shtylyov wrote:
> Hello.
>
>> --- a/drivers/usb/phy/phy-msm-usb.c
>> +++ b/drivers/usb/phy/phy-msm-usb.c
> [...]
>> @@ -235,12 +236,16 @@ static void ulpi_init(struct msm_otg *motg)
>>
>> static int msm_otg_link_clk_reset(struct msm_otg *motg, bool assert)
>> {
>> - int ret = 0;
>> + int ret;
>>
>> - if (!motg->pdata->link_clk_reset)
>> - return ret;
>> + if (motg->pdata->link_clk_reset)
>> + ret = motg->pdata->link_clk_reset(motg->clk, assert);
>> + else
>> + if (assert)
>
> Kernel style assumes:
>
> else if (assert)
Thanks. will fix it.
Regards,
Ivan
>
>> + ret = reset_control_assert(motg->link_rst);
>> + else
>> + ret = reset_control_deassert(motg->link_rst);
>>
> [...]
>
> WBR, Sergei
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists