From: Lukasz Majewski <l.majewski@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/4] usb: add 'bcm_udc_otg' support
Date: Mon, 26 Jan 2015 09:38:28 +0100 [thread overview]
Message-ID: <20150126093828.194fa6b2@amdc2363> (raw)
In-Reply-To: <201501241247.08414.marex@denx.de>
Hi Marek,
> On Saturday, January 24, 2015 at 12:48:15 AM, Steve Rae wrote:
> > On 15-01-21 11:05 PM, Marek Vasut wrote:
> > > On Tuesday, January 20, 2015 at 11:42:08 PM, Steve Rae wrote:
> > >> Implement the UDC support for the USB OTG interface.
> > >>
> > >> Signed-off-by: Steve Rae <srae@broadcom.com>
> > >> ---
> > >
> > > General question -- this bcm controller you're adding here isn't
> > > by any chance a DWC2 controller, or is it ? There's already a
> > > driver for DWC2 in drivers/usb/gadget/s3c_udc_otg.c . This driver
> > > should really be properly renamed though ;-/
> > >
> > > If this is not DWC2, do you know what controller this is please ?
> >
> > yes -- it is a DWC2....
> >
> > So, I have had a quick look at the s3c_udc_otg*.c code....
> >
> > First observation is that there is a completely different
> > philosophy in the implementation. For example, the the interrupt
> > handler routine(s), Broadcom is using #defines (sysmap.h which BTW
> > are autogenerated by our Device Team) whereas "S3C" is using a
> > "s3c_usbotg_reg" structure for the 'address' and #defines for the
> > 'data/masks'. I'm not suggesting that one is better than the other,
> > they are just different.
>
> Hi!
>
> The later is accepted by U-Boot as the preferred way, so the s3c is
> doing things right.
>
> > So, how do we proceed?
>
> At this point, the Altera SoCFPGA and Samsung Exynos both use this s3c
> driver to operate the DWC2 core in gadget mode. It should be trivial
> to add support for the boardcom SoC, just follow the Altera example.
>
> I would like to avoid situation where we have two drivers for a single
> IP block.
>
> > - is the ultimate goal to get to a proper gadget driver for DWC2? (I
> > don't really know enough about this yet, so I apologize for these
> > questions....)
>
> Yes, but we already have one to my knowledge.
>
> > - is the "S3C" code a proper 'gadget' driver and/or is it a better
> > starting point to get to a gadget driver?
>
> Yes, and it's thoroughly tested already.
>
> > - I don't have enough time right now to really investigate the
> > existing "S3C" and implement it on our board(s); they are
> > significantly different and it looks like it will take a lot of
> > effort - is there someone (Denx or community) that could assist me?
>
> Sure, just start asking the questions.
>
> > - Could we continue to review this patchset and accept it; then
> > establish a team to provide a "DWC2 gadget" that could be used going
> > forward?
>
> No, unless there's a convincing technical argument that the currently
> mainline DWC2 gadget driver (the s3c one) can absolutelly not be used
> for the broadcom SoC, I want to avoid having two drivers for the same
> IP core in mainline, sorry.
Maybe it is a highest time to think about renaming s3c_* to dwc2_* and
avoid further confusion.
>
> [...]
>
> Sorry, at this point I have to push back a little.
>
> Best regards,
> Marek Vasut
--
Best regards,
Lukasz Majewski
Samsung R&D Institute Poland (SRPOL) | Linux Platform Group
next prev parent reply other threads:[~2015-01-26 8:38 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-20 22:42 [U-Boot] [PATCH 0/4] This series implements fastboot on the "bcm28155_ap" boards Steve Rae
2015-01-20 22:42 ` [U-Boot] [PATCH 1/4] usb: gadget: fastboot: add CONFIG_FASTBOOT_NO_GADGET support Steve Rae
2015-01-20 22:42 ` [U-Boot] [PATCH 2/4] usb: add 'bcm_udc_otg' support Steve Rae
2015-01-22 7:05 ` Marek Vasut
2015-01-23 23:48 ` Steve Rae
2015-01-24 11:47 ` Marek Vasut
2015-01-26 8:38 ` Lukasz Majewski [this message]
2015-01-26 12:12 ` Marek Vasut
2015-01-26 12:31 ` Lukasz Majewski
2015-01-30 22:16 ` Marek Vasut
2015-01-31 13:26 ` Lukasz Majewski
2015-01-31 14:15 ` Marek Vasut
2015-02-01 13:15 ` Lukasz Majewski
2015-02-01 16:21 ` Marek Vasut
2015-01-26 17:44 ` Steve Rae
2015-01-27 23:00 ` Marek Vasut
2015-01-28 19:04 ` Steve Rae
2015-01-30 22:17 ` Marek Vasut
2015-01-20 22:42 ` [U-Boot] [PATCH 3/4] usb: update 'sysmap.h' Steve Rae
2015-01-20 22:42 ` [U-Boot] [PATCH 4/4] usb: fastboot: implement fastboot Steve Rae
2015-01-22 7:00 ` [U-Boot] [PATCH 0/4] This series implements fastboot on the "bcm28155_ap" boards 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=20150126093828.194fa6b2@amdc2363 \
--to=l.majewski@samsung.com \
--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