From: Richard Weinberger <richard@nod.at>
To: Apelete Seketeli <apelete@seketeli.net>
Cc: Richard Weinberger <richard.weinberger@gmail.com>,
linux-usb@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
Felipe Balbi <balbi@ti.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Lars-Peter Clausen <lars@metafoo.de>
Subject: Re: [PATCH v3 1/2] usb: musb: add support for JZ4740 usb device controller
Date: Sat, 04 Jan 2014 12:11:32 +0100 [thread overview]
Message-ID: <1519380.Ih8x4XZWqx@sandpuppy> (raw)
In-Reply-To: <20140104110622.GA7525@tao>
Am Samstag, 4. Januar 2014, 12:06:22 schrieb Apelete Seketeli:
> On 04-Jan-14, Richard Weinberger wrote:
> > On Thu, Dec 19, 2013 at 9:42 PM, Apelete Seketeli <apelete@seketeli.net>
wrote:
> > > Add support for Ingenic JZ4740 USB Device Controller through a
> > > specific musb glue layer.
> > >
> > > JZ4740 UDC not being OTG compatible and missing some hardware
> > > registers, this musb glue layer is written from scratch to be used in
> > > gadget mode only and take silicon design specifics into account.
> > >
> > > Signed-off-by: Apelete Seketeli <apelete@seketeli.net>
> > > Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
> > > ---
> > >
> > > drivers/usb/musb/Kconfig | 8 +-
> > > drivers/usb/musb/Makefile | 1 +
> > > drivers/usb/musb/jz4740.c | 201
> > > +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 209
> > > insertions(+), 1 deletion(-)
> > > create mode 100644 drivers/usb/musb/jz4740.c
> > >
> > > diff --git a/drivers/usb/musb/Kconfig b/drivers/usb/musb/Kconfig
> > > index 57dfc0c..14d7e72 100644
> > > --- a/drivers/usb/musb/Kconfig
> > > +++ b/drivers/usb/musb/Kconfig
> > > @@ -93,6 +93,12 @@ config USB_MUSB_BLACKFIN
> > >
> > > config USB_MUSB_UX500
> > >
> > > tristate "Ux500 platforms"
> > >
> > > +config USB_MUSB_JZ4740
> > > + tristate "JZ4740"
> > > + depends on MACH_JZ4740 || COMPILE_TEST
> > > + depends on USB_MUSB_GADGET
> > > + depends on USB_OTG_BLACKLIST_HUB
> > > +
> > >
> > > endchoice
> > >
> > > config USB_MUSB_AM335X_CHILD
> > >
> > > @@ -100,7 +106,7 @@ config USB_MUSB_AM335X_CHILD
> > >
> > > choice
> > >
> > > prompt 'MUSB DMA mode'
> > >
> > > - default MUSB_PIO_ONLY if ARCH_MULTIPLATFORM
> > > + default MUSB_PIO_ONLY if ARCH_MULTIPLATFORM || USB_MUSB_JZ4740
> >
> > Just out of curiosity, why can't we use DMA?
>
> We wrote the musb glue layer for the Ben Nanonote handheld computer
> only to provide ethernet-over-usb functionality.
>
> I was thinking about adding DMA support later, but Lars-Peter Clausen
> did experiment with DMA, and found out that all ethernet packets were
> unaligned, while the DMA only works if they are aligned.
> As a consequence, the DMA was bypassed all the time, making it useless
> at least for the ethernet gadget we are interested in.
>
> That's why DMA didn't make it into the glue layer.
DMA support would be nice to have.
Especially to make the USB storage gadget work well with the Ben NanoNote.
Thanks,
//richard
next prev parent reply other threads:[~2014-01-04 11:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-19 20:42 [PATCH v3 0/2] Add USB support for Ingenic JZ4740 Apelete Seketeli
2013-12-19 20:42 ` [PATCH v3 1/2] usb: musb: add support for JZ4740 usb device controller Apelete Seketeli
2014-01-04 0:50 ` Richard Weinberger
2014-01-04 11:06 ` Apelete Seketeli
2014-01-04 11:11 ` Richard Weinberger [this message]
2014-01-04 11:20 ` Lars-Peter Clausen
2013-12-19 20:42 ` [PATCH v3 2/2] usb: musb: fix setting JZ4740 gadget periphal mode on reset Apelete Seketeli
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=1519380.Ih8x4XZWqx@sandpuppy \
--to=richard@nod.at \
--cc=apelete@seketeli.net \
--cc=balbi@ti.com \
--cc=gregkh@linuxfoundation.org \
--cc=lars@metafoo.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=richard.weinberger@gmail.com \
/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
all inboxes | Powered by JetHome®