public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Igor Grinberg <grinberg@compulab.co.il>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/4] ehci-omap: Clean up added ehci-omap.c
Date: Wed, 25 Jan 2012 15:40:46 +0200	[thread overview]
Message-ID: <4F20065E.90808@compulab.co.il> (raw)
In-Reply-To: <CAAL8m4x9CjqSMUjpqF_nyAvL8Z+c_bhf+jozF_KNUBXx-U4kzw@mail.gmail.com>

Hi Govindraj,

On 01/25/12 11:04, Govindraj wrote:
> Hi Igor,
> 
> On Sun, Jan 22, 2012 at 5:50 PM, Igor Grinberg <grinberg@compulab.co.il> wrote:
>> On 01/19/12 10:15, Govindraj wrote:
>>> On Wed, Jan 18, 2012 at 11:21 PM, Igor Grinberg <grinberg@compulab.co.il> wrote:
>>>> Hi Govindraj,
>>>>
>>>> On 01/17/12 08:10, Govindraj wrote:
>>>>>

[...]

>>>> and add an ability to pass some kind of private data to the viewport, which
>>>> in case of OMAP will be the port number.
> 
> 
> I started on adding omap-ulpi-viewport.c which will work with ulpi.c
> if omap_ehci.c is used.

Good! Thanks for working on that.

> 
> for port id can we just set a global data field that will inform the
> omap_view port
> on the port id, or we have to modify most api's syntax in
> "drivers/usb/ulpi/ulpi.c"

IMO, we should modify the API, because it does not make sense
to use the generic layer, but workaround some missing feature...

My suggestion for the change is:
1) introduce some kind of
struct ulpi_viewport {
	u32 viewport_addr;
	uint portnum;
}

2) use the above struct _instead_ of the "u32 ulpi_viewport" parameter

Another way, would be instead of uint portnum, use void *private_data,
but I think it will just complicate things too much and there will be no
real benefit (and also will add, otherwise needless, castings).
If the above structure will not be enough for some platform,
it can be extended easily and without changing the API anymore.

-- 
Regards,
Igor.

  reply	other threads:[~2012-01-25 13:40 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-06  9:03 [U-Boot] [PATCH v2 0/4] Clean up ehci-omap and extend support for omap3/4 socs Govindraj.R
2012-01-06  9:03 ` [U-Boot] [PATCH v2 1/4] ehci-omap: Clean up added ehci-omap.c Govindraj.R
2012-01-10 16:07   ` Marek Vasut
2012-01-11  6:07     ` Govindraj
2012-01-11 10:52       ` Marek Vasut
2012-01-11 11:32         ` Govindraj
2012-01-11 12:46           ` Marek Vasut
2012-01-11 13:00             ` Govindraj
2012-01-11 13:28               ` Marek Vasut
2012-01-11 14:13                 ` Govindraj
2012-01-11 14:34                   ` Marek Vasut
2012-01-11 15:03                     ` Igor Grinberg
2012-01-11 18:50                       ` Marek Vasut
2012-01-12  5:45                       ` Govindraj
2012-01-12  9:23                         ` Igor Grinberg
2012-01-12 10:52                           ` Govindraj
2012-01-17  6:10                             ` Govindraj
2012-01-18 17:51                               ` Igor Grinberg
2012-01-19  8:15                                 ` Govindraj
2012-01-22 12:20                                   ` Igor Grinberg
2012-01-25  9:04                                     ` Govindraj
2012-01-25 13:40                                       ` Igor Grinberg [this message]
2012-01-27 13:29                                         ` Govindraj
2012-01-29  9:42                                           ` Igor Grinberg
2012-01-29 11:42                                             ` Stefano Babic
2012-02-01 11:01                                               ` Igor Grinberg
2012-02-01 11:26                                                 ` Stefano Babic
2012-02-01 13:22                                                   ` Igor Grinberg
2012-02-03 12:52                                               ` Govindraj
2012-02-03 12:50                                             ` Govindraj
2012-02-03 13:18                                               ` Igor Grinberg
2012-01-17 18:17                             ` Igor Grinberg
2012-01-06  9:03 ` [U-Boot] [PATCH v2 2/4] OMAP3+: Clock: Adding ehci clock enabling Govindraj.R
2012-01-06  9:04 ` [U-Boot] [PATCH v2 3/4] OMAP4: clock-common: Move the usb dppl configuration to new func Govindraj.R
2012-01-06  9:04 ` [U-Boot] [PATCH v2 4/4] OMAP3+: ehci-omap: enable usb host ports for beagle/panda Govindraj.R
2012-02-26 23:13 ` [U-Boot] [PATCH v2 0/4] Clean up ehci-omap and extend support for omap3/4 socs Marek Vasut
2012-02-27  6:27   ` Govindraj
2012-02-27 13:51     ` Marek Vasut
2012-02-27 14:31       ` Tom Rini
2012-02-27 16:29         ` 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=4F20065E.90808@compulab.co.il \
    --to=grinberg@compulab.co.il \
    --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