linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: hzpeterchen@gmail.com (Peter Chen)
To: linux-arm-kernel@lists.infradead.org
Subject: usb: wrong compatible string for MX23?
Date: Tue, 29 Dec 2015 09:42:04 +0800	[thread overview]
Message-ID: <20151229014203.GB20712@shlinux2> (raw)
In-Reply-To: <671962377.218806.94ae5d1c-a34e-4695-a401-70265736fafb.open-xchange@email.1und1.de>

On Tue, Dec 29, 2015 at 12:45:51AM +0100, Stefan Wahren wrote:
> Hi Peter,
> 
> i was inspired by the discussion about the USB runtime suspend issue on MX28. I
> think i've found another issue.
> In the dtsi for the MX23 the usb node has the following compatible:
> 
> usb0: usb at 80080000 {
>         compatible = "fsl,imx23-usb", "fsl,imx27-usb";
> ...
> 
> But in ci_hdrc_imx.c there is only "fsl,imx27-usb" and "fsl,imx28-usb" defined.
> 
> So in case of a MX23 board it would fallback to "fsl,imx27-usb", which is IMHO
> not correct.

No, it is correct. All i.mx SoC series use the same controller core, and
the first user is imx27, the reason why we have a compatible string for
imx28 is that imx28 needs special handling when write register.

> 
> Which way to fix this issue would you suggest:
> 
> a) extend ci_hdrc_imx.c and the binding by copying the imx28 platform and name
> it imx23
> 
> b) rename the compatible string from "fsl,imx23-usb" to "fsl-imx28-usb"
> 

But one thing we can improve that is imx23 needs the flag
CI_HDRC_TURN_VBUS_EARLY_ON, the platform flag would like below:

static const struct ci_hdrc_imx_platform_flag imx23_usb_data = {
	.flags = CI_HDRC_TURN_VBUS_EARLY_ON |
		CI_HDRC_DISABLE_STREAMING,

I prefer the way a), thanks.

-- 

Best Regards,
Peter Chen

      reply	other threads:[~2015-12-29  1:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-28 23:45 usb: wrong compatible string for MX23? Stefan Wahren
2015-12-29  1:42 ` Peter Chen [this message]

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=20151229014203.GB20712@shlinux2 \
    --to=hzpeterchen@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).