[PATCH v2] usb: chipidea: reuse the platform_data to store the ci info

2015-09-17 Thread Barry Song
be accessed after the device is added to system after the probe process, so it's safe to move to platform_data here. This fix is not elegant but currently it is the quickest fix. Signed-off-by: Rong Wang Signed-off-by: Barry Song --- -v2: rebase againest 4.3 usb-next drivers/usb/chipidea/c

Re: [PATCH] usb: chipidea: reuse the platform_data to store the ci info

2015-09-14 Thread Barry Song
2015-09-14 15:17 GMT+08:00 Peter Chen : > On Tue, Aug 11, 2015 at 09:43:13AM +0000, Barry Song wrote: >> From: Rong Wang >> >> Chipidea puts ci information to drvdata, but this overwrites the drvdata >> placed by EHCI core. EHCI core thinks drvdata is ehci_hcd. We can f

[PATCH] usb: chipidea: reuse the platform_data to store the ci info

2015-08-11 Thread Barry Song
would not be accessed after the device is added to system after the probe process, so it's safe to move to platform_data here. This fix is not elegant but currently it is the quickest fix. Signed-off-by: Rong Wang Signed-off-by: Barry Song --- drivers/usb/chipidea/core.c| 4 ++-- driver

[PATCH] usb: gadget: udc-core: fix the typo of udc state attribute

2013-07-28 Thread Barry Song
From: Rong Wang The name of udc state attribute file under sysfs is registered as "state", while usb_gadget_set_state take it as "status" when it's going to update. This patch fixes the typo. Signed-off-by: Rong Wang Signed-off-by: Barry Song Cc: --- drivers/usb/ga

Re: [PATCH] usb: udc: add gadget state kobject uevent

2013-07-25 Thread Barry Song
2013/7/18 Felipe Balbi : > On Thu, Jul 18, 2013 at 05:28:19PM +0800, Rong Wang wrote: >> Hi Felipe, >> >> Thanks, I'll test the patch. >> >> But sysfs_notify(&gadget->dev.kobj, NULL, "status"), status or state ? >> I notice that DEVICE_ATTR(state, S_IRUGO, usb_gadget_state_show, NULL) > > good eyes

Re: [PATCH] usb: udc: add gadget state kobject uevent

2013-07-24 Thread Barry Song
2013/7/18 Greg KH : > On Wed, Jul 17, 2013 at 10:57:06AM +0300, Felipe Balbi wrote: >> Hi, >> >> On Mon, Jul 15, 2013 at 11:31:17PM -0700, Greg KH wrote: >> > > The question is since we default GADGET, so the g_mass_storage.ko is >> > > installed early but connecting to a host PC >> > > is randomly

Re: [PATCH 1/3] usb: chipidea: add CSR SiRFSoC ci13xxx usb driver

2013-06-14 Thread Barry Song
2013/6/14 Alexander Shishkin : > Barry Song <21cn...@gmail.com> writes: > >> 2013/6/14 Alexander Shishkin : >>> Barry Song <21cn...@gmail.com> writes: >>> >>>> +if USB_CHIPIDEA_UDC && USB_CHIPIDEA_HOST >>>> + >>>&g

Re: [PATCH 1/3] usb: chipidea: add CSR SiRFSoC ci13xxx usb driver

2013-06-14 Thread Barry Song
2013/6/14 Alexander Shishkin : > Barry Song <21cn...@gmail.com> writes: > >> +if USB_CHIPIDEA_UDC && USB_CHIPIDEA_HOST >> + >> +config USB_CHIPIDEA_SIRF >> + depends on ARCH_SIRF >> + bool "SiRF USB controller ChipIdea driver binding&

Re: [PATCH 1/3] usb: chipidea: add CSR SiRFSoC ci13xxx usb driver

2013-06-09 Thread Barry Song
Hi Arnd, 2013/6/9 Arnd Bergmann : > On Sunday 09 June 2013 11:25:36 Barry Song wrote: >> From: Rong Wang >> >> CSR SiRF SoCs licensed chipidea ci13xxx USB IP, this patch >> makes the chipidea drivers support CSR SiRF SoCS. >> >> It also changes the Kconf

[PATCH 3/3] arm/dts: atlas6: fix the stuff of USB controller and phy

2013-06-08 Thread Barry Song
From: Rong Wang this patch fixes the USB stuff in atlas6.dtsi, and matches with sirfsoc usb controller and phy drivers to work. Signed-off-by: Rong Wang Signed-off-by: Barry Song --- arch/arm/boot/dts/atlas6.dtsi | 18 ++ 1 files changed, 10 insertions(+), 8 deletions

[PATCH 2/3] usb: phy: add driver for CSR SiRFSoC internal phy

2013-06-08 Thread Barry Song
From: Rong Wang This patch adds a driver for CSR SiRFSoC internal phy support for USB Controller 1. Signed-off-by: Rong Wang Signed-off-by: Barry Song --- drivers/usb/phy/Kconfig| 10 ++ drivers/usb/phy/Makefile |1 + drivers/usb/phy/phy-sirf-usb.c | 198

[PATCH 1/3] usb: chipidea: add CSR SiRFSoC ci13xxx usb driver

2013-06-08 Thread Barry Song
Vasut Cc: Richard Zhao Signed-off-by: Rong Wang Signed-off-by: Barry Song --- drivers/usb/Kconfig |1 + drivers/usb/chipidea/Kconfig| 25 drivers/usb/chipidea/Makefile |5 +- drivers/usb/chipidea/ci13xxx_sirf.c | 223

[PATCH 0/3] usb: add CSR SiRFSoC usb controller and phy support

2013-06-08 Thread Barry Song
This patchset adds CSR SiRFSoC usb controller and phy support. For USB controller, CSR licensed chipidea IP core. Rong Wang (3): usb: chipidea: add CSR SiRFSoC ci13xxx usb driver usb: phy: add driver for CSR SiRFSoC internal phy arm/dts: atlas6: fix the stuff of USB controller and phy arch