public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Felipe Balbi <balbi@ti.com>
To: Federico Vaga <federico.vaga@gmail.com>
Cc: Paul Zimmerman <paul.zimmerman@synopsys.com>,
	Felipe Balbi <balbi@ti.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	<linux-usb@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: DWC2 and/or S3C-HSOTG for STA2X11 board
Date: Tue, 16 Jul 2013 15:04:25 +0300	[thread overview]
Message-ID: <20130716120425.GA32038@arwen.pp.htv.fi> (raw)
In-Reply-To: <38175373.Cq6zxae9tO@harkonnen>

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

Hi,

On Tue, Jul 16, 2013 at 02:01:33PM +0200, Federico Vaga wrote:
> Hello,
> 
> I have an x86 board made by STMicroelectronics (STA2X11) with the Synopsis 
> USB-OTG DesignWare 2 on it and connected through the PCI-e bus.
> 
> 
> I know that there are two drivers for the same controller:
> 
>    (host)   drivers/staging/dwc2/*
>    (device) drivers/usb/gadget/s3c-hsotg.{c|h}
> 
> 
> So, at the moment I cannot have a board with both host/device working at the 
> same time. I have to choose to use the block as device or host, right?
> 
> I know that the plan is to merge the s3c-hsotg in the dwc2 driver 
> (https://lwn.net/Articles/540283/). Are still accepted patch to s3c-hsotg? Or 
> it is work in progress right now (soon), so it is better to wait after the 
> merge?
> 
> In order to use the s3c-hsotg I must implement a PCI wrapper that uses this 
> driver. It will be accepted in the kernel even if it will be removed sooner or 
> later because of the driver merge?

currently s3c-hsotg has too much knowledge of the Samsung platform. My
suggestion would be to help dwc2 get in better shape. It should be
rather easy to support your board since that already has a PCI wrapper
driver.

So, stick to host only for now, help clean up dwc2 and move it out of
staging, then later it should be fairly simple to merge the device side
in it.

my 2 cents

-- 
balbi

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

  reply	other threads:[~2013-07-16 12:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-16 12:01 DWC2 and/or S3C-HSOTG for STA2X11 board Federico Vaga
2013-07-16 12:04 ` Felipe Balbi [this message]
2013-07-16 12:27   ` Federico Vaga
2013-07-16 12:40     ` Felipe Balbi
2013-07-16 18:36 ` Paul Zimmerman
2013-07-22 22:59   ` Federico Vaga

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=20130716120425.GA32038@arwen.pp.htv.fi \
    --to=balbi@ti.com \
    --cc=federico.vaga@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=paul.zimmerman@synopsys.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