public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Felipe Balbi <balbi@ti.com>
To: sundeep subbaraya <sundeep.lkml@gmail.com>
Cc: "balbi@ti.com" <balbi@ti.com>,
	Paul Zimmerman <Paul.Zimmerman@synopsys.com>,
	"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: query on DWC3
Date: Thu, 8 Jan 2015 10:57:22 -0600	[thread overview]
Message-ID: <20150108165722.GG31926@saruman> (raw)
In-Reply-To: <CALHRZuqq5Cc+WsQDzOjKOcF6HNH+OKw_7Pkkp3qssuu7kpSeLw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1474 bytes --]

Hi,

On Tue, Jan 06, 2015 at 12:39:55PM +0530, sundeep subbaraya wrote:
> >> On Sun, Dec 14, 2014 at 08:39:18AM +0530, sundeep subbaraya wrote:
> >> > Hi Paul,
> >> >
> >> > As per my understanding, for BULK OUT we do queue a request with 512
> >> > bytes length since we do not
> >>
> >> sometimes we _do_ know the size. In case of Mass Storage, we _know_ that
> >> the first bulk out transfer will be 31-bytes (CBW), if we were to start
> >> a 31-byte transfer, we would't receive anything.
> >>
> >> > know the length of the transfer Host is going to send. For Control OUT
> >> > we know the length in wLength of
> >> > Setup packet, hence I assumed there is no difference in programming
> >> > model of Control IN and OUT.
> >>
> >> there is _no_ difference. It's just that it was agreed that for anything
> >> other than control ep, the function drivers would take care of it. See
> >> the uses of quirk_ep_out_aligned_size.
> 
> got it..:)
> 
> >
> > btw, why are you reimplementing the driver when there's a perfectly good
> > driver to use in mainline kernel ?
> 
> I am writing a bare metal driver and it didn't work without alignment
> check mentioned above.

just make sure you don't copy GPL code into your bare metal driver,
otherwise your bare metal driver will be GPL by definition. Also, since
you're not using Linux at all, you should be asking support from
Synopsys instead, not the Linux USB mailing list.

-- 
balbi

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2015-01-08 16:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-13  5:13 query on DWC3 sundeep subbaraya
2014-12-13 23:51 ` Paul Zimmerman
2014-12-14  3:09   ` sundeep subbaraya
2014-12-22 16:11     ` Felipe Balbi
2014-12-22 16:12       ` Felipe Balbi
2015-01-06  7:09         ` sundeep subbaraya
2015-01-08 16:57           ` Felipe Balbi [this message]
2015-01-19  6:05             ` sundeep subbaraya

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=20150108165722.GG31926@saruman \
    --to=balbi@ti.com \
    --cc=Paul.Zimmerman@synopsys.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=sundeep.lkml@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