From: manabian@gmail.com (Joachim Eastwood)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] phy: add lpc18xx usb otg phy driver
Date: Thu, 21 May 2015 16:05:33 +0200 [thread overview]
Message-ID: <CAGhQ9VxB+Onrzr8MfE5Ocb1-5VoF7FLNwZ14_uUCJS2U9D_Lfg@mail.gmail.com> (raw)
In-Reply-To: <555DD5CB.4040805@ti.com>
Hi Kishon,
On 21 May 2015 at 14:55, Kishon Vijay Abraham I <kishon@ti.com> wrote:
> Hi,
>
>
> On Saturday 16 May 2015 10:57 PM, Joachim Eastwood wrote:
>>
>> Add PHY driver for the internal USB OTG PHY found on NXP
>> LPC18xx and LPC43xx devices. This driver takes care of
>> enabling the PHY in CREG (syscon) and setting the required
>> clock frequency.
>>
>> Signed-off-by: Joachim Eastwood <manabian@gmail.com>
>> ---
<snip>
>> +/* USB OTG PHY register offset and bit in CREG */
>> +#define LPC18XX_CREG_CREG0 0x004
>> +# define LPC18XX_CREG_CREG0_USB0PHY BIT(5)
>
>
> don't prefer a space between # and define. Not a strong feeling though.
Okey, I'll remove it.
>> +
>> + phy_provider = devm_of_phy_provider_register(&pdev->dev,
>> + of_phy_simple_xlate);
>> + if (IS_ERR(phy_provider))
>> + return PTR_ERR(phy_provider);
>> +
>> + return 0;
>
>
> replace it with return PTR_ERR_OR_ZERO(phy_provider);
Okey.
Thanks for the review, Kishon.
I'll send a updated version later today.
regards,
Joachim Eastwood
next prev parent reply other threads:[~2015-05-21 14:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-16 17:27 [PATCH 0/2] USB OTG PHY driver for NXP LPC18xx family Joachim Eastwood
2015-05-16 17:27 ` [PATCH 1/2] phy: add lpc18xx usb otg phy driver Joachim Eastwood
2015-05-21 12:55 ` Kishon Vijay Abraham I
2015-05-21 14:05 ` Joachim Eastwood [this message]
2015-05-16 17:27 ` [PATCH 2/2] doc: dt: add documentation for nxp,lpc1850-usb-otg-phy Joachim Eastwood
2015-05-21 12:59 ` [PATCH 2/2] doc: dt: add documentation for nxp, lpc1850-usb-otg-phy Kishon Vijay Abraham I
2015-05-21 14:09 ` Joachim Eastwood
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAGhQ9VxB+Onrzr8MfE5Ocb1-5VoF7FLNwZ14_uUCJS2U9D_Lfg@mail.gmail.com \
--to=manabian@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).