public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Lukasz Majewski <lukma@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] DM for ci_udc
Date: Mon, 6 May 2019 14:17:54 +0200	[thread overview]
Message-ID: <20190506141754.56a0da9f@jawa> (raw)
In-Reply-To: <7b2fa1cd-1905-e71c-ecf8-24d84750a5da@denx.de>

Hi Sven, Marek, Jean-Jacques,

> On 5/6/19 12:12 PM, Sven Schwermer wrote:
> > Hi,
> > 
> > I’m running into linking issues when enabling CONFIG_DM_USB_GADGET
> > with CONFIG_CI_UDC because dm_usb_gadget_handle_interrupts is not
> > available. That made me look into what’s required to port ci_udc to
> > driver model. I have a few conceptual questions about this:
> > 
> > 1. Some other USB gadget drivers (dwc3-generic, ti-musb) seem to
> > create a wrapper driver that binds either the gadget or the
> > host-mode driver to the USB device, depending on the configured
> > mode. Is this the desired approach?

I think that we shall follow the already in-tree pattern.
Jean-Jacques Hiblot (CC'ed) did a great job on porting / developing
this code (moreover there is a u-boot command - bind/unbind which allows
binding usb devices)

> > 
> > 2. I’m working with a i.MX6 (7) device so the host-mode driver is
> > ehci-mx6, but I’ve seen that ci_udc is also used with other
> > host-mode drivers. How would a wrapper work in this case where
> > there are multiple possible host-mode drivers but one gadget driver?
> > 

As fair as I understood the "bind/unbind" command would allow you to do
it [1]. Jean-Jacques am I right here ?

> > 3. Any tips and hints are welcome :)  

I can offer myself as a tester for imx6q (as I do have a few of them
queued for the DM/DTS conversion).

> 
> +CC Lukasz, UDC is his stuff.
> 

Note:
[1] - https://lists.denx.de/pipermail/u-boot/2018-June/333105.html


Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190506/5717df60/attachment.sig>

  reply	other threads:[~2019-05-06 12:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-06 10:12 [U-Boot] DM for ci_udc Sven Schwermer
2019-05-06 10:28 ` Marek Vasut
2019-05-06 12:17   ` Lukasz Majewski [this message]
2019-05-07  7:21     ` Jean-Jacques Hiblot
2019-05-20 12:13 ` Schrempf Frieder
2019-05-20 13:36   ` Adam Ford

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=20190506141754.56a0da9f@jawa \
    --to=lukma@denx.de \
    --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