linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: s.hauer@pengutronix.de (Sascha Hauer)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 1/2] USB: chipidea: add imx usbmisc support
Date: Wed, 18 Jul 2012 13:36:46 +0200	[thread overview]
Message-ID: <20120718113646.GH30009@pengutronix.de> (raw)
In-Reply-To: <20120718111916.GL21635@b20223-02.ap.freescale.net>

On Wed, Jul 18, 2012 at 07:19:17PM +0800, Richard Zhao wrote:
> > > +
> > > +struct imx6q_usbmisc {
> > > +	void __iomem *base;
> > > +	struct clk *clk;
> > > +	struct device *usb_dev[USB_DEV_MAX];
> > > +	spinlock_t lock;
> > > +
> > > +	int disable_oc:USB_DEV_MAX;
> > > +};
> > 
> > Please add a per-port struct instead of adding multiple arrays into
> > struct imx6q_usbmisc.
> ok
> 
> > 
> > Also, I think this per port struct shouldn't be imx6q specific. Then
> > we could add generic code parsing the oftree flags into the port
> > specific struct and have SoC specific code which translates this struct
> > into the acual register settings.
> hmm... I thought only ops is generic. The code is SoC specific, I doubt
> do we really need to take the properties as generic?

I think it would be good. They mostly match across the different i.MX
SoCs.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

  reply	other threads:[~2012-07-18 11:36 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-18 10:29 [PATCH v2 0/2] imx: add usbmisc support Richard Zhao
2012-07-18 10:29 ` [PATCH v2 1/2] USB: chipidea: add imx " Richard Zhao
2012-07-18 10:52   ` Sascha Hauer
2012-07-18 11:19     ` Richard Zhao
2012-07-18 11:36       ` Sascha Hauer [this message]
2012-07-18 13:39       ` Richard Zhao
2012-07-18 13:43         ` Marc Kleine-Budde
2012-07-18 13:49           ` Richard Zhao
2012-07-23  9:16   ` Felipe Balbi
2012-07-23  9:27     ` Richard Zhao
2012-07-23  9:30       ` Marc Kleine-Budde
2012-07-23 10:51         ` Felipe Balbi
2012-07-23 11:13           ` Richard Zhao
2012-07-23 11:21             ` Felipe Balbi
2012-07-23 11:45               ` Richard Zhao
2012-07-18 10:29 ` [PATCH v2 2/2] ARM: dts: imx6q-sabrelite: add usbmisc device Richard Zhao
2012-07-18 10:54   ` Sascha Hauer
2012-07-18 11:22     ` Richard Zhao
2012-07-18 15:00   ` Shawn Guo
2012-07-19  2:02     ` Richard Zhao

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=20120718113646.GH30009@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --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).