[PATCH 1/6] arch: Change defconfigs to point to g_mass_storage.

2012-10-31 Thread Michal Nazarewicz
From: Michal Nazarewicz The File-backed Storage Gadget (g_file_storage) is being removed, since it has been replaced by Mass Storage Gadget (g_mass_storage). This commit changes defconfigs point to the new gadget. Signed-off-by: Michal Nazarewicz --- arch/arm/configs/afeb9260_defconfig

[PATCH 4/6] usb: gadget: storage_common: Drop #ifdefs used for the sake of FSG.

2012-10-31 Thread Michal Nazarewicz
From: Michal Nazarewicz storage_common.c has been used by both file_storage.c and f_mass_storage.c which had some different requirements in a few places. To accomodate for that, storage_common.c provided configuratian macros which were to be defined (or not) prior to the file #inclusion. Becaus

[PATCH 5/6] usb: gadget: storage_common: Make fsg_lun_is_open() a function.

2012-10-31 Thread Michal Nazarewicz
From: Michal Nazarewicz Since function-line macros are to be avoided, this commit replaces the fsg_lun_is_open() macro with a static inline function. While at it, this commit also adds “inline” modifier to the fsg_lun_from_dev() function. Signed-off-by: Michal Nazarewicz --- drivers/usb/gadge

[PATCH 3/6] usb: gadget: storage_common: Remove FSG specific definitions.

2012-10-31 Thread Michal Nazarewicz
From: Michal Nazarewicz Since g_file_storage has been removed, this commit removes code from the storage_common.c file which has been used by file_storage.c only (and not by f_mass_storage.c). Signed-off-by: Michal Nazarewicz --- drivers/usb/gadget/storage_common.c | 28 -

[PATCH 6/6] usb: gadget: Remove reference to is_dualspeed from sysfs.

2012-10-31 Thread Michal Nazarewicz
From: Michal Nazarewicz This commit removes the /sys/devices/platform//udc//is_dualspeed file and is_dualspeeed line from /sys/devices/platform/ci13xxx_*/udc/device file. The is_dualspeed file is superseded by maximum_speed in the same directory and is_dualspeed line in device file is superseded

Can't use "gpio = <&gpio1 0 0>" in reg_usb_otg_vbus: usb_otg_vbus

2012-10-31 Thread Rick Bronson
Hi, You can't seem to use: gpio = <&gpio1 0 0>; inside of: reg_usb_otg_vbus: usb_otg_vbus { because that equates to a value of zero in config->ena_gpio in drivers/regulator/core.c: if (config->ena_gpio && gpio_is_valid(config->ena_gpio)) { which means it won't drop into

RE: [PATCH] usb/gadget: let file storage gadget select libcomposite

2012-10-31 Thread Paul Zimmerman
> From: Michal Nazarewicz [mailto:m...@google.com] On Behalf Of Michal > Nazarewicz > Sent: Wednesday, October 31, 2012 1:10 PM > > On Wed, Oct 31 2012, Paul Zimmerman wrote: > > Regarding that, would you guys accept a patch that adds the "buflen" > > module parameter to the mass-storage gadget?

Re: [PATCH v3 2/6] PM / Runtime: introduce pm_runtime_set[get]_memalloc_noio()

2012-10-31 Thread Ming Lei
On Wed, Oct 31, 2012 at 11:41 PM, Alan Stern wrote: > > Sorry, I misread your message. You are setting the device's flag, not > the thread's flag. Never mind. > > This still doesn't help in this case where CONFIG_PM_RUNTIME is > disabled. I think it will be simpler to set the noio flag during

[PATCH v6] usb: phy: add R-Car USB phy driver

2012-10-31 Thread Kuninori Morimoto
This patch adds Renesas R-Car USB phy driver. It supports R8A7779 chip at this point. R-Car has some USB controllers, but has only one phy-initializer. So, this driver is counting users. Signed-off-by: Kuninori Morimoto --- v5 -> v6 - used if (priv->counter++ == 0) - used if (priv->counter--

RE: Linux USB gadget mass storage

2012-10-31 Thread victor
>> In file_storage.c, send_status(), if (transport_is_bbb()), I add the >> line >> bh->inreq->buf = bh -> buf, >> >> and in get_next_command(), if (transport_is_bbb()), I add the line >> bh->outreq->context = bh, to make the bh address to be the same. >> >> Is this patch ok? > What patch? You

[PATCH 0/4] Add fully tested id switch and vbus connect detect support for Chipidea

2012-10-31 Thread Peter Chen
This patchset adds fully tested otg id switch function and vbus connect/disconnect detection for chipidea driver. The mainly design of id/vbus handling follows msm otg driver. I hope the msm usb maintainer can have a look of this patchset, and give some comments, and move the whole msm usb driver t

[PATCH 1/4] Revert "USB: chipidea: add vbus detect for udc"

2012-10-31 Thread Peter Chen
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. --- drivers/usb/chipidea/ci.h |1 - drivers/usb/chipidea/udc.c |

[PATCH 2/4] usb: chipidea: add otg id switch and vbus connect/disconnect detect

2012-10-31 Thread Peter Chen
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

[PATCH 3/4] usb: chipidea: udc: add pullup/pulldown dp at hw_device_state

2012-10-31 Thread Peter Chen
- 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 Signed-off-by: Peter Chen --- drivers/usb/chipidea/udc.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --g

[PATCH 4/4] usb: chipidea: imx: add internal vbus regulator control

2012-10-31 Thread Peter Chen
- 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 | 67 ++-- 2

Re: [PATCH] usb/gadget: let file storage gadget select libcomposite

2012-10-31 Thread Felipe Balbi
Hi, On Wed, Oct 31, 2012 at 07:33:44PM +, Paul Zimmerman wrote: > > From: linux-usb-ow...@vger.kernel.org > > [mailto:linux-usb-ow...@vger.kernel.org] On Behalf Of Felipe Balbi > > Sent: Wednesday, October 31, 2012 8:07 AM > > On Wed, Oct 31, 2012 at 11:07:44AM -0400, Alan Stern wrote: > > >

[PATCH] usb: host: tegra: fix potential NULL pointer dereference

2012-10-31 Thread Wei Yongjun
From: Wei Yongjun The dereference should be moved below the NULL test. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun --- drivers/usb/host/ehci-tegra.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/

<    1   2