[PATCH 1/1] usb: cdc-acm: send zero packet for intel 7260 modem

2016-01-05 Thread Lu Baolu
Signed-off-by: Lu Baolu <baolu...@linux.intel.com> Cc: sta...@vger.kernel.org --- drivers/usb/class/cdc-acm.c | 6 ++ drivers/usb/class/cdc-acm.h | 1 + 2 files changed, 7 insertions(+) diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index 8cd193b..e4c70dc 100644 -

[PATCH v2 1/1] usb: cdc-acm: handle unlinked urb in acm read callback

2015-12-29 Thread Lu Baolu
oss occurs. This patch lets bulk-in callback function handle unlinked urbs to avoid data loss. Signed-off-by: Tang Jian Qiang <jianqiang.t...@intel.com> Signed-off-by: Lu Baolu <baolu...@linux.intel.com> Cc: sta...@vger.kernel.org Acked-by: Oliver Neukum <oneu...@suse.com> ---

[PATCH 1/1] usb: cdc-acm: handle unlinked urb in acm read callback

2015-12-28 Thread Lu Baolu
oss occurs. This patch lets bulk-in callback function handle unlinked urbs to avoid data loss. Signed-off-by: Tang Jian Qiang <jianqiang.t...@intel.com> Signed-off-by: Lu Baolu <baolu...@linux.intel.com> Cc: sta...@vger.kernel.org --- drivers/usb/class/cdc-acm.c | 3 ++- 1 file change

[PATCH v3 1/1] usb: cdc-acm: handle unlinked urb in acm read callback

2015-12-29 Thread Lu Baolu
oss occurs. This patch lets bulk-in callback function handle unlinked urbs to avoid data loss. Signed-off-by: Tang Jian Qiang <jianqiang.t...@intel.com> Signed-off-by: Lu Baolu <baolu...@linux.intel.com> Cc: sta...@vger.kernel.org Acked-by: Oliver Neukum <oneu...@suse.com> ---

Re: [PATCH v2 1/1] usb: cdc-acm: handle unlinked urb in acm read callback

2015-12-29 Thread Lu Baolu
On 12/30/2015 09:46 AM, Greg Kroah-Hartman wrote: > On Wed, Dec 30, 2015 at 08:42:01AM +0800, Lu Baolu wrote: >> In current acm driver, the bulk-in callback function ignores the >> URBs unlinked in usb core. >> >> This causes unexpected data loss in some cases. For

Re: [PATCH v3 04/12] usb: xhci: dbc: add support for Intel xHCI dbc quirk

2015-11-18 Thread Lu Baolu
Hi, On 11/17/2015 06:28 PM, Dmitry Malkin wrote: On Mon, 16 Nov 2015 10:18:42 +0800, Lu Baolu wrote: This quirk works as well if debug host doesn't have DBC. I didn't try a DBC-capable debug host yet. Hi, I went through it again, with your v3 patch series on top of vanilla v4.3.0. Two

Re: [PATCH v4 01/12] usb: xhci: add sysfs file for xHCI debug port

2015-11-21 Thread Lu Baolu
On 11/20/2015 10:33 PM, Mathias Nyman wrote: On 17.11.2015 08:38, Lu Baolu wrote: This patch adds a sysfs file for users to check 1) whether the debug capability is implemented by hardware; 2) if supported, which state does it stay at. With a host that supports debug port, a file named

Re: [PATCH v10 2/7] usb: mux: add generic code for dual role port mux

2016-06-05 Thread Lu Baolu
ent, we > should improve it, Roger also provide an example of dual role switch with > USB3 based on his OTG core. Why do we need an OTG framework to support a device driver? Is it something like a bus or class driver? Best regards, Lu Baolu -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH v10 2/7] usb: mux: add generic code for dual role port mux

2016-06-05 Thread Lu Baolu
Hi Peter, On 06/04/2016 10:28 AM, Peter Chen wrote: > On Sat, Jun 04, 2016 at 12:06:06AM +0800, Lu Baolu wrote: >>> from my point,it is a dual-role switch >>> driver too, >> No, it's not a dual-role switch driver, but a driver for USB port >> multiplexing. >&

Re: [PATCH v10 2/7] usb: mux: add generic code for dual role port mux

2016-06-07 Thread Lu Baolu
have concern, do dual role switch through > OTG/dual-role core, not do it by itself. That really depends on how do you define "dual role". Can you please provide an unambiguous definition of "dual role" used in OTG/dual-role framework? Best regards, Lu Baolu > >&

Re: [PATCH v10 2/7] usb: mux: add generic code for dual role port mux

2016-06-07 Thread Lu Baolu
ine, even thought it has nothing to do with my system, only because the two sides of my port mux device is a host and peripheral controller. Why? Best regards, Lu Baolu -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH v10 2/7] usb: mux: add generic code for dual role port mux

2016-06-07 Thread Lu Baolu
TG/dual-role code, my understanding is that "dual-role" is a "reduced OTG" which is for DRD devices lacking of some OTG negotiation protocols. We really can't say "it's the scope of OTG/dual-role" whenever it comes to "host and peripheral". Best regards, Lu Baolu -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH v10 2/7] usb: mux: add generic code for dual role port mux

2016-06-06 Thread Lu Baolu
I/testing/sysfs-bus-platform. > > I agree with Roger that the dual-role switch part in your code is better > to use OTG framework to reduce redundancy. I agree that we should use dual-role framework for role switch. Actually, my code doesn't do this work. It only adds a generic framework for port mux device and two mux device drivers used in Intel platform. Best regards, Lu Baolu -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH v10 6/7] usb: pci-quirks: add Intel USB drcfg mux device

2016-06-08 Thread Lu Baolu
Hi Greg, On 06/08/2016 12:45 PM, Greg Kroah-Hartman wrote: > On Thu, Jun 02, 2016 at 09:37:28AM +0800, Lu Baolu wrote: >> In some Intel platforms, a single usb port is shared between USB host >> and device controllers. The shared port is under control of a switch >> which is

Re: [PATCH v10 2/7] usb: mux: add generic code for dual role port mux

2016-06-03 Thread Lu Baolu
Hi Peter, On 06/03/2016 03:41 PM, Peter Chen wrote: > On Thu, Jun 02, 2016 at 09:37:24AM +0800, Lu Baolu wrote: >> > Several Intel platforms implement USB dual role by having completely >> > separate xHCI and dwc3 IPs in PCH or SOC silicons. These two IPs share &

Re: [PATCH v10 2/7] usb: mux: add generic code for dual role port mux

2016-06-05 Thread Lu Baolu
Hi Peter, On 06/06/2016 10:05 AM, Peter Chen wrote: > On Sun, Jun 05, 2016 at 04:46:55PM +0800, Lu Baolu wrote: >> Hi, >> >> On 06/05/2016 04:33 PM, Jun Li wrote: >>>> Port mux is part of dual role switch, but not the whole thing. >>>>> Dual role sw

Re: [PATCH v10 2/7] usb: mux: add generic code for dual role port mux

2016-06-05 Thread Lu Baolu
Hi Peter, On 06/06/2016 09:25 AM, Peter Chen wrote: > On Sun, Jun 05, 2016 at 02:55:56PM +0800, Lu Baolu wrote: >> Hi Peter, >> >> On 06/04/2016 10:28 AM, Peter Chen wrote: >>> On Sat, Jun 04, 2016 at 12:06:06AM +0800, Lu Baolu wrote: >>>>> from my po

Re: [PATCH v10 2/7] usb: mux: add generic code for dual role port mux

2016-06-05 Thread Lu Baolu
Hi Jun, On 06/06/2016 09:08 AM, Jun Li wrote: > >> -Original Message- >> From: Lu Baolu [mailto:baolu...@linux.intel.com] >> Sent: Sunday, June 05, 2016 4:47 PM >> To: Jun Li <jun...@nxp.com>; Peter Chen <hzpeterc...@gmail.com> >> Cc

Re: [PATCH v10 6/7] usb: pci-quirks: add Intel USB drcfg mux device

2016-06-08 Thread Lu Baolu
Hi Greg, On 06/08/2016 11:45 PM, Greg Kroah-Hartman wrote: > On Wed, Jun 08, 2016 at 03:56:04PM +0800, Lu Baolu wrote: >> Hi Greg, >> >> On 06/08/2016 12:45 PM, Greg Kroah-Hartman wrote: >>> On Thu, Jun 02, 2016 at 09:37:28AM +0800, Lu Baolu wrote: >>>>

Re: [PATCH v10 1/7] regulator: fixed: add support for ACPI interface

2016-06-08 Thread Lu Baolu
Hi Felipe and Heikki, On 06/08/2016 12:42 PM, Greg Kroah-Hartman wrote: > On Thu, Jun 02, 2016 at 09:37:23AM +0800, Lu Baolu wrote: >> Add support to retrieve fixed voltage configure information through >> ACPI interface. This is needed for Intel Bay Trail devices, where a

[PATCH v9 0/7] usb: add support for Intel dual role port mux

2016-05-29 Thread Lu Baolu
mux could be found in Cherry Trail and Broxton devices. All patches have been verified to work on Intel's BayTrail, CherryTrail, and Broxton P platforms. Lu Baolu (7): regulator: fixed: add support for ACPI interface usb: mux: add generic code for dual role port mux usb: mux: add driver

[PATCH v9 3/7] usb: mux: add driver for Intel gpio controlled port mux

2016-05-29 Thread Lu Baolu
by Chanwoo Choi] Signed-off-by: David Cohen <david.a.co...@linux.intel.com> Signed-off-by: Lu Baolu <baolu...@linux.intel.com> Reviewed-by: Heikki Krogerus <heikki.kroge...@linux.intel.com> Reviewed-by: Felipe Balbi <ba...@kernel.org> Reviewed-by: Chanwoo Choi <cw00.c...@samsun

[PATCH v9 7/7] MAINTAINERS: add maintainer entry for Intel USB dual role mux drivers

2016-05-29 Thread Lu Baolu
Add a maintainer entry for Intel USB dual role mux drivers and add myself as a maintainer. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index ed1229e..edaeebe 100644 --- a/MAINT

[PATCH v9 4/7] usb: mux: add driver for Intel drcfg controlled port mux

2016-05-29 Thread Lu Baolu
Several Intel PCHs and SOCs have an internal mux that is used to share one USB port between device controller and host controller. The mux is handled through the Dual Role Configuration Register. Signed-off-by: Heikki Krogerus <heikki.kroge...@linux.intel.com> Signed-off-by: Lu Baolu

[PATCH v9 1/7] regulator: fixed: add support for ACPI interface

2016-05-29 Thread Lu Baolu
Add support to retrieve fixed voltage configure information through ACPI interface. This is needed for Intel Bay Trail devices, where a GPIO is used to control the USB vbus. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> --- drivers/regulator/fixed.

[PATCH v9 2/7] usb: mux: add generic code for dual role port mux

2016-05-29 Thread Lu Baolu
that users are able to control the port role from user space. Some other archs (e.g. Renesas R-Car gen2 SoCs) need an external mux to swap usb roles as well. This code could also be leveraged for those archs. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> Reviewed-by: Heikki Krogerus <hei

[PATCH v9 5/7] mfd: intel_vuport: Add Intel virtual USB port MFD Driver

2016-05-29 Thread Lu Baolu
per platform_no_drv_owner.cocci] Suggested-by: David Cohen <david.a.co...@linux.intel.com> Signed-off-by: Lu Baolu <baolu...@linux.intel.com> Reviewed-by: Felipe Balbi <ba...@kernel.org> Acked-by: Lee Jones <lee.jo...@linaro.org> --- drivers/mfd/Kconfig| 8 +++

[PATCH v9 6/7] usb: pci-quirks: add Intel USB drcfg mux device

2016-05-29 Thread Lu Baolu
mux switch. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> Reviewed-by: Felipe Balbi <ba...@kernel.org> --- drivers/usb/host/pci-quirks.c| 42 +++- drivers/usb/host/xhci-ext-caps.h | 2 ++ 2 files changed, 43 insertions(+), 1 deletion(-)

Re: [PATCH v9 7/7] MAINTAINERS: add maintainer entry for Intel USB dual role mux drivers

2016-05-30 Thread Lu Baolu
Hi Heikki, On 05/30/2016 04:16 PM, Heikki Krogerus wrote: > Hi Baolu, > > On Mon, May 30, 2016 at 01:51:44PM +0800, Lu Baolu wrote: >> Add a maintainer entry for Intel USB dual role mux drivers and >> add myself as a maintainer. >> >> Signed-off-by: L

Re: [PATCH v8 2/7] usb: mux: add generic code for dual role port mux

2016-05-25 Thread Lu Baolu
void portmux_unregister(struct portmux_dev *pdev); I will add below ones. struct portmux_dev *portmux_lookup_by_name(char *name); int portmux_switch(struct portmux_dev *pdev, enum port_role); The normal usage mode is 1) the mux device is registered as soon as a mux is detected with portmux_register(); 2) In components like USB PHY or changer drivers, the mux could be retrieved with portmux_lookup_by_name() and controlled via portmux_switch(). Is this helpful? Best regards, Lu Baolu -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH v9 7/7] MAINTAINERS: add maintainer entry for Intel USB dual role mux drivers

2016-05-31 Thread Lu Baolu
Hi, On 05/30/2016 08:53 PM, Lu Baolu wrote: > Hi Heikki, > > On 05/30/2016 04:16 PM, Heikki Krogerus wrote: >> Hi Baolu, >> >> On Mon, May 30, 2016 at 01:51:44PM +0800, Lu Baolu wrote: >>> Add a maintainer entry for Intel USB dual role mux driver

Re: [PATCH v8 2/7] usb: mux: add generic code for dual role port mux

2016-05-27 Thread Lu Baolu
x could >> > be retrieved with portmux_lookup_by_name() and controlled via >> > portmux_switch(). >> > >> > Is this helpful? > It works for me, and we can improve it later if needed. Okay, thanks. Best regards, Lu Baolu -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH v10 2/7] usb: mux: add generic code for dual role port mux

2016-06-01 Thread Lu Baolu
that users are able to control the port role from user space. Some other archs (e.g. Renesas R-Car gen2 SoCs) need an external mux to swap usb roles as well. This code could also be leveraged for those archs. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> Reviewed-by: Heikki Krogerus <hei

[PATCH v10 0/7] usb: add support for Intel dual role port mux

2016-06-01 Thread Lu Baolu
mux could be found in Cherry Trail and Broxton devices. All patches have been verified on Intel's BayTrail, CherryTrail, and Broxton P platforms. Lu Baolu (7): regulator: fixed: add support for ACPI interface usb: mux: add generic code for dual role port mux usb: mux: add driver

[PATCH v10 4/7] usb: mux: add driver for Intel drcfg controlled port mux

2016-06-01 Thread Lu Baolu
Several Intel PCHs and SOCs have an internal mux that is used to share one USB port between device controller and host controller. The mux is handled through the Dual Role Configuration Register. Signed-off-by: Heikki Krogerus <heikki.kroge...@linux.intel.com> Signed-off-by: Lu Baolu

[PATCH v10 6/7] usb: pci-quirks: add Intel USB drcfg mux device

2016-06-01 Thread Lu Baolu
mux switch. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> Reviewed-by: Felipe Balbi <ba...@kernel.org> --- drivers/usb/host/pci-quirks.c| 42 +++- drivers/usb/host/xhci-ext-caps.h | 2 ++ 2 files changed, 43 insertions(+), 1 deletion(-)

[PATCH v10 5/7] mfd: intel_vuport: Add Intel virtual USB port MFD Driver

2016-06-01 Thread Lu Baolu
per platform_no_drv_owner.cocci] Suggested-by: David Cohen <david.a.co...@linux.intel.com> Signed-off-by: Lu Baolu <baolu...@linux.intel.com> Reviewed-by: Felipe Balbi <ba...@kernel.org> Acked-by: Lee Jones <lee.jo...@linaro.org> --- drivers/mfd/Kconfig| 8 +++

[PATCH v10 3/7] usb: mux: add driver for Intel gpio controlled port mux

2016-06-01 Thread Lu Baolu
by Chanwoo Choi] Signed-off-by: David Cohen <david.a.co...@linux.intel.com> Signed-off-by: Lu Baolu <baolu...@linux.intel.com> Reviewed-by: Heikki Krogerus <heikki.kroge...@linux.intel.com> Reviewed-by: Felipe Balbi <ba...@kernel.org> Reviewed-by: Chanwoo Choi <cw00.c...@samsun

[PATCH v10 1/7] regulator: fixed: add support for ACPI interface

2016-06-01 Thread Lu Baolu
Add support to retrieve fixed voltage configure information through ACPI interface. This is needed for Intel Bay Trail devices, where a GPIO is used to control the USB vbus. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> --- drivers/regulator/fixed.

Re: [PATCH v10 6/7] usb: pci-quirks: add Intel USB drcfg mux device

2016-06-19 Thread Lu Baolu
Hi Greg, On 06/18/2016 08:58 AM, Greg Kroah-Hartman wrote: > On Thu, Jun 16, 2016 at 08:27:41AM +0800, Lu Baolu wrote: >> Hi Greg, >> >> On 06/09/2016 10:39 AM, Lu Baolu wrote: >>> Hi Greg, >>> >>> On 06/08/2016 11:45 PM, Greg Kroah-Hartman wrote: &

Re: [PATCH v10 6/7] usb: pci-quirks: add Intel USB drcfg mux device

2016-06-15 Thread Lu Baolu
Hi Greg, On 06/09/2016 10:39 AM, Lu Baolu wrote: > Hi Greg, > > On 06/08/2016 11:45 PM, Greg Kroah-Hartman wrote: >> On Wed, Jun 08, 2016 at 03:56:04PM +0800, Lu Baolu wrote: >>> Hi Greg, >>> >>> On 06/08/2016 12:45 PM, Greg Kroah-Hartman wrote: >>

Re: [PATCH v6 10/12] usb: dbc: add handshake between debug target and host

2016-01-26 Thread Lu Baolu
d test robot wrote: > >> CC: kbuild-...@01.org >> In-Reply-To: <1453781665-4714-11-git-send-email-baolu...@linux.intel.com> >> TO: Lu Baolu <baolu...@linux.intel.com> >> CC: Greg Kroah-Hartman <gre...@linuxfoundation.org> >> CC: linux-u

Re: [PATCH v6 03/12] usb: dbc: probe and setup xhci debug capability

2016-01-26 Thread Lu Baolu
On 01/26/2016 03:36 PM, Greg Kroah-Hartman wrote: > On Tue, Jan 26, 2016 at 12:14:16PM +0800, Lu Baolu wrote: >> xHCI debug capability (DbC) is an optional functionality provided >> by an xHCI host controller. Software learns this capability by >> walking through the ext

[PATCH v6 09/12] x86: early_printk: add USB3 debug port earlyprintk support

2016-01-25 Thread Lu Baolu
Add support for early printk by writing debug messages to the USB3 debug port. Users can use this type of early printk by specifying kernel parameter of "earlyprintk=xdbc". This gives users a chance of providing debug output. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> --

[PATCH v6 08/12] usb: dbc: handle endpoint stall

2016-01-25 Thread Lu Baolu
. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> --- drivers/usb/early/xhci-dbc.c | 36 1 file changed, 36 insertions(+) diff --git a/drivers/usb/early/xhci-dbc.c b/drivers/usb/early/xhci-dbc.c index c81df40..344d93e 100644 --- a/drivers/usb/early/xhci

[PATCH v6 02/12] x86: fixmap: add permanent fixmap for xhci debug port

2016-01-25 Thread Lu Baolu
in fixed_addresses table for xHCI mmio access. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> --- arch/x86/include/asm/fixmap.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/x86/include/asm/fixmap.h b/arch/x86/include/asm/fixmap.h index 6d7d0e5..84298cb 100644 --- a/arch/x86/inclu

[PATCH v6 00/12] usb: early: add support for early printk through USB3 debug port

2016-01-25 Thread Lu Baolu
ser guide information. (3) All patches rebased to the new usb-next branch which contains commit d5ddcdf(xhci: rework xhci extended capability list parsing functions). v5->v6: (1) refresh the patches against 4.5-rc1. (2) change "usb: xhci: dbc" to "usb: dbc" in the patch titles as t

[PATCH v6 03/12] usb: dbc: probe and setup xhci debug capability

2016-01-25 Thread Lu Baolu
between the debug host and target. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> --- MAINTAINERS | 7 + arch/x86/Kconfig.debug | 12 + drivers/usb/early/Makefile | 1 + drivers/usb/early/xhci-dbc.c | 774 +++ include/lin

[PATCH v6 01/12] usb: xhci: add sysfs file for xHCI debug port

2016-01-25 Thread Lu Baolu
this file will show users the state (disabled, enabled or configured) of the debug port. With a host that does NOT support debug port, "debug_port_state" file won't be created. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> --- .../ABI/testing/sysfs-bus-pci-drivers-xhci_hcd

Re: USB patch queue is now empty

2016-01-25 Thread Lu Baolu
On 01/25/2016 01:10 PM, Greg KH wrote: > Hi all, > > I've caught up with, or responded to, all of the pending USB patches in > my patch queue. So if you sent something and you didn't get an email > saying it was applied to a tree, please refresh it against the latest > release (4.5-rc1) and

[PATCH v6 06/12] usb: dbc: add bulk out and bulk in interfaces

2016-01-25 Thread Lu Baolu
This patch adds interfaces for bulk out and bulk in ops. These interfaces could be used to implement early printk bootconsole or hook to various system debuggers. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> --- drivers/usb/early/xhci-dbc.c

[PATCH v6 04/12] usb: dbc: add support for Intel xHCI dbc quirk

2016-01-25 Thread Lu Baolu
a port reset to the debug port from the host xHCI. This patch introduces this work around. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> --- drivers/usb/early/xhci-dbc.c | 52 include/linux/usb/xhci-dbc.h | 2 ++ 2 files changed, 54 inse

[PATCH v6 05/12] usb: dbc: add debug buffer

2016-01-25 Thread Lu Baolu
DBC_DEBUG is defined. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> --- drivers/usb/early/xhci-dbc.c | 62 ++-- 1 file changed, 60 insertions(+), 2 deletions(-) diff --git a/drivers/usb/early/xhci-dbc.c b/drivers/usb/early/xhci-dbc.c index

[PATCH v6 12/12] usb: doc: add document for xHCI DbC driver

2016-01-25 Thread Lu Baolu
Add Documentation/usb/xhci-dbc.txt. This document includes development status and user guide for USB3 debug port. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> --- Documentation/usb/xhci-dbc.txt | 350 + MAINTAINERS| 1 + d

[PATCH v6 07/12] usb: dbc: handle dbc-configured exit

2016-01-25 Thread Lu Baolu
DbC might exit configured state in some cases (refer to 7.6.4.4 in xHCI spec 1.1). Software needs detect and clear this situation by clearing DCCTRL.DCR and wait until the DbC configured before read or write oprations. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> --- drivers/usb/earl

[PATCH v6 11/12] usb: serial: usb_debug: add support for dbc debug device

2016-01-25 Thread Lu Baolu
This patch add dbc debug device support in usb_debug driver. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> Acked-by: Johan Hovold <jo...@kernel.org> --- drivers/usb/serial/usb_debug.c | 28 +--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --g

[PATCH v6 10/12] usb: dbc: add handshake between debug target and host

2016-01-25 Thread Lu Baolu
' in the tty application. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> --- drivers/usb/early/xhci-dbc.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/usb/early/xhci-dbc.c b/drivers/usb/early/xhci-dbc.c index 6c24ba0..37c5c87 100644 --- a/drivers/usb

Re: [PATCH v7 00/10] usb: early: add support for early printk through USB3 debug port

2016-02-03 Thread Lu Baolu
Hi Mathias, Greg is asking for your ack for these patches. Can you please help to take a look? Thanks, Baolu On 02/04/2016 05:43 AM, Greg Kroah-Hartman wrote: > On Tue, Feb 02, 2016 at 10:34:34PM +0800, Lu Baolu wrote: >> >> On 01/26/2016 08:58 PM, Lu Baolu wrote: >>>

Re: [PATCH v7 00/10] usb: early: add support for early printk through USB3 debug port

2016-02-03 Thread Lu Baolu
On 02/04/2016 05:43 AM, Greg Kroah-Hartman wrote: > On Tue, Feb 02, 2016 at 10:34:34PM +0800, Lu Baolu wrote: >> >> On 01/26/2016 08:58 PM, Lu Baolu wrote: >>> Hi, >>> >>> This patch series adds support for early printk through USB3 debug port

Re: [PATCH v7 00/10] usb: early: add support for early printk through USB3 debug port

2016-02-02 Thread Lu Baolu
On 01/26/2016 08:58 PM, Lu Baolu wrote: > Hi, > > This patch series adds support for early printk through USB3 debug port. > USB3 debug port is described in xHCI specification as an optional extended > capability. > > Patch 1 to 9 add the driver for xHCI debug capa

Re: USB patch queue is now empty

2016-01-26 Thread Lu Baolu
On 01/26/2016 03:35 PM, Greg KH wrote: > On Tue, Jan 26, 2016 at 12:19:48PM +0800, Lu Baolu wrote: >> >> On 01/25/2016 01:10 PM, Greg KH wrote: >>> Hi all, >>> >>> I've caught up with, or responded to, all of the pending USB patches in >>> my pa

[PATCH v7 03/10] usb: dbc: add support for Intel xHCI dbc quirk

2016-01-26 Thread Lu Baolu
a port reset to the debug port from the host xHCI. This patch introduces this work around. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> --- drivers/usb/early/xhci-dbc.c | 52 include/linux/usb/xhci-dbc.h | 2 ++ 2 files changed, 54 inse

[PATCH v7 04/10] usb: dbc: add debug buffer

2016-01-26 Thread Lu Baolu
DBC_DEBUG is defined. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> --- drivers/usb/early/xhci-dbc.c | 62 ++-- 1 file changed, 60 insertions(+), 2 deletions(-) diff --git a/drivers/usb/early/xhci-dbc.c b/drivers/usb/early/xhci-dbc.c index

[PATCH v7 08/10] x86: early_printk: add USB3 debug port earlyprintk support

2016-01-26 Thread Lu Baolu
Add support for early printk by writing debug messages to the USB3 debug port. Users can use this type of early printk by specifying kernel parameter of "earlyprintk=xdbc". This gives users a chance of providing debug output. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> --

[PATCH v7 09/10] usb: dbc: add handshake between debug target and host

2016-01-26 Thread Lu Baolu
' in the tty application. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> --- drivers/usb/early/xhci-dbc.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/usb/early/xhci-dbc.c b/drivers/usb/early/xhci-dbc.c index 6c24ba0..1806ea1 100644 --- a/drivers/usb

[PATCH v7 07/10] usb: dbc: handle endpoint stall

2016-01-26 Thread Lu Baolu
. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> --- drivers/usb/early/xhci-dbc.c | 36 1 file changed, 36 insertions(+) diff --git a/drivers/usb/early/xhci-dbc.c b/drivers/usb/early/xhci-dbc.c index c81df40..344d93e 100644 --- a/drivers/usb/early/xhci

[PATCH v7 10/10] usb: doc: add document for xHCI DbC driver

2016-01-26 Thread Lu Baolu
Add Documentation/usb/xhci-dbc.txt. This document includes development status and user guide for USB3 debug port. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> --- Documentation/usb/xhci-dbc.txt | 350 + MAINTAINERS| 1 + d

[PATCH v7 06/10] usb: dbc: handle dbc-configured exit

2016-01-26 Thread Lu Baolu
DbC might exit configured state in some cases (refer to 7.6.4.4 in xHCI spec 1.1). Software needs detect and clear this situation by clearing DCCTRL.DCR and wait until the DbC configured before read or write oprations. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> --- drivers/usb/earl

[PATCH v7 02/10] usb: dbc: probe and setup xhci debug capability

2016-01-26 Thread Lu Baolu
between the debug host and target. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> --- MAINTAINERS | 7 + arch/x86/Kconfig.debug | 12 + drivers/usb/early/Makefile | 1 + drivers/usb/early/xhci-dbc.c | 774 +++ include/lin

[PATCH v7 01/10] x86: fixmap: add permanent fixmap for xhci debug port

2016-01-26 Thread Lu Baolu
in fixed_addresses table for xHCI mmio access. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> --- arch/x86/include/asm/fixmap.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/x86/include/asm/fixmap.h b/arch/x86/include/asm/fixmap.h index 6d7d0e5..84298cb 100644 --- a/arch/x86/inclu

[PATCH v7 00/10] usb: early: add support for early printk through USB3 debug port

2016-01-26 Thread Lu Baolu
ned expression compared with zero: size > 0 (3) add fix for 0-DAY kernel test error: arch/x86/built-in.o: In function `setup_early_printk': early_printk.c:(.init.text+0xceba): undefined reference to `early_xdbc_init' early_printk.c:(.init.text+0xcec8): undefined reference to `early

[PATCH v7 05/10] usb: dbc: add bulk out and bulk in interfaces

2016-01-26 Thread Lu Baolu
This patch adds interfaces for bulk out and bulk in ops. These interfaces could be used to implement early printk bootconsole or hook to various system debuggers. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> --- drivers/usb/early/xhci-dbc.c

Re: [PATCH v7 00/10] usb: early: add support for early printk through USB3 debug port

2016-02-15 Thread Lu Baolu
On 02/15/2016 07:16 PM, Mathias Nyman wrote: > On 04.02.2016 01:56, Lu Baolu wrote: >> Hi Mathias, >> >> Greg is asking for your ack for these patches. Can you please >> help to take a look? >> > > I'll take look now that I finally got the USB 3.1 code do

Re: [PATCH v7 02/10] usb: dbc: probe and setup xhci debug capability

2016-02-17 Thread Lu Baolu
s and Dan Williams in case they have an opinoin about > the DMA and PCI cases. All the quirks in this file have been documented and verified to work. Your concerns are right, I'll be glad to see other opinions. > > > more comments inline > > On 26.01.2016 14:58, Lu Baolu wrot

Re: [PATCH v7 04/10] usb: dbc: add debug buffer

2016-02-18 Thread Lu Baolu
On 02/18/2016 07:43 PM, Mathias Nyman wrote: > On 26.01.2016 14:58, Lu Baolu wrote: >> "printk" is not suitable for dbc debugging especially when console >> is in usage. This patch adds a debug buffer in dbc driver and puts >> the debug messages in this local

Re: [PATCH v7 05/10] usb: dbc: add bulk out and bulk in interfaces

2016-02-18 Thread Lu Baolu
On 02/18/2016 09:32 PM, Mathias Nyman wrote: > On 26.01.2016 14:58, Lu Baolu wrote: >> This patch adds interfaces for bulk out and bulk in ops. These >> interfaces could be used to implement early printk bootconsole >> or hook to various system debuggers. >> >&g

Re: [PATCH v3 0/7] usb: add support for Intel dual role port mux

2016-03-10 Thread Lu Baolu
On 03/11/2016 08:03 AM, Greg Kroah-Hartman wrote: > On Tue, Mar 08, 2016 at 03:53:41PM +0800, Lu Baolu wrote: >> Intel SOC chips are featured with USB dual role. The host role is >> provided by Intel xHCI IP, and the gadget role is provided by IP >> from designware. Ta

Re: [PATCH v3 3/7] usb: mux: add common code for Intel dual role port mux

2016-03-10 Thread Lu Baolu
On 03/11/2016 07:57 AM, Greg Kroah-Hartman wrote: > On Thu, Mar 10, 2016 at 01:39:43PM +0100, Oliver Neukum wrote: >> On Tue, 2016-03-08 at 15:53 +0800, Lu Baolu wrote: >> >>> diff --git a/Documentation/ABI/testing/sysfs-bus-platform >>> b/Documentation/ABI/tes

[PATCH v4 3/7] usb: mux: add common code for Intel dual role port mux

2016-03-18 Thread Lu Baolu
HOST and PERIPHERAL; 3) The required action to do the real port switch. This patch adds the common code to handle usb port mux. With this common code, the individual mux driver, which always is platform dependent, could focus on the real operation of mux switch. Signed-off-by: Lu Baolu <ba

Re: [PATCH v4 3/7] usb: mux: add common code for Intel dual role port mux

2016-03-18 Thread Lu Baolu
On 03/17/2016 03:27 PM, Chanwoo Choi wrote: > Hi Lu, > > On 2016년 03월 17일 16:16, Lu Baolu wrote: >> Hi Chanwoo, >> >> On 03/17/2016 02:07 PM, Chanwoo Choi wrote: >>> Hi Lu, >>> >>> To handle extcon (external connector), I implemented th

Re: [PATCH v3 3/7] usb: mux: add common code for Intel dual role port mux

2016-03-13 Thread Lu Baolu
Hi, On 03/11/2016 08:06 AM, Greg Kroah-Hartman wrote: > On Tue, Mar 08, 2016 at 03:53:44PM +0800, Lu Baolu wrote: >> Several Intel PCHs and SOCs have an internal mux that is used to >> share one USB port between device controller and host controller. >> >> A usb p

Re: [PATCH v3 3/7] usb: mux: add common code for Intel dual role port mux

2016-03-14 Thread Lu Baolu
On 03/14/2016 11:27 AM, Greg Kroah-Hartman wrote: > On Mon, Mar 14, 2016 at 09:09:22AM +0800, Lu Baolu wrote: >> On 03/11/2016 08:06 AM, Greg Kroah-Hartman wrote: >>> On Tue, Mar 08, 2016 at 03:53:44PM +0800, Lu Baolu wrote: >>>> +struct intel_mux_dev { >>>

[PATCH v5 4/6] usb: mux: add driver for Intel gpio controlled port mux

2016-03-19 Thread Lu Baolu
In some Intel platforms, a single usb port is shared between USB host and device controller. The shared port is under control of GPIO pins. This patch adds the support for USB GPIO controlled port mux. Signed-off-by: David Cohen <david.a.co...@linux.intel.com> Signed-off-by: Lu Baolu

[PATCH v5 2/6] extcon: usb-gpio: add support for ACPI gpio interface

2016-03-19 Thread Lu Baolu
GPIO resource could be retrieved through APCI as well. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> Reviewed-by: Felipe Balbi <ba...@kernel.org> Acked-by: Chanwoo Choi <cw00.c...@samsung.com> --- drivers/extcon/extcon-usb-gpio.c | 3 ++- 1 file changed, 2 insertions(+), 1

[PATCH v4 5/7] usb: mux: add driver for Intel drcfg controlled port mux

2016-03-18 Thread Lu Baolu
Several Intel PCHs and SOCs have an internal mux that is used to share one USB port between device controller and host controller. The mux is handled through the Dual Role Configuration Register. Signed-off-by: Heikki Krogerus <heikki.kroge...@linux.intel.com> Signed-off-by: Lu Baolu

Re: [PATCH v3 3/7] usb: mux: add common code for Intel dual role port mux

2016-04-05 Thread Lu Baolu
Hi, On 03/11/2016 07:57 AM, Greg Kroah-Hartman wrote: > On Thu, Mar 10, 2016 at 01:39:43PM +0100, Oliver Neukum wrote: >> On Tue, 2016-03-08 at 15:53 +0800, Lu Baolu wrote: >> >>> diff --git a/Documentation/ABI/testing/sysfs-bus-platform >>> b/Documentati

Re: [PATCH v3 3/7] usb: mux: add common code for Intel dual role port mux

2016-04-06 Thread Lu Baolu
Hi, On 03/14/2016 11:27 AM, Greg Kroah-Hartman wrote: > On Mon, Mar 14, 2016 at 09:09:22AM +0800, Lu Baolu wrote: >> On 03/11/2016 08:06 AM, Greg Kroah-Hartman wrote: >>> On Tue, Mar 08, 2016 at 03:53:44PM +0800, Lu Baolu wrote: >>>> +struct intel_mux_dev

[PATCH v5 1/6] extcon: usb-gpio: add device binding for platform device

2016-03-19 Thread Lu Baolu
This is needed to handle the GPIO connected USB ID pin found on Intel Baytrail devices. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> Reviewed-by: Felipe Balbi <ba...@kernel.org> Acked-by: Chanwoo Choi <cw00.c...@samsung.com> --- drivers/extcon/extcon-usb-gpio.c | 7 +

[PATCH v5 3/6] usb: mux: add common code for Intel dual role port mux

2016-03-19 Thread Lu Baolu
HOST and PERIPHERAL; 3) The required action to do the real port switch. This patch adds the common code to handle usb port mux. With this common code, the individual mux driver, which always is platform dependent, could focus on the real operation of mux switch. Signed-off-by: Lu Baolu <ba

[PATCH v4 6/7] usb: pci-quirks: add Intel USB drcfg mux device

2016-03-19 Thread Lu Baolu
mux switch. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> Reviewed-by: Felipe Balbi <ba...@kernel.org> --- drivers/usb/host/pci-quirks.c| 47 ++-- drivers/usb/host/xhci-ext-caps.h | 2 ++ 2 files changed, 47 insertions(+), 2 deletions(-)

[PATCH v5 0/6] usb: add support for Intel dual role port mux

2016-03-19 Thread Lu Baolu
for USB port mux controlled through memory mapped registers and the logic to create the mux device. This type of dual role port mux could be found in Cherry Trail and Broxton devices. Lu Baolu (6): extcon: usb-gpio: add device binding for platform device extcon: usb-gpio: add support

[PATCH v4 1/7] extcon: usb-gpio: add device binding for platform device

2016-03-19 Thread Lu Baolu
This is needed to handle the GPIO connected USB ID pin found on Intel Baytrail devices. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> Reviewed-by: Felipe Balbi <ba...@kernel.org> Acked-by: Chanwoo Choi <cw00.c...@samsung.com> --- drivers/extcon/extcon-usb-gpio.c | 7 +

Re: [PATCH v5 3/6] usb: mux: add common code for Intel dual role port mux

2016-03-19 Thread Lu Baolu
Hi Chanwoo, On 03/18/2016 03:52 PM, Chanwoo Choi wrote: > Hi Baolu, > > On 2016년 03월 18일 15:32, Lu Baolu wrote: >> Several Intel PCHs and SOCs have an internal mux that is used to >> share one USB port between device controller and host controller. >> >> A

[PATCH v4 7/7] mfd: intel_vuport: Add Intel virtual USB port MFD Driver

2016-03-19 Thread Lu Baolu
Some Intel platforms have an USB port mux controlled by GPIOs. There's a single ACPI platform device that provides both USB ID extcon device and a USB port mux device. This MFD driver will split the 2 devices for their respective drivers. Signed-off-by: Lu Baolu <baolu...@linux.intel.

[PATCH v4 2/7] extcon: usb-gpio: add support for ACPI gpio interface

2016-03-19 Thread Lu Baolu
GPIO resource could be retrieved through APCI as well. Signed-off-by: Lu Baolu <baolu...@linux.intel.com> Reviewed-by: Felipe Balbi <ba...@kernel.org> Acked-by: Chanwoo Choi <cw00.c...@samsung.com> --- drivers/extcon/extcon-usb-gpio.c | 3 ++- 1 file changed, 2 insertions(+), 1

Re: [PATCH v4 3/7] usb: mux: add common code for Intel dual role port mux

2016-03-19 Thread Lu Baolu
function with unique id on patch[2] > [2] 5960387a2fb83 (usb: dwc3: omap: Replace deprecated API of extcon) Thanks. That's helpful. By the way, is extcon_get_extcon_dev() still available? > > I'm sorry for late reply. I add the some comment on below. Never mind. Thank you for remin

[PATCH v5 5/6] usb: mux: add driver for Intel drcfg controlled port mux

2016-03-19 Thread Lu Baolu
Several Intel PCHs and SOCs have an internal mux that is used to share one USB port between device controller and host controller. The mux is handled through the Dual Role Configuration Register. Signed-off-by: Heikki Krogerus <heikki.kroge...@linux.intel.com> Signed-off-by: Lu Baolu

Re: [PATCH v5 6/6] mfd: intel_vuport: Add Intel virtual USB port MFD Driver

2016-03-19 Thread Lu Baolu
On 03/18/2016 04:09 PM, Lee Jones wrote: > On Fri, 18 Mar 2016, Lu Baolu wrote: > >> Some Intel platforms have an USB port mux controlled by GPIOs. >> There's a single ACPI platform device that provides both USB ID >> extcon device and a USB port mux device. This MFD dr

[PATCH v4 4/7] usb: mux: add driver for Intel gpio controlled port mux

2016-03-20 Thread Lu Baolu
In some Intel platforms, a single usb port is shared between USB host and device controller. The shared port is under control of GPIO pins. This patch adds the support for USB GPIO controlled port mux. Signed-off-by: David Cohen <david.a.co...@linux.intel.com> Signed-off-by: Lu Baolu

Re: 答复: 【xhci】suspend and resume core dump problem

2016-03-21 Thread Lu Baolu
Hi, On 03/22/2016 11:17 AM, Lipengcheng wrote: > Hi, > Thanks for your reply. > When the suspend and resume process , the operation of press ctrl + c will > produce an interruput and cause to allocate memory failed. It causes the usb3 > module can not be used and core dump after resume

<    1   2   3   4   5   6   7   >