Re: [PATCH v3 07/11] usb: otg: add OTG core

2015-07-17 Thread Roger Quadros
Hi Li, On 17/07/15 10:48, Li Jun wrote: Hi, Roger On Wed, Jul 08, 2015 at 01:19:33PM +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

Re: [PATCH 1/1] usb: chipidea: host: add own hc_driver for each hcd

2015-07-17 Thread Alan Stern
On Fri, 17 Jul 2015, Peter Chen wrote: There are several benefits for doing like this: - hc_driver can be customized for each hcd - Other hcd hc_driver's initialization will not affect current one. We run out NULL pointer dereference problem when one hcd is started by module_init, and the

Re: [PATCH v3 07/11] usb: otg: add OTG core

2015-07-17 Thread Li Jun
Hi, Roger On Wed, Jul 08, 2015 at 01:19:33PM +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

[PATCH 1/1] usb: chipidea: host: add own hc_driver for each hcd

2015-07-17 Thread Peter Chen
There are several benefits for doing like this: - hc_driver can be customized for each hcd - Other hcd hc_driver's initialization will not affect current one. We run out NULL pointer dereference problem when one hcd is started by module_init, and the other is started by otg thread at SMP

[PATCH 4/5] Doc: usb: ci-hdrc-usb2: add itc-setting at binding doc

2015-07-17 Thread Peter Chen
It is used to configure the ITC (in register USBCMD) value for kinds of applications. Signed-off-by: Peter Chen peter.c...@freescale.com --- Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH 5/5] usb: chipidea: introduce ITC tuning interface

2015-07-17 Thread Peter Chen
ITC (Interrupt Threshold Control) is used to set the maximum rate at which the host/device controller will issue interrupts. The default value is 8 (1ms) for it. EHCI core will modify it to 1, but device mode keeps it as default value. In some use cases like Android ADB, it only has one usb

Re: [PATCH v3 00/11] USB: OTG/DRD Core functionality

2015-07-17 Thread Roger Quadros
On 16/07/15 21:29, Andrew Bresticker wrote: Hi Roger, On Wed, Jul 15, 2015 at 6:26 AM, Roger Quadros rog...@ti.com wrote: Hi Andrew, On 13/07/15 22:14, Andrew Bresticker wrote: Hi Roger, On Wed, Jul 8, 2015 at 3:19 AM, Roger Quadros rog...@ti.com wrote: Usage model: --- - The

Re: [PATCH v3 10/11] usb: otg: Add dual-role device (DRD) support

2015-07-17 Thread Li Jun
Hi, On Wed, Jul 08, 2015 at 01:19:36PM +0300, Roger Quadros wrote: DRD mode is a reduced functionality OTG mode. In this mode we don't support SRP, HNP and dynamic role-swap. In DRD operation, the controller mode (Host or Peripheral) is decided based on the ID pin status. Once a cable plug

Re: [PATCH v3 10/11] usb: otg: Add dual-role device (DRD) support

2015-07-17 Thread Roger Quadros
On 17/07/15 12:02, Li Jun wrote: On Wed, Jul 08, 2015 at 01:19:36PM +0300, Roger Quadros wrote: [...] struct otg_fsm *usb_otg_register(struct device *parent_dev, - struct otg_fsm_ops *fsm_ops) + struct otg_fsm_ops *fsm_ops, +

Re: [PATCH v3 02/11] usb: otg-fsm: support multiple instances

2015-07-17 Thread Roger Quadros
On 13/07/15 04:39, Peter Chen wrote: On Fri, Jul 10, 2015 at 04:06:43PM +0800, Li Jun wrote: On Wed, Jul 08, 2015 at 01:19:28PM +0300, Roger Quadros wrote: Move the state_changed variable into struct otg_fsm so that we can support multiple instances. I am not sure if multiple instances may

[PATCH 2/5] usb: chipidea: otg_fsm: delete the duplicated reset controller operation

2015-07-17 Thread Peter Chen
At host_stop, it will call usb_remove_hcd, and reset controller later. Signed-off-by: Peter Chen peter.c...@freescale.com --- drivers/usb/chipidea/otg_fsm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/chipidea/otg_fsm.c b/drivers/usb/chipidea/otg_fsm.c index 19d655a..00ab59d

[PATCH 1/5] usb: chipidea: udc: add USB_DEVICE_A_HNP_SUPPORT request support

2015-07-17 Thread Peter Chen
We can support USB OTG 1.3 USB_DEVICE_A_HNP_SUPPORT request when the driver supports OTG FSM mode. Signed-off-by: Peter Chen peter.c...@freescale.com --- drivers/usb/chipidea/udc.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c

[PATCH 3/5] usb: chipidea: introduce ci_platform_configure

2015-07-17 Thread Peter Chen
It is used to configure controller parameters according to platform data, like speed, stream mode, etc, both host and device's initialization need it, most of code are the same for both roles, with this new interface, it can reduce the duplicated code and be easy to maintain in future.

Re: [PATCH v3 10/11] usb: otg: Add dual-role device (DRD) support

2015-07-17 Thread Li Jun
On Wed, Jul 08, 2015 at 01:19:36PM +0300, Roger Quadros wrote: [...] struct otg_fsm *usb_otg_register(struct device *parent_dev, - struct otg_fsm_ops *fsm_ops) + struct otg_fsm_ops *fsm_ops, + bool

Re: [PATCH v3 10/11] usb: otg: Add dual-role device (DRD) support

2015-07-17 Thread Roger Quadros
On 17/07/15 11:14, Li Jun wrote: Hi, On Wed, Jul 08, 2015 at 01:19:36PM +0300, Roger Quadros wrote: DRD mode is a reduced functionality OTG mode. In this mode we don't support SRP, HNP and dynamic role-swap. In DRD operation, the controller mode (Host or Peripheral) is decided based on

[PATCH] Bluetooth: btusb: match generic class code in interface descriptor

2015-07-17 Thread Daniel Drake
btusb currently has a generic match on USB device descriptors: { USB_DEVICE_INFO(0xe0, 0x01, 0x01) }, However, http://www.usb.org/developers/defined_class states: Base Class E0h (Wireless Controller) This base class is defined for devices that are Wireless controllers. Values not

[GIT PULL] USB driver fixes for 4.2-rc3

2015-07-17 Thread Greg KH
The following changes since commit d770e558e21961ad6cfdf0ff7df0eb5d7d4f0754: Linux 4.2-rc1 (2015-07-05 11:01:52 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/ tags/usb-4.2-rc3 for you to fetch changes up to

Hello

2015-07-17 Thread Michel TOURE
-- Hello My name is Michel Toure of Malian nationality in effect during the Libyan crisis, two Libyans were able to return to the Republic of Benin cases containing more than 100 million US dollars that they have filed under diplomatic customs for their safety. But since they do not know anyone