Changes for v6:
For Patch 8/8, we only need to set ci->driver to NULL when usb cable
is not connected, for other changes, it will case some runtime pm
unmatch and un-align with udc-core & composite driver problems.
Changes for v5:
- Add Alex comments for init/destroy function [3/8] [4/8]
- Remove
vbus register is at otgsc, and vbus detect does not belong
to device function. Revert this patch, and will move
vbus detect function to drivers/usb/chipidea/udc.c
This reverts commit 8c4fc031954b4eb72daf13d3c907a985a3eee208.
Signed-off-by: Peter Chen
---
drivers/usb/chipidea/ci.h |1 -
dri
Implement struct usb_otg, In that way, calling otg_set_peripheral
will not be failed at udc.c.
Signed-off-by: Peter Chen
---
drivers/usb/chipidea/Makefile |2 +-
drivers/usb/chipidea/ci.h |2 +
drivers/usb/chipidea/otg.c| 60 +
drivers/us
The main design flow is the same with msm otg driver, that is the id and
vbus interrupt are handled at core driver, others are handled by
individual drivers.
- At former design, when switch usb role from device->host, it will call
udc_stop, it will remove the gadget driver, so when switch role
fro
- Create/destroy the gadget at udc's init and destory function
- start/stop API are used at otg id switch and probe routine
- Defer some gadget operations at ci's delayed work queue
Signed-off-by: Peter Chen
---
drivers/usb/chipidea/ci.h |1 -
drivers/usb/chipidea/core.c | 78 +++
- During the connect/disconnect host, we need to pullup
and pulldown dp
- Make sure the dp is not pullup until the vbus is on when
flag CI13XXX_PULLUP_ON_VBUS is set
- Using hw_device_state when set run/stop bit
Signed-off-by: Peter Chen
---
drivers/usb/chipidea/udc.c | 10 --
1 files
(change CI13XXX to CI13 to avoid junk email check)
Now, we have handled vbus session in core driver when the
vbus interrupt occurs, so our pullup operations are all
according to vbus.
Of cource, the software can still call .pullup when device connects
to host if it wants to connect/disconnect with
- For host, the vbus should always be on.
- For otg, the vbus is off defaultly, the vbus needs to be
turned on/off when usb role switches.
Signed-off-by: Peter Chen
---
drivers/usb/chipidea/ci.h |2 +
drivers/usb/chipidea/ci13xxx_imx.c | 80
2
When we rmmod gadget, the ci->driver needs to be cleared.
Otherwise, we plug in usb cable again, the driver will
consider gadget is there, in fact, it is removed.
Below is the oops this patch fixes.
root@freescale ~$ ci_hdrc ci_hdrc.0: Connected to host
Unable to handle kernel paging request at vi
Hi,
>> I put printk in fsg_main_thread. After insmod g_file_storage, the
>> fsg_main_thread goes to fsg->running. Then it sleeps.
>
> Do you mean that it executes these lines?
>
> if (!fsg->running) {
> sleep_thread(fsg);
> continue;
Hi Bhupesh,
On Thu, Jan 17, 2013 at 04:23:51PM +0530, Bhupesh Sharma wrote:
> This patch reworks the videobuffer management logic present in the UVC
> webcam gadget and ports it to use the "more apt" videobuf2 framework for
> video buffer management.
>
> To support routing video data captured fro
Hi Kukjin,
On Fri, Feb 1, 2013 at 3:56 AM, Kukjin Kim wrote:
> Tomasz Figa wrote:
>>
>> Hi Vivek,
>
> [...]
>
>> > + usb@1212 {
>> > + compatible = "samsung,exynos4210-ohci";
>> > + reg = <0x1212 0x100>;
>> > + interrupts = <0 71 0>;
>>
>> For Samsung plat
On 01/31/13 15:34, Gerd Hoffmann wrote:
> [ all still in qemu, will cross-checking on real hardware ]
Done now. Getting the same behavior with the TI demo board on a nec
xhci controller (express card).
cheers,
Gerd
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the
Even if a chipidea core is otg capable the board may not. This allows
to explicitly set the core to host/peripheral mode. Without these
flags the driver falls back to the old behaviour.
Signed-off-by: Sascha Hauer
---
drivers/usb/chipidea/core.c | 21 +++--
include/linux/usb/c
4th round of patches.
Peter, I would be glad if you could test them before your holiday. I rebased
your last round of Chipidea OTG patches onto this series which you can pull
here:
git://git.pengutronix.de/git/imx/linux-2.6.git tags/usb-chipidea-otg-for-next
I couldn't really test the otg patche
From: Michael Grzeschik
This patch removes the limitation of having only one instance of the
ci13xxx-imx platformdata and makes different configurations possible.
Signed-off-by: Michael Grzeschik
Signed-off-by: Marc Kleine-Budde
Signed-off-by: Sascha Hauer
Reviewed-by: Peter Chen
---
driver
The dr_mode devicetree property allows to explicitly specify the
host/peripheral/otg mode. This is necessary for boards without proper
ID pin handling.
Signed-off-by: Sascha Hauer
Reviewed-by: Peter Chen
---
Documentation/devicetree/bindings/usb/ci13xxx-imx.txt |1 +
drivers/usb/chipidea/ci
From: Marc Kleine-Budde
In patch "5d3c28b usb: otg: add device tree support to otg library"
devm_usb_get_phy_by_phandle() was added. It uses try_module_get() to lock the
phy driver in memory. The corresponding module_put() is missing in that patch.
This patch adds try_module_get() to usb_get_phy
From: Michael Grzeschik
This patch makes it possible to configure the PTW and PTS bits inside
the portsc register for host and device mode before the driver starts
and the phy can be addressed as hardware implementation is designed.
Signed-off-by: Michael Grzeschik
Signed-off-by: Marc Kleine-Bu
Signed-off-by: Sascha Hauer
---
drivers/usb/chipidea/ci13xxx_imx.c | 39 +---
1 file changed, 18 insertions(+), 21 deletions(-)
diff --git a/drivers/usb/chipidea/ci13xxx_imx.c
b/drivers/usb/chipidea/ci13xxx_imx.c
index b598bb8f..136869b 100644
--- a/drivers/usb
From: Michael Grzeschik
This adds two little devicetree helper functions for determining the
dr_mode (host, peripheral, otg) and phy_type (utmi, ulpi,...) from
the devicetree.
Signed-off-by: Michael Grzeschik
Signed-off-by: Marc Kleine-Budde
Signed-off-by: Sascha Hauer
---
drivers/usb/phy/Ma
We now have usb_add_phy_dev(), so use it to register with the framework
to be able to find the phy from the USB driver.
Signed-off-by: Sascha Hauer
---
drivers/usb/otg/mxs-phy.c |9 +
1 file changed, 9 insertions(+)
diff --git a/drivers/usb/otg/mxs-phy.c b/drivers/usb/otg/mxs-phy.c
Most of otg/otg.c is not otg specific, but phy specific, so move it
to the phy directory.
Signed-off-by: Sascha Hauer
Reported-by: Kishon Vijay Abraham I
Cc: Felipe Balbi
---
drivers/usb/otg/otg.c| 427
drivers/usb/phy/Makefile |1 +
driver
On 02/04/2013 03:24 PM, Sascha Hauer wrote:
> From: Marc Kleine-Budde
>
> In patch "5d3c28b usb: otg: add device tree support to otg library"
> devm_usb_get_phy_by_phandle() was added. It uses try_module_get() to lock the
> phy driver in memory. The corresponding module_put() is missing in that p
On 02/04/2013 02:59 PM, Roger Quadros wrote:
> On 02/04/2013 03:24 PM, Sascha Hauer wrote:
>> From: Marc Kleine-Budde
>>
>> In patch "5d3c28b usb: otg: add device tree support to otg library"
>> devm_usb_get_phy_by_phandle() was added. It uses try_module_get() to lock the
>> phy driver in memory.
Make use of devm_ioremap_resource() and correct comment.
CC: Alan Stern
Signed-off-by: Roger Quadros
---
drivers/usb/host/ehci-omap.c | 21 ++---
1 files changed, 6 insertions(+), 15 deletions(-)
diff --git a/drivers/usb/host/ehci-omap.c b/drivers/usb/host/ehci-omap.c
index 3
On 02/04/2013 04:10 PM, Marc Kleine-Budde wrote:
> On 02/04/2013 02:59 PM, Roger Quadros wrote:
>> On 02/04/2013 03:24 PM, Sascha Hauer wrote:
>>> From: Marc Kleine-Budde
>>>
>>> In patch "5d3c28b usb: otg: add device tree support to otg library"
>>> devm_usb_get_phy_by_phandle() was added. It use
In PHY mode we need to have the nop-usb-xceiv transceiver
driver to operate, so select it in Kconfig.
CC: Alan Stern
Signed-off-by: Roger Quadros
---
drivers/usb/host/Kconfig |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kco
On Thu, Jan 24 2013, Felipe Balbi wrote:
> the benefit is that we will be able to go ahed with configfs-based
> binding and will be able to drop duplicated gadget code between legacy
> (non-composite) and composite framework with the function drivers.
I'm not sure whether keeping gadgetfs around i
Hi,
On Mon, Feb 04, 2013 at 04:27:49PM +0100, Michal Nazarewicz wrote:
> On Thu, Jan 24 2013, Felipe Balbi wrote:
> > the benefit is that we will be able to go ahed with configfs-based
> > binding and will be able to drop duplicated gadget code between legacy
> > (non-composite) and composite fram
On Mon, 4 Feb 2013, victor yeo wrote:
> Thanks, i made a big progress. The udc driver is able to pass the ep1
> data (CBW) to gadget driver, and gadget driver handles the data (which
> is SCSI Inquiry command), and udc driver is able to send out the reply
> and CSW to host.
>
> After that, in get
Hi,
On Fri, Feb 01, 2013 at 11:14:24AM -0800, Tony Lindgren wrote:
> * Felipe Balbi [130125 02:30]:
> > Hi,
> >
> > On Fri, Jan 25, 2013 at 03:54:00PM +0530, Kishon Vijay Abraham I wrote:
> > > Start using the control module driver for powering on the PHY and for
> > > writing to the mailbox ins
know how to do that
as there is no way to provide a phandle to any of the OMAP generated clocks
in the device tree. Suggestions welcome :).
Based on linux-next:next-20130204
Depends on "USB: omap-ehci: Move PHY management to PHY driver"
g...@github.com:rogerq/linux.git next
Add 2 flags, needs_vcc and needs_reset to platform data.
If the flag is set and the regulator couldn't be found
then we bail out with -EPROBE_DEFER.
For device tree boot we depend on presensce of vcc-supply/
reset-supply properties to decide if we should bail out
with -EPROBE_DEFER or just continu
The PHY clock, clock rate, VCC regulator and RESET regulator
can now be provided via device tree.
Signed-off-by: Roger Quadros
---
.../devicetree/bindings/usb/usb-nop-xceiv.txt | 34
drivers/usb/otg/nop-usb-xceiv.c| 31 ++
2 files
Enable this driver to probe in device tree boot.
CC: Samuel Ortiz
Signed-off-by: Roger Quadros
---
.../devicetree/bindings/mfd/omap-usb-tll.txt | 17 +
drivers/mfd/omap-usb-tll.c |9 +
2 files changed, 26 insertions(+), 0 deletions(-)
Since there is only one resource per type we don't really need
to use resource name to obtain it. This also also makes it easier
for device tree adaptation.
Signed-off-by: Roger Quadros
---
drivers/usb/host/ehci-omap.c |5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/
This is because we want to get rid of platform_data usage from probe().
The only information we need is PORT_MODE, and this can be supplied
to us by the user (i.e. omap-usb-host.c).
We also move channel clock management from runtime PM handlers into
omap_tll_enable/disable().
CC: Samuel Ortiz
Si
Since there is only one resource per type we don't really need
to use resource name to obtain it. This also also makes it easier
for device tree adaptation.
Signed-off-by: Roger Quadros
---
drivers/usb/host/ohci-omap3.c |5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a
Allows the OHCI controller found in OMAP3 and later chips to
be specified via device tree.
Signed-off-by: Roger Quadros
---
.../devicetree/bindings/usb/omap3-ohci.txt | 17 +
drivers/usb/host/ohci-omap3.c | 19 +++
2 files changed,
Allows the OMAP HS USB host controller to be specified
via device tree.
CC: Samuel Ortiz
Signed-off-by: Roger Quadros
---
.../devicetree/bindings/mfd/omap-usb-host.txt | 68
drivers/mfd/omap-usb-host.c| 83 ++--
2 files changed,
Adds device nodes for HS USB Host module, TLL module,
OHCI and EHCI controllers.
Signed-off-by: Roger Quadros
---
arch/arm/boot/dts/omap4.dtsi | 30 ++
1 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boot/dts/omap4.dtsi b/arch/arm/boot/dts/o
Allows the OMAP EHCI controller to be specified via device tree.
Signed-off-by: Roger Quadros
---
.../devicetree/bindings/usb/omap-ehci.txt | 34 ++
drivers/usb/host/ehci-omap.c | 36 +++-
2 files changed, 69 insertions(+), 1 del
Adds device nodes for HS USB Host module, TLL module,
OHCI and EHCI controllers.
Signed-off-by: Roger Quadros
---
arch/arm/boot/dts/omap3.dtsi | 31 +++
1 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boot/dts/omap3.dtsi b/arch/arm/boot/dts/
Provide RESET and Power regulators for the USB PHY,
the USB Host port mode and the PHY device.
Also provide pin multiplexer information for USB host
pins.
Signed-off-by: Roger Quadros
---
arch/arm/boot/dts/omap3-beagle.dts | 71
1 files changed, 71 inserti
Provide the RESET and Power regulators for the USB PHY,
the USB Host port mode and the PHY device.
Also provide pin multiplexer information for the USB host
pins.
Signed-off-by: Roger Quadros
---
arch/arm/boot/dts/omap4-panda.dts | 55 +
1 files changed, 55
Commit 71c731a was a workaround for systems using the SN65LVPE502CP,
controller, but it introduced a bug where resume from hibernate would
add the comp_mode_recovery_timer to the timer queue while it was already
active when saved to disk on hibernate. This caused list_add corruption
leading to a cr
On Thu, Jan 24 2013, Felipe Balbi wrote:
> Hmm, looks like there's no easy way out. Can we (easily) make
> a compatibility layer between the two ? What are the biggest
> differences ?
Come to think of it, would it make sense to make it as a user space
library preloaded when gadgetfs user space app
* Felipe Balbi [130204 07:57]:
> Hi,
>
> On Fri, Feb 01, 2013 at 11:14:24AM -0800, Tony Lindgren wrote:
> > * Felipe Balbi [130125 02:30]:
> > > Hi,
> > >
> > > On Fri, Jan 25, 2013 at 03:54:00PM +0530, Kishon Vijay Abraham I wrote:
> > > > Start using the control module driver for powering on
Hi Bhupesh,
On Thu, Jan 17, 2013 at 04:23:51PM +0530, Bhupesh Sharma wrote:
> This patch reworks the videobuffer management logic present in the UVC
> webcam gadget and ports it to use the "more apt" videobuf2 framework for
> video buffer management.
>
> To support routing video data captured fro
From: Bjørn Mork
Date: Thu, 31 Jan 2013 19:36:05 +0100
> It is normal for minidrivers accumulating frames to return NULL
> from their tx_fixup function. We do not want to count this as a
> drop, or log any debug messages. A different exit path is
> therefore chosen for such drivers, skipping the
From: Joe Perches
Date: Sun, 3 Feb 2013 19:28:07 -0800
> Remove all the OOM messages that follow kernel alloc
> failures as there is already a generic equivalent to
> these messages in the mm subsystem.
>
> Joe Perches (8):
> caif: Remove unnecessary alloc/OOM messages
> can: Remove unneces
On Mon, Feb 04, 2013 at 03:14:46PM +0800, fangxiaozhi 00110321 wrote:
> +/* Define the device is matched with Vendor ID and interface descriptors */
> +#define UNUSUAL_VENDOR_INTF(id_vendor, cl, sc, pr, \
> + vendorName, productName, useProtocol, useTransport, \
> +
On Mon, Jan 28, 2013 at 09:18:29PM +0100, Robert Jarzmik wrote:
> Felipe Balbi writes:
>
> > By simply setting a flag, we can drop some
> > boilerplate code.
> >
> > Signed-off-by: Felipe Balbi
> > ---
> > drivers/usb/gadget/pxa27x_udc.c | 9 +
> Acked-by: Robert Jarzmik
>
> And I test
On Mon, 4 Feb 2013, Roger Quadros wrote:
> In PHY mode we need to have the nop-usb-xceiv transceiver
> driver to operate, so select it in Kconfig.
>
> CC: Alan Stern
> Signed-off-by: Roger Quadros
> ---
> drivers/usb/host/Kconfig |1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
On Mon, 4 Feb 2013, Roger Quadros wrote:
> Make use of devm_ioremap_resource() and correct comment.
>
> CC: Alan Stern
> Signed-off-by: Roger Quadros
> ---
> drivers/usb/host/ehci-omap.c | 21 ++---
> 1 files changed, 6 insertions(+), 15 deletions(-)
>
> diff --git a/drivers
On Mon, 4 Feb 2013, Roger Quadros wrote:
> Since there is only one resource per type we don't really need
> to use resource name to obtain it. This also also makes it easier
> for device tree adaptation.
>
> Signed-off-by: Roger Quadros
Acked-by: Alan Stern
--
To unsubscribe from this list: s
On Mon, 4 Feb 2013, Roger Quadros wrote:
> Since there is only one resource per type we don't really need
> to use resource name to obtain it. This also also makes it easier
> for device tree adaptation.
>
> Signed-off-by: Roger Quadros
Acked-by: Alan Stern
--
To unsubscribe from this list:
On Mon, 4 Feb 2013, Roger Quadros wrote:
> Allows the OHCI controller found in OMAP3 and later chips to
> be specified via device tree.
>
> Signed-off-by: Roger Quadros
For the ohci-omap3 part:
Acked-by: Alan Stern
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
t
On Mon, 4 Feb 2013, Roger Quadros wrote:
> Allows the OMAP EHCI controller to be specified via device tree.
>
> Signed-off-by: Roger Quadros
For the ehci-omap part:
Acked-by: Alan Stern
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to major
On Fri, 1 Feb 2013, Joseph Salisbury wrote:
> Hi Alan,
>
> There is a tar file[0] attached to the bug report[1]. The tar file
> contains a few examples of failed and successful recording attempts
> while collecting usbmon traces. There is a readme.txt file available
> after extracting the fi
This patch adds host phy support for Samsung's Exynos4412 SoC to
samsung-usbphy driver and its device node.
Cc: Praveen Paneri
Signed-off-by: Dongjin Kim
---
arch/arm/boot/dts/exynos4412.dtsi | 13
drivers/usb/phy/samsung-usbphy.c | 156 -
2 files ch
Hi,
Can split patch into two parts?
One for USB tree, another for samsung tree.
Thank you,
Kyungmin Park
On Tue, Feb 5, 2013 at 9:37 AM, Dongjin Kim wrote:
> This patch adds host phy support for Samsung's Exynos4412 SoC to
> samsung-usbphy driver and its device node.
>
> Cc: Praveen Paneri
> S
This patch adds host phy support for Samsung's Exynos4412 SoC to
samsung-usbphy driver. This patch is created upon
"http://git.kernel.org/?p=linux/kernel/git/balbi/usb.git;a=commit;h=2564b526b8cf01e6c36285edfd40a438e683c2b8";
Cc: Praveen Paneri
Signed-off-by: Dongjin Kim
---
drivers/usb/phy/sa
Dear Greg:
OK,thank you very much.
Best Regards,
Franko Fang
> -Original Message-
> From: Greg KH [mailto:gre...@linuxfoundation.org]
> Sent: Tuesday, February 05, 2013 2:39 AM
> To: Fangxiaozhi (Franko)
> Cc: linux-usb@vger.kernel.org; linux-ker...@vger.kernel.org; Xueguiying
On Monday 04 February 2013 09:28 PM, Roger Quadros wrote:
Add 2 flags, needs_vcc and needs_reset to platform data.
If the flag is set and the regulator couldn't be found
then we bail out with -EPROBE_DEFER.
For device tree boot we depend on presensce of vcc-supply/
reset-supply properties to dec
On Mon, Feb 04, 2013 at 02:24:26PM +0100, Sascha Hauer wrote:
> 4th round of patches.
>
> Peter, I would be glad if you could test them before your holiday. I rebased
> your last round of Chipidea OTG patches onto this series which you can pull
> here:
>
> git://git.pengutronix.de/git/imx/linux-2
On Monday 04 February 2013 09:28 PM, Roger Quadros wrote:
Enable this driver to probe in device tree boot.
CC: Samuel Ortiz
Signed-off-by: Roger Quadros
---
.../devicetree/bindings/mfd/omap-usb-tll.txt | 17 +
drivers/mfd/omap-usb-tll.c |9
On Monday 04 February 2013 09:28 PM, Roger Quadros wrote:
Allows the OMAP HS USB host controller to be specified
via device tree.
CC: Samuel Ortiz
Signed-off-by: Roger Quadros
---
.../devicetree/bindings/mfd/omap-usb-host.txt | 68
drivers/mfd/omap-usb-host.c
On Monday 04 February 2013 09:28 PM, Roger Quadros wrote:
Adds device nodes for HS USB Host module, TLL module,
OHCI and EHCI controllers.
Signed-off-by: Roger Quadros
---
arch/arm/boot/dts/omap4.dtsi | 30 ++
1 files changed, 30 insertions(+), 0 deletions(-)
d
Hi Kukjin,
On Wed, Jan 30, 2013 at 11:26 AM, Kukjin Kim wrote:
> Vivek Gautam wrote:
>>
>> Moving register and structure definitions to header file,
>> and keeping the generic functions to be used across
>> multiple PHYs in common file "samsung-usbphy.c".
>> Also renaming the usb 2.0 phy driver
Hi Kukjin,
On Wed, Jan 30, 2013 at 11:31 AM, Kukjin Kim wrote:
> Vivek Gautam wrote:
>>
>> Adding PHY driver support for USB 3.0 controller for Samsung's
>> SoCs.
>>
>> Signed-off-by: Vivek Gautam
>> ---
>>
>> Changes from v3:
>> - Making SAMSUNG_USB3PHY dependent on SAMSUNG_USBPHY.
>> - Addi
Hi,
On Mon, Feb 04, 2013 at 05:58:48PM +0200, Roger Quadros wrote:
> The PHY clock, clock rate, VCC regulator and RESET regulator
> can now be provided via device tree.
>
> Signed-off-by: Roger Quadros
> ---
> .../devicetree/bindings/usb/usb-nop-xceiv.txt | 34
>
>
On Mon, Feb 04, 2013 at 05:58:57PM +0200, Roger Quadros wrote:
> Adds device nodes for HS USB Host module, TLL module,
> OHCI and EHCI controllers.
>
> Signed-off-by: Roger Quadros
> ---
> arch/arm/boot/dts/omap4.dtsi | 30 ++
> 1 files changed, 30 insertions(+), 0
Hi,
>> How to set "bh->state" to BUF_STATE_EMPTY after the buffer is processed?
>
> It gets set to BUF_STATE_EMPTY in several different places, depending
> on the purpose the buffer was used for. See bulk_in_complete (your UDC
> driver should call this routine for every request over a bulk-IN
> e
On Tue, Feb 05, 2013 at 03:49:22PM +0800, victor yeo wrote:
> Hi,
>
> >> How to set "bh->state" to BUF_STATE_EMPTY after the buffer is processed?
> >
> > It gets set to BUF_STATE_EMPTY in several different places, depending
> > on the purpose the buffer was used for. See bulk_in_complete (your UD
Hi,
>> >> How to set "bh->state" to BUF_STATE_EMPTY after the buffer is processed?
>> >
>> > It gets set to BUF_STATE_EMPTY in several different places, depending
>> > on the purpose the buffer was used for. See bulk_in_complete (your UDC
>> > driver should call this routine for every request ove
77 matches
Mail list logo