From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/3] usb:ehci-mx6 add board_ehci_usb_mode function
Date: Fri, 7 Nov 2014 09:26:32 +0100 [thread overview]
Message-ID: <201411070926.32964.marex@denx.de> (raw)
In-Reply-To: <545C1C04.7090108@freescale.com>
On Friday, November 07, 2014 at 02:10:28 AM, Peng Fan wrote:
[...]
> >> In board/freescale/mx6sxsabresd/mx6sxsabresd.c:
> >> 295 int board_usb_phy_mode(int port)
> >> 296 {
> >> 297 void __iomem *phy_reg;
> >> 298 void __iomem *phy_ctrl;
> >> 299 u32 val;
> >> 300
> >> 301 switch (port) {
> >> 302 case 0:
> >> 303 phy_reg = (void __iomem *)USB_PHY0_BASE_ADDR;
> >> 304 phy_ctrl = (void __iomem *)(phy_reg + USBPHY_CTRL);
> >> 305 val = __raw_readl(phy_ctrl);
> >> 306 return val & USBPHY_CTRL_OTG_ID;
> >> 307 case 1:
> >> 308 /* Work in HOST mode. */
> >> 309 return 0;
> >> 310 }
> >> 311
> >> 312 /* suppress warning msg */
> >> 313 return 0;
> >> 314 }
> >>
> >> Is this piece of code fine?
> >
> > These ad-hoc hooks are starting to become absolute horror, but I guess
> > this one (if properly documented) might just work. Let's see what will
> > come out of this approach.
>
> Sent out v3 patch set just now. Please review.
Done, there're only minor comments.
Thanks!
Best regards,
Marek Vasut
next prev parent reply other threads:[~2014-11-07 8:26 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-04 7:49 [U-Boot] [PATCH v2 0/3] imx:mx6 add usb support Peng Fan
2014-11-04 7:50 ` [U-Boot] [PATCH v2 1/3] usb:ehci-mx6 add board_ehci_usb_mode function Peng Fan
2014-11-04 10:33 ` Marek Vasut
2014-11-04 10:50 ` Peng Fan
2014-11-04 11:01 ` Marek Vasut
2014-11-04 13:29 ` Peng Fan
2014-11-04 17:33 ` Marek Vasut
2014-11-05 6:00 ` Peng Fan
2014-11-05 9:03 ` Marek Vasut
2014-11-05 9:18 ` Peng Fan
2014-11-06 20:20 ` Marek Vasut
2014-11-07 1:10 ` Peng Fan
2014-11-07 8:26 ` Marek Vasut [this message]
2014-11-04 11:40 ` Jeroen Hofstee
2014-11-04 13:36 ` Peng Fan
2014-11-04 19:39 ` Jeroen Hofstee
2014-11-04 7:50 ` [U-Boot] [PATCH v2 2/3] imx:mx6sxsabresd add usb support Peng Fan
2014-11-04 7:50 ` [U-Boot] [PATCH v2 3/3] imx:mx6slevk " Peng Fan
2014-11-04 10:31 ` [U-Boot] [PATCH v2 0/3] imx:mx6 " Marek Vasut
2014-11-04 12:05 ` Peng Fan
2014-11-04 12:08 ` Marek Vasut
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=201411070926.32964.marex@denx.de \
--to=marex@denx.de \
--cc=u-boot@lists.denx.de \
/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