All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Chen <peter.chen@freescale.com>
To: Felipe Balbi <balbi@ti.com>
Cc: r58472@freescale.com, gregkh@linuxfoundation.org,
	linux-usb@vger.kernel.org, Marc Kleine-Budde <mkl@pengutronix.de>,
	kernel@pengutronix.de, shawn.guo@linaro.org,
	linuxppc-dev@lists.ozlabs.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v3 1/3] usb: fsl-mxc-udc: replace cpu_is_xxx() with platform_device_id
Date: Tue, 15 Jan 2013 09:31:31 +0800	[thread overview]
Message-ID: <20130115013130.GA16514@nchen-desktop> (raw)
In-Reply-To: <20130114175724.GD12611@arwen.pp.htv.fi>

On Mon, Jan 14, 2013 at 07:57:24PM +0200, Felipe Balbi wrote:
> On Mon, Jan 14, 2013 at 06:54:22PM +0100, Marc Kleine-Budde wrote:
> > On 01/14/2013 06:40 PM, Felipe Balbi wrote:
> > > Hi,
> > >=20
> > > On Mon, Jan 14, 2013 at 08:56:33PM +0800, Peter Chen wrote:
> > >=20
> > > <snip>
> > >=20
> > >>>> Usually there isn't any Changelog between IP cores used in the d=
ifferent
> > >>>> fsl processors (at least available outside of fsl), that makes i=
t quite
> > >>>> difficult to say if something found on one imx is really the sam=
e as on
> > >>>> the other one. And they (usually) don't provide any versioning
> > >>>> information in a register or the documentation.
> > >>>>
> > >>>> just my 2=A2
> > >>>
> > >>> $SUBJECT is trying to differentiate a single feature (or maybe tw=
o) to
> > >>> replace cpu_is_xxx(), then expose that on driver_data without cre=
ating
> > >>> one enum value for each release from fsl.
> > >>
> > >> Felipe, every one or two SoCs may have their special operations fo=
r
> > >> integrate PHY interface, clk operation, or workaround for IC
> > >> limitation.
> > >=20
> > > the particular PHY and clk used should be hidden by phy layer and c=
lk
> > > API respectively. Workarounds, fair enough, we need to handle them;=
 but
> > > ideally those should be based on runtime revision detection, not so=
me
> > > hackery using driver_data.
> >=20
> > If this is actually possible, I'd love to do this. But IP vendor don'=
t
> > include a version register in their cores. :(
>=20
> then fair enough, driver_data or platform_data is the way to go, still
> my point (a) below is valid.
I will send v5 patch with your suggestion.

>=20
> --=20
> balbi



--=20

Best Regards,
Peter Chen

WARNING: multiple messages have this Message-ID (diff)
From: peter.chen@freescale.com (Peter Chen)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 1/3] usb: fsl-mxc-udc: replace cpu_is_xxx() with platform_device_id
Date: Tue, 15 Jan 2013 09:31:31 +0800	[thread overview]
Message-ID: <20130115013130.GA16514@nchen-desktop> (raw)
In-Reply-To: <20130114175724.GD12611@arwen.pp.htv.fi>

On Mon, Jan 14, 2013 at 07:57:24PM +0200, Felipe Balbi wrote:
> On Mon, Jan 14, 2013 at 06:54:22PM +0100, Marc Kleine-Budde wrote:
> > On 01/14/2013 06:40 PM, Felipe Balbi wrote:
> > > Hi,
> > > 
> > > On Mon, Jan 14, 2013 at 08:56:33PM +0800, Peter Chen wrote:
> > > 
> > > <snip>
> > > 
> > >>>> Usually there isn't any Changelog between IP cores used in the different
> > >>>> fsl processors (at least available outside of fsl), that makes it quite
> > >>>> difficult to say if something found on one imx is really the same as on
> > >>>> the other one. And they (usually) don't provide any versioning
> > >>>> information in a register or the documentation.
> > >>>>
> > >>>> just my 2?
> > >>>
> > >>> $SUBJECT is trying to differentiate a single feature (or maybe two) to
> > >>> replace cpu_is_xxx(), then expose that on driver_data without creating
> > >>> one enum value for each release from fsl.
> > >>
> > >> Felipe, every one or two SoCs may have their special operations for
> > >> integrate PHY interface, clk operation, or workaround for IC
> > >> limitation.
> > > 
> > > the particular PHY and clk used should be hidden by phy layer and clk
> > > API respectively. Workarounds, fair enough, we need to handle them; but
> > > ideally those should be based on runtime revision detection, not some
> > > hackery using driver_data.
> > 
> > If this is actually possible, I'd love to do this. But IP vendor don't
> > include a version register in their cores. :(
> 
> then fair enough, driver_data or platform_data is the way to go, still
> my point (a) below is valid.
I will send v5 patch with your suggestion.

> 
> -- 
> balbi



-- 

Best Regards,
Peter Chen

  reply	other threads:[~2013-01-15  1:31 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-14 10:12 [PATCH v3 0/3] Fix the Build error for fsl_mxc_udc.c Peter Chen
2013-01-14 10:12 ` Peter Chen
2013-01-14 10:12 ` [PATCH v3 1/3] usb: fsl-mxc-udc: replace cpu_is_xxx() with platform_device_id Peter Chen
2013-01-14 10:12   ` Peter Chen
2013-01-14 10:16   ` Felipe Balbi
2013-01-14 10:16     ` Felipe Balbi
2013-01-14 10:18     ` Marc Kleine-Budde
2013-01-14 10:18       ` Marc Kleine-Budde
2013-01-14 10:24       ` Felipe Balbi
2013-01-14 10:24         ` Felipe Balbi
2013-01-14 10:34         ` Marc Kleine-Budde
2013-01-14 10:34           ` Marc Kleine-Budde
2013-01-14 10:39           ` Felipe Balbi
2013-01-14 10:39             ` Felipe Balbi
2013-01-14 10:50             ` Marc Kleine-Budde
2013-01-14 10:50               ` Marc Kleine-Budde
2013-01-14 10:53               ` Felipe Balbi
2013-01-14 10:53                 ` Felipe Balbi
2013-01-14 11:03                 ` Marc Kleine-Budde
2013-01-14 11:03                   ` Marc Kleine-Budde
2013-01-14 11:06                   ` Felipe Balbi
2013-01-14 11:06                     ` Felipe Balbi
2013-01-14 12:56                     ` Peter Chen
2013-01-14 12:56                       ` Peter Chen
2013-01-14 17:40                       ` Felipe Balbi
2013-01-14 17:40                         ` Felipe Balbi
2013-01-14 17:54                         ` Marc Kleine-Budde
2013-01-14 17:54                           ` Marc Kleine-Budde
2013-01-14 17:57                           ` Felipe Balbi
2013-01-14 17:57                             ` Felipe Balbi
2013-01-15  1:31                             ` Peter Chen [this message]
2013-01-15  1:31                               ` Peter Chen
2013-01-14 10:12 ` [PATCH v3 2/3] usb: fsl_mxc_udc: replace MX35_IO_ADDRESS to ioremap Peter Chen
2013-01-14 10:12   ` Peter Chen
2013-01-14 10:17   ` Felipe Balbi
2013-01-14 10:17     ` Felipe Balbi
2013-01-14 12:58     ` Peter Chen
2013-01-14 12:58       ` Peter Chen
2013-01-14 13:10   ` Russell King - ARM Linux
2013-01-14 13:10     ` Russell King - ARM Linux
2013-01-14 13:16     ` Peter Chen
2013-01-14 13:16       ` Peter Chen
2013-01-14 10:12 ` [PATCH v3 3/3] ARM: i.MX clock: Change the connection-id for fsl-usb2-udc Peter Chen
2013-01-14 10:12   ` Peter Chen

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=20130115013130.GA16514@nchen-desktop \
    --to=peter.chen@freescale.com \
    --cc=balbi@ti.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=kernel@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=mkl@pengutronix.de \
    --cc=r58472@freescale.com \
    --cc=shawn.guo@linaro.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.