Introduce kernel feature CONFIG_USB_OTG20 and related
gadget_is_otg20() API for supporting OTG20 compliant
drivers.
This patch also updated usb_otg_descritpor.
Signed-off-by: Macpaul Lin macp...@gmail.com
changes for v2:
- Add USB_OTG_ADP definition in ch9.h.
changes for v3:
- ch9.h: replace a
Hi Peter,
On 04/16/2015 10:59 AM, Peter Chen wrote:
On Wed, Apr 15, 2015 at 06:26:23PM +0900, Chanwoo Choi wrote:
Hi Roger and Peter,
On 04/15/2015 04:50 PM, Roger Quadros wrote:
On 15/04/15 06:27, Peter Chen wrote:
On Tue, Apr 14, 2015 at 08:29:34PM +0900, Chanwoo Choi wrote:
On
Add independent options for identify the capabilities of
ADP/SRP/HNP feature for OTG devices.
Signed-off-by: Macpaul Lin macp...@gmail.com
---
changes for v2:
- no change
changes for v3:
- composite.h: add usb_gadget_customize_otg_desc() declaration.
- composite.c: replace static
Introduce kernel feature CONFIG_USB_OTG20 and related
gadget_is_otg20() API for supporting OTG20 compliant
drivers.
This patch also updated usb_otg_descritpor.
Signed-off-by: Macpaul Lin macp...@gmail.com
---
changes for v2:
- Add USB_OTG_ADP definition in ch9.h.
changes for v3:
- ch9.h:
Add ADP, HNP, and SRP feature options to gadget structure.
Signed-off-by: Macpaul Lin macp...@gmail.com
---
changes for v2:
- no change
changes for v3:
- no change
changes for v4:
- fix description of each git commits.
include/linux/usb/gadget.h | 9 +
1 file changed, 9 insertions(+)
add supports OTG 2.0 for multi.c
Signed-off-by: Macpaul Lin macp...@gmail.com
---
changes for v2:
- no change
changes for v3:
- multi.c: migrate global static const OTG descriptor with runtime retrived
capability information by calling usb_gadget_customize_otg_desc().
changes for v4:
-
Replace hardcoded gadget capability from interface setup
to gadget setup.
Signed-off-by: Macpaul Lin macp...@gmail.com
---
changes for v1:
- no change
changes for v2:
- no change
changes for v3:
- new commit for adapting to musb drivers
changes for v4:
- fix description of each git commits.
add supports OTG 2.0 for multi.c
Signed-off-by: Macpaul Lin macp...@gmail.com
changes for v2:
- no change
changes for v3:
- multi.c: migrate global static const OTG descriptor with runtime retrived
capability information by calling usb_gadget_customize_otg_desc().
---
Add independent options for identify the capabilities of
ADP/SRP/HNP feature for OTG devices.
Signed-off-by: Macpaul Lin macp...@gmail.com
changes for v2:
- no change
changes for v3:
- composite.h: add usb_gadget_customize_otg_desc() declaration.
- composite.c: replace static configuration
Replace hardcoded gadget capability from interface setup
to gadget setup.
Signed-off-by: Macpaul Lin macp...@gmail.com
---
drivers/usb/musb/musb_gadget.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c
index
Add ADP, HNP, and SRP feature options to gadget structure.
Signed-off-by: Macpaul Lin macp...@gmail.com
---
include/linux/usb/gadget.h | 9 +
1 file changed, 9 insertions(+)
diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h
index c63a8db..6e44483 100644
---
On Wed, Apr 15, 2015 at 04:35:15PM +0300, Ivan T. Ivanov wrote:
On recent Qualcomm platforms VBUS and ID lines are not routed to
USB PHY LINK controller. Use extcon framework to receive connect
and disconnect ID and VBUS notification.
Signed-off-by: Ivan T. Ivanov ivan.iva...@linaro.org
---
On Thu, Apr 16, 2015 at 10:13:44AM +0300, Ivan T. Ivanov wrote:
Hi,
On Thu, 2015-04-16 at 16:00 +0900, Chanwoo Choi wrote:
Hi Peter,
On 04/16/2015 10:59 AM, Peter Chen wrote:
Ok, from USB point, external id/vbus value can't decide
which role the controller will be, the
On 16/04/15 10:00, Chanwoo Choi wrote:
Hi Peter,
On 04/16/2015 10:59 AM, Peter Chen wrote:
On Wed, Apr 15, 2015 at 06:26:23PM +0900, Chanwoo Choi wrote:
Hi Roger and Peter,
On 04/15/2015 04:50 PM, Roger Quadros wrote:
On 15/04/15 06:27, Peter Chen wrote:
On Tue, Apr 14, 2015 at
On Thu, Apr 16, 2015 at 04:59:31PM +0900, Chanwoo Choi wrote:
On 04/16/2015 04:13 PM, Ivan T. Ivanov wrote:
Hi,
On Thu, 2015-04-16 at 16:00 +0900, Chanwoo Choi wrote:
Hi Peter,
On 04/16/2015 10:59 AM, Peter Chen wrote:
Ok, from USB point, external id/vbus value can't decide
On Mon, Apr 13, 2015 at 03:10:45PM -0700, Arun Ramamurthy wrote:
Some generic drivers, such as ehci, may use multiple phys and for such
drivers referencing phy(s) by name(s) does not make sense. Instead of
inventing new naming schemes and using custom code to iterate through them,
such drivers
On 04/16/2015 04:13 PM, Ivan T. Ivanov wrote:
Hi,
On Thu, 2015-04-16 at 16:00 +0900, Chanwoo Choi wrote:
Hi Peter,
On 04/16/2015 10:59 AM, Peter Chen wrote:
Ok, from USB point, external id/vbus value can't decide
which role the controller will be, the controller driver
will decide
Hi,
On Wed, 2015-04-15 at 21:28 +0530, Vivek Gautam wrote:
On Thu, Apr 9, 2015 at 8:19 PM, Alan Stern st...@rowland.harvard.edu wrote:
On Thu, 9 Apr 2015, Ivan T. Ivanov wrote:
This allow same IO space to be shared between HCD and Device
controller driver. Which can be loaded
On 04/16/2015 05:01 PM, Peter Chen wrote:
On Thu, Apr 16, 2015 at 04:59:31PM +0900, Chanwoo Choi wrote:
On 04/16/2015 04:13 PM, Ivan T. Ivanov wrote:
Hi,
On Thu, 2015-04-16 at 16:00 +0900, Chanwoo Choi wrote:
Hi Peter,
On 04/16/2015 10:59 AM, Peter Chen wrote:
Ok, from USB point,
On Tue, Apr 14, 2015 at 01:41:49PM +0300, Roger Quadros wrote:
Move the state_changed variable into struct otg_fsm
so that we can support multiple instances.
OTG device has only one port. See 3.1.1.
If you go to pass OTG Certification, the lab requires that there is only
one port at your board.
On Tue, Apr 14, 2015 at 01:41:52PM +0300, Roger Quadros wrote:
The OTG core instantiates the OTG Finite State Machine
per OTG controller and manages starting/stopping the
host and gadget controllers based on the bus state.
It provides APIs for the following tasks
- Registering an OTG
On 16/04/15 14:41, Peter Chen wrote:
On Tue, Apr 14, 2015 at 01:41:50PM +0300, Roger Quadros wrote:
If usb/otg-fsm.h and usb/composite.h are included together
then it results in the build warning [1].
Prevent that by moving the VDBG defination into the
usb-otg-fsm.c file where it is used.
On 16/04/15 14:36, Peter Chen wrote:
On Tue, Apr 14, 2015 at 01:41:49PM +0300, Roger Quadros wrote:
Move the state_changed variable into struct otg_fsm
so that we can support multiple instances.
OTG device has only one port. See 3.1.1.
If you go to pass OTG Certification, the lab requires
On Thu, Apr 16, 2015 at 03:07:41PM +0300, Roger Quadros wrote:
On 16/04/15 14:48, Peter Chen wrote:
On Tue, Apr 14, 2015 at 01:41:51PM +0300, Roger Quadros wrote:
The OTG state machine needs a mechanism to start and
stop the gadget controller. Add usb_gadget_start()
and usb_gadget_stop().
On Tue, Apr 14, 2015 at 01:41:50PM +0300, Roger Quadros wrote:
If usb/otg-fsm.h and usb/composite.h are included together
then it results in the build warning [1].
Prevent that by moving the VDBG defination into the
usb-otg-fsm.c file where it is used.
Also get rid of MPC_LOC which
On Tue, Apr 14, 2015 at 01:41:51PM +0300, Roger Quadros wrote:
The OTG state machine needs a mechanism to start and
stop the gadget controller. Add usb_gadget_start()
and usb_gadget_stop().
Signed-off-by: Roger Quadros rog...@ti.com
---
drivers/usb/gadget/udc/udc-core.c | 74
On Thu, Apr 16, 2015 at 02:59:12PM +0300, Roger Quadros wrote:
On 16/04/15 14:41, Peter Chen wrote:
On Tue, Apr 14, 2015 at 01:41:50PM +0300, Roger Quadros wrote:
If usb/otg-fsm.h and usb/composite.h are included together
then it results in the build warning [1].
Prevent that by moving
uas_use_uas_driver may set some US_FL_foo flags during detection, currently
these are stored in a local variable and then throw away, but these may be
of interest to the caller, so add an extra parameter to (optionally) return
the detected flags, and use this in the uas driver.
Signed-off-by:
The usb-storage driver sets max_sectors = 240 in its scsi-host template, for
uas we do not want to do that for all devices, but testing has shown that
some devices need it.
This commit adds a US_FL_MAX_SECTORS_240 flag for such devices, and implements
support for it in uas.c, while at it it also
Testing has shown that ASM1053 devices do not work properly with transfers
larger than 240 sectors, so set max_sectors to 240 on these.
Reported-by: Steve Bangert sbang...@frontier.com
Signed-off-by: Hans de Goede hdego...@redhat.com
---
drivers/usb/storage/uas-detect.h | 5 -
1 file
On 16/04/15 15:02, Peter Chen wrote:
On Tue, Apr 14, 2015 at 01:41:52PM +0300, Roger Quadros wrote:
The OTG core instantiates the OTG Finite State Machine
per OTG controller and manages starting/stopping the
host and gadget controllers based on the bus state.
It provides APIs for the
On Tue, Apr 14, 2015 at 01:41:48PM +0300, Roger Quadros wrote:
struct otg_fsm is the interface to the OTG state machine.
Document the input, output and internal state variables.
Definations are taken from Table 7-2 and Table 7-4 of
the USB OTG EH Specification Rev.2.0
Re-arrange some of
On 16/04/15 14:48, Peter Chen wrote:
On Tue, Apr 14, 2015 at 01:41:51PM +0300, Roger Quadros wrote:
The OTG state machine needs a mechanism to start and
stop the gadget controller. Add usb_gadget_start()
and usb_gadget_stop().
Signed-off-by: Roger Quadros rog...@ti.com
---
Hi,
On 09-04-15 20:30, Steve Bangert wrote:
On Thu, 2015-04-09 at 16:49 +0200, Hans de Goede wrote:
Hi,
On 09-04-15 15:27, Steve Bangert wrote:
On Wed, 2015-04-08 at 10:56 -0400, Alan Stern wrote:
On Wed, 8 Apr 2015, Steve Bangert wrote:
What i did was not correct,
On Thu, 2015-04-16 at 13:49 +0200, Hans de Goede wrote:
Hi,
On 09-04-15 20:30, Steve Bangert wrote:
On Thu, 2015-04-09 at 16:49 +0200, Hans de Goede wrote:
Hi,
On 09-04-15 15:27, Steve Bangert wrote:
On Wed, 2015-04-08 at 10:56 -0400, Alan Stern wrote:
On Wed, 8 Apr 2015, Steve
On Thu, Apr 16, 2015 at 02:58:20PM +0300, Roger Quadros wrote:
On 16/04/15 14:36, Peter Chen wrote:
On Tue, Apr 14, 2015 at 01:41:49PM +0300, Roger Quadros wrote:
Move the state_changed variable into struct otg_fsm
so that we can support multiple instances.
OTG device has only one
From: Wei Yongjun yongjun_...@trendmicro.com.cn
In case of error, the function devm_ioremap_resource() returns
ERR_PTR() and never returns NULL. The NULL test in the return
value check should be replaced with IS_ERR().
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
On Thu, 16 Apr 2015, Dorian Gray wrote:
I have tested the following kernel versions:
- 3.18.4, 3.18.6, 3.18.7, 3.19.4 [all affected]
- 3.17.1 [unaffected]
- 3.17.8 [probably the last unaffected version; I'm using it currently]
Also, I've been using the very same configuration (hardware)
On Thu, 16 Apr 2015, Hans de Goede wrote:
The usb-storage driver sets max_sectors = 240 in its scsi-host template, for
uas we do not want to do that for all devices, but testing has shown that
some devices need it.
This commit adds a US_FL_MAX_SECTORS_240 flag for such devices, and
On 04/16/2015 07:15 AM, Alan Stern wrote:
On Thu, 16 Apr 2015, Dorian Gray wrote:
I have tested the following kernel versions:
- 3.18.4, 3.18.6, 3.18.7, 3.19.4 [all affected]
- 3.17.1 [unaffected]
- 3.17.8 [probably the last unaffected version; I'm using it currently]
Also, I've been using
On Wed, 15 Apr 2015, Toralf Förster wrote:
Hi,
the following warning pci :00:14.0: CONFIG_USB_XHCI_HCD is
turned off, defaulting to EHCI.
makes no sense, if USB isn't compiled into the kernel.
Looks like another cosmetic issue in the same field as already
discussed earlier this
On 04/16/2015 05:54 PM, Alan Stern wrote:
On Wed, 15 Apr 2015, Toralf Förster wrote:
Hi,
the following warning pci :00:14.0: CONFIG_USB_XHCI_HCD is
turned off, defaulting to EHCI.
makes no sense, if USB isn't compiled into the kernel.
Looks like another cosmetic issue in the same
On 16 April 2015 at 16:15, Alan Stern st...@rowland.harvard.edu wrote:
This appears to be a problem with the IOMMU or SWIOTLB subsystems, not
the USB subsystem. I have CC'ed the appropriate mailing lists.
Thanks, I'm far from being a kernel expert, so was expecting it could
be wrong
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Remove including linux/version.h that don't need it.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/usb/gadget/function/uvc.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/usb/gadget/function/uvc.h
On Thu, 16 Apr 2015, Dorian Gray wrote:
I have tested the following kernel versions:
- 3.18.4, 3.18.6, 3.18.7, 3.19.4 [all affected]
- 3.17.1 [unaffected]
- 3.17.8 [probably the last unaffected version; I'm using it currently]
Also, I've been using the very same configuration (hardware)
On Tue, Apr 14, 2015 at 11:03:03AM +1000, NeilBrown wrote:
On Tue, 14 Apr 2015 09:36:34 +1000 NeilBrown ne...@suse.de wrote:
Prior to
commit 29bd3bc1194c624ce863cab2a7da9bc1f0c3b47b
hso: fix crash when device disappears while serial port is open
hso_serial_open would always
On Thu, 2015-04-16 at 14:17 +0200, Hans de Goede wrote:
uas_use_uas_driver may set some US_FL_foo flags during detection, currently
these are stored in a local variable and then throw away, but these may be
of interest to the caller, so add an extra parameter to (optionally) return
the
On 04/16/2015 02:17 PM, weiyj...@163.com wrote:
From: Wei Yongjun yongjun_...@trendmicro.com.cn
In case of error, the function devm_ioremap_resource() returns
ERR_PTR() and never returns NULL. The NULL test in the return
value check should be replaced with IS_ERR().
Signed-off-by: Wei
The USB PCI quirks code gets built into the kernel whenever CONFIG_PCI
is enabled, even if CONFIG_USB is not set. This can cause unnecessary
messages to show up in the kernel log, such as CONFIG_USB_XHCI_HCD is
turned off, defaulting to EHCI (which makes no sense when the kernel
has been
On 16 April 2015 at 20:42, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote:
And easier way is to compile the kernel with CONFIG_DMA_API_DEBUG
and then load the attached module.
That should tell you who and what else is holding on the buffers.
Thanks, this will be my next step then, right
A string written by the user may not be zero terminated.
sscanf may read memory beyond the buffer if no zero byte
is found.
Signed-off-by: Heinrich Schuchardt xypron.g...@gmx.de
---
drivers/usb/chipidea/debug.c | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git
hi all:
if we build usb driver as module, the dependence is like below:
usb-common.ko
usbcore.ko
ehci-hcd.ko
...
etc.
if we choose build-in instead of modules, how could we make sure the
initial sequence is indeed followed what we expected?
appreciate your kind help in advance,
--
To unsubscribe
On Tue, Apr 14, 2015 at 01:41:55PM +0300, Roger Quadros wrote:
This is the a_set_b_hnp_enable flag in the OTG state machine
diagram and must be set when the A-Host has successfully set
the b_hnp_enable feature of the OTG-B-Peripheral attached to it.
When this bit changes we kick our OTG FSM
On Tue, Apr 14, 2015 at 01:41:53PM +0300, Roger Quadros wrote:
The existing usb_add/remove_hcd() functionality
remains unchanged for non-OTG devices. For OTG
devices they only register the HCD with the OTG core.
Introduce _usb_add/remove_hcd() for use by OTG core.
These functions actually
On Thu, Apr 16, 2015 at 06:57:46PM +0200, Dorian Gray wrote:
On 16 April 2015 at 16:15, Alan Stern st...@rowland.harvard.edu wrote:
This appears to be a problem with the IOMMU or SWIOTLB subsystems, not
the USB subsystem. I have CC'ed the appropriate mailing lists.
Thanks, I'm far from
55 matches
Mail list logo