[PATCH 23/29] arm: mmp: add extern chip support for brownstone

2012-11-22 Thread Chao Xie
From: Chao Xie Signed-off-by: Chao Xie --- arch/arm/mach-mmp/brownstone.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-mmp/brownstone.c b/arch/arm/mach-mmp/brownstone.c index 90c0340..3dcf38f 100644 --- a/arch/arm/mach-mmp/brownstone.c +++ b/arch/arm

[PATCH 15/29] arm: brownstone: add usb support for the board

2012-11-22 Thread Chao Xie
From: Chao Xie Signed-off-by: Chao Xie --- arch/arm/mach-mmp/brownstone.c | 47 1 files changed, 47 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-mmp/brownstone.c b/arch/arm/mach-mmp/brownstone.c index 5cb769c..90c0340 100644 --- a/arch

[PATCH 04/29] usb: otg: mv_otg: use devm_xxx for probe

2012-11-22 Thread Chao Xie
From: Chao Xie Signed-off-by: Chao Xie --- drivers/usb/otg/mv_otg.c | 82 - 1 files changed, 22 insertions(+), 60 deletions(-) diff --git a/drivers/usb/otg/mv_otg.c b/drivers/usb/otg/mv_otg.c index 3f124e8..70e222d 100644 --- a/drivers/usb/otg

[PATCH 01/29] usb: gadget: mv_udc: use udc_start and udc_stop functions

2012-11-22 Thread Chao Xie
From: Chao Xie udc_start and udc_stop reduce code duplication in comparison to start and stop generalising calls done by all drivers (i.e. bind and unbind) and moving these calls to common code. Signed-off-by: Chao Xie --- drivers/usb/gadget/mv_udc_core.c | 81

[PATCH 06/29] usb: host: ehci-mv: fix clk APIs

2012-11-22 Thread Chao Xie
From: Chao Xie Signed-off-by: Chao Xie --- drivers/usb/host/ehci-mv.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/ehci-mv.c b/drivers/usb/host/ehci-mv.c index f7bfc0b..6c56297 100644 --- a/drivers/usb/host/ehci-mv.c +++ b/drivers/usb/host/ehci

[PATCH 07/29] usb: host: ehci-mv: remove unused variable

2012-11-22 Thread Chao Xie
From: Chao Xie Signed-off-by: Chao Xie --- drivers/usb/host/ehci-mv.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/usb/host/ehci-mv.c b/drivers/usb/host/ehci-mv.c index 6c56297..3065809 100644 --- a/drivers/usb/host/ehci-mv.c +++ b/drivers/usb/host/ehci-mv.c

[PATCH 03/29] usb: gadget: mv_udc: fix the clk APIs

2012-11-22 Thread Chao Xie
From: Chao Xie Signed-off-by: Chao Xie --- drivers/usb/gadget/mv_udc_core.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/mv_udc_core.c b/drivers/usb/gadget/mv_udc_core.c index 1104327..c78d52f 100644 --- a/drivers/usb/gadget/mv_udc_core.c +++ b

[PATCH 05/29] usb: otg: mv_otg: fix the clk APIs

2012-11-22 Thread Chao Xie
From: Chao Xie Signed-off-by: Chao Xie --- drivers/usb/otg/mv_otg.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/otg/mv_otg.c b/drivers/usb/otg/mv_otg.c index 70e222d..ffc0689 100644 --- a/drivers/usb/otg/mv_otg.c +++ b/drivers/usb/otg/mv_otg.c

[PATCH 09/29] usb: phy: mv_usb2: add PHY driver for marvell usb2 controller

2012-11-22 Thread Chao Xie
From: Chao Xie The PHY driver will be used by marvell udc/otg/ehci Signed-off-by: Chao Xie --- drivers/usb/phy/Kconfig |7 + drivers/usb/phy/Makefile |1 + drivers/usb/phy/mv_usb2_phy.c| 454 ++ include/linux

[PATCH 02/29] usb: gadget: mv_udc: use devm_xxx for probe

2012-11-22 Thread Chao Xie
From: Chao Xie Signed-off-by: Chao Xie --- drivers/usb/gadget/mv_udc_core.c | 156 ++ 1 files changed, 56 insertions(+), 100 deletions(-) diff --git a/drivers/usb/gadget/mv_udc_core.c b/drivers/usb/gadget/mv_udc_core.c index fa4950a..1104327 100644 --- a

[PATCH 17/29] arm: mmp: remove the usb phy setting

2012-11-22 Thread Chao Xie
From: Chao Xie Signed-off-by: Chao Xie --- arch/arm/mach-mmp/devices.c | 278 - arch/arm/mach-mmp/include/mach/regs-usb.h | 253 -- 2 files changed, 0 insertions(+), 531 deletions(-) delete mode 100644 arch/arm/mach-mmp

[PATCH 11/29] usb: ehci: ehci-mv: use PHY driver for ehci

2012-11-22 Thread Chao Xie
From: Chao Xie Signed-off-by: Chao Xie --- drivers/usb/host/ehci-mv.c | 37 + 1 files changed, 13 insertions(+), 24 deletions(-) diff --git a/drivers/usb/host/ehci-mv.c b/drivers/usb/host/ehci-mv.c index 3065809..be504fd 100644 --- a/drivers/usb/host/ehci

[PATCH 14/29] arm: pxa910: change the defintion of usb devices

2012-11-22 Thread Chao Xie
From: Chao Xie Signed-off-by: Chao Xie --- arch/arm/mach-mmp/include/mach/pxa910.h |7 --- arch/arm/mach-mmp/pxa910.c |4 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-mmp/include/mach/pxa910.h b/arch/arm/mach-mmp/include/mach

[PATCH 12/29] usb: otg: mv_otg: use PHY driver for otg

2012-11-22 Thread Chao Xie
From: Chao Xie Signed-off-by: Chao Xie --- drivers/usb/otg/mv_otg.c | 33 - drivers/usb/otg/mv_otg.h |2 +- 2 files changed, 13 insertions(+), 22 deletions(-) diff --git a/drivers/usb/otg/mv_otg.c b/drivers/usb/otg/mv_otg.c index ffc0689..344f246 100644

[PATCH 08/29] usb: gadget: mv_udc: fix the value of tranceiver

2012-11-22 Thread Chao Xie
From: Chao Xie Signed-off-by: Chao Xie --- drivers/usb/gadget/mv_udc_core.c | 15 ++- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/usb/gadget/mv_udc_core.c b/drivers/usb/gadget/mv_udc_core.c index c78d52f..c4adfeb 100644 --- a/drivers/usb/gadget

[PATCH 10/29] usb: gadget: mv_udc: use PHY driver for udc

2012-11-22 Thread Chao Xie
From: Chao Xie It will get rid of the callbacks in pdata for phy init/shutdown Signed-off-by: Chao Xie --- drivers/usb/gadget/mv_udc.h |2 +- drivers/usb/gadget/mv_udc_core.c | 23 --- 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/drivers/usb

[PATCH 16/29] arm: ttc_dkb: add usb support

2012-11-22 Thread Chao Xie
From: Chao Xie Signed-off-by: Chao Xie --- arch/arm/mach-mmp/ttc_dkb.c | 30 +++--- 1 files changed, 19 insertions(+), 11 deletions(-) diff --git a/arch/arm/mach-mmp/ttc_dkb.c b/arch/arm/mach-mmp/ttc_dkb.c index ce55fd8..0962791 100644 --- a/arch/arm/mach-mmp

[PATCH 28/29] arm: mmp: devicetree: add usb support for mmp2

2012-11-22 Thread Chao Xie
From: Chao Xie Enable usb devices for mmp2 device tree. Signed-off-by: Chao Xie --- arch/arm/boot/dts/mmp2.dtsi | 30 ++ arch/arm/mach-mmp/mmp2-dt.c |4 2 files changed, 34 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch

[PATCH 29/29] arm: mmp: devicetree: add usb support for pxa910_dkb

2012-11-22 Thread Chao Xie
From: Chao Xie Signed-off-by: Chao Xie --- arch/arm/boot/dts/pxa910.dtsi | 30 ++ arch/arm/mach-mmp/mmp-dt.c|5 + 2 files changed, 35 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/pxa910.dtsi b/arch/arm/boot/dts/pxa910.dtsi index

[PATCH 18/29] arm: mmp: remove usb devices from pxa168

2012-11-22 Thread Chao Xie
From: Chao Xie Signed-off-by: Chao Xie --- arch/arm/mach-mmp/pxa168.c | 42 -- 1 files changed, 0 insertions(+), 42 deletions(-) diff --git a/arch/arm/mach-mmp/pxa168.c b/arch/arm/mach-mmp/pxa168.c index b7f074f..dd3a68b 100644 --- a/arch/arm/mach-mmp

[PATCH 20/29] usb: gadget: mv_udc: add extern chip support

2012-11-22 Thread Chao Xie
From: Chao Xie Signed-off-by: Chao Xie --- drivers/usb/gadget/mv_udc.h |3 ++ drivers/usb/gadget/mv_udc_core.c | 45 ++--- 2 files changed, 30 insertions(+), 18 deletions(-) diff --git a/drivers/usb/gadget/mv_udc.h b/drivers/usb/gadget/mv_udc.h index

[PATCH 13/29] arm: mmp2: change the defintion of usb devices

2012-11-22 Thread Chao Xie
From: Chao Xie Signed-off-by: Chao Xie --- arch/arm/mach-mmp/include/mach/mmp2.h |4 arch/arm/mach-mmp/mmp2.c |4 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-mmp/include/mach/mmp2.h b/arch/arm/mach-mmp/include/mach/mmp2.h index

[PATCH 19/29] usb: phy: mv_usb2_phy: add externel chip support

2012-11-22 Thread Chao Xie
From: Chao Xie For the vbus and idpin detection. It may be completed by some external chip. The controller need clock on and PHY enabled to detect the vbus/idpin. It will increase the power. So using the external chip to detect the vbus and idpin can save the power. Signed-off-by: Chao Xie

[PATCH 22/29] usb: otg: mv_otg: add extern chip support

2012-11-22 Thread Chao Xie
From: Chao Xie Signed-off-by: Chao Xie --- drivers/usb/otg/mv_otg.c | 63 - drivers/usb/otg/mv_otg.h |3 ++ 2 files changed, 31 insertions(+), 35 deletions(-) diff --git a/drivers/usb/otg/mv_otg.c b/drivers/usb/otg/mv_otg.c index 344f246

[PATCH 21/29] usb: ehci: ehci-mv: add extern chip support

2012-11-22 Thread Chao Xie
From: Chao Xie Signed-off-by: Chao Xie --- drivers/usb/host/ehci-mv.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/usb/host/ehci-mv.c b/drivers/usb/host/ehci-mv.c index be504fd..171e145 100644 --- a/drivers/usb/host/ehci-mv.c +++ b/drivers/usb

[PATCH 24/29] arm: mmp: add extern chip support for ttc_dkb

2012-11-22 Thread Chao Xie
From: Chao Xie Signed-off-by: Chao Xie --- arch/arm/mach-mmp/ttc_dkb.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-mmp/ttc_dkb.c b/arch/arm/mach-mmp/ttc_dkb.c index 0962791..eb34608 100644 --- a/arch/arm/mach-mmp/ttc_dkb.c +++ b/arch/arm/mach-mmp

[PATCH 25/29] usb: gadget: mv_udc: add device tree support

2012-11-22 Thread Chao Xie
From: Chao Xie Signed-off-by: Chao Xie --- drivers/usb/gadget/mv_udc.h |5 +- drivers/usb/gadget/mv_udc_core.c | 105 ++ 2 files changed, 85 insertions(+), 25 deletions(-) diff --git a/drivers/usb/gadget/mv_udc.h b/drivers/usb/gadget/mv_udc.h

[PATCH 26/29] usb: otg: mv_otg: add device tree support

2012-11-22 Thread Chao Xie
From: Chao Xie Signed-off-by: Chao Xie --- drivers/usb/otg/mv_otg.c | 127 + drivers/usb/otg/mv_otg.h |6 +- 2 files changed, 107 insertions(+), 26 deletions(-) diff --git a/drivers/usb/otg/mv_otg.c b/drivers/usb/otg/mv_otg.c index bd6369c

[PATCH 27/29] usb: ehci: ehci-mv: add device tree support

2012-11-22 Thread Chao Xie
From: Chao Xie Signed-off-by: Chao Xie --- drivers/usb/host/ehci-mv.c | 104 +--- 1 files changed, 79 insertions(+), 25 deletions(-) diff --git a/drivers/usb/host/ehci-mv.c b/drivers/usb/host/ehci-mv.c index 171e145..0e99dac 100644 --- a/drivers/usb

[PATCH 00/27] mv-usb fix and enhancement patches

2012-11-25 Thread Chao Xie
From: Chao Xie The patches are divied into 3 parts 1. bug fixes usb: gadget: mv_udc: use udc_start and udc_stop functions usb: gadget: mv_udc: use devm_xxx for probe usb: gadget: mv_udc: fix the clk APIs usb: otg: mv_otg: use devm_xxx for probe usb: otg: mv_otg: fix the clk APIs usb

[PATCH 01/27] usb: gadget: mv_udc: use udc_start and udc_stop functions

2012-11-25 Thread Chao Xie
From: Chao Xie This patches converts the driver into the new style start/stop interface. As a result the driver no longer uses the static global the_conroller variable. Signed-off-by: Chao Xie --- drivers/usb/gadget/mv_udc_core.c | 81 +- 1 files changed

[PATCH 02/27] usb: gadget: mv_udc: use devm_xxx for probe

2012-11-25 Thread Chao Xie
From: Chao Xie use devm_xxx for udc driver probe. So we do need care about the resources release in driver remove or failure handling in driver probe. Signed-off-by: Chao Xie --- drivers/usb/gadget/mv_udc_core.c | 156 ++ 1 files changed, 56 insertions

[PATCH 05/27] usb: otg: mv_otg: fix the clk APIs

2012-11-25 Thread Chao Xie
From: Chao Xie the clock common driver changes, and arch-mmp will make use of the common clock driver instead of its own. So for enable clock. first prepare the clock then enable the clock. for disable clock first disable the clock then unprepare the clock Signed-off-by: Chao Xie --- drivers

[PATCH 03/27] usb: gadget: mv_udc: fix the clk APIs

2012-11-25 Thread Chao Xie
From: Chao Xie the clock common driver changes, and arch-mmp will make use of the common clock driver instead of its own. So for enable clock. first prepare the clock then enable the clock. for disable clock first disable the clock then unprepare the clock Signed-off-by: Chao Xie --- drivers

[PATCH 04/27] usb: otg: mv_otg: use devm_xxx for probe

2012-11-25 Thread Chao Xie
From: Chao Xie use devm_xxx for otg driver probe. So we do need care about the resources release in driver remove or failure handling in driver probe. Signed-off-by: Chao Xie --- drivers/usb/otg/mv_otg.c | 82 - 1 files changed, 22 insertions

[PATCH 07/27] usb: host: ehci-mv: remove unused variable

2012-11-25 Thread Chao Xie
From: Chao Xie Signed-off-by: Chao Xie --- drivers/usb/host/ehci-mv.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/usb/host/ehci-mv.c b/drivers/usb/host/ehci-mv.c index 6c56297..3065809 100644 --- a/drivers/usb/host/ehci-mv.c +++ b/drivers/usb/host/ehci-mv.c

[PATCH 06/27] usb: host: ehci-mv: fix clk APIs

2012-11-25 Thread Chao Xie
From: Chao Xie the clock common driver changes, and arch-mmp will make use of the common clock driver instead of its own. So for enable clock. first prepare the clock then enable the clock. for disable clock first disable the clock then unprepare the clock Signed-off-by: Chao Xie --- drivers

[PATCH 08/27] usb: gadget: mv_udc: fix the value of tranceiver

2012-11-25 Thread Chao Xie
From: Chao Xie usally we will use udc->tranceiver == NULL or udc->tranceiver != NULL. So when failed to get the udc->tranceiver by usb_get_phy(), we directly set udc->tranceiver to be NULL. Then the source code will not need macro IS_ERR_OR_NULL() for udc->tranceiver judgement. It

[PATCH 10/27] usb: gadget: mv_udc: use PHY driver for udc

2012-11-25 Thread Chao Xie
From: Chao Xie Originaly, udc driver will call the callbacks in platform data for PHY initialization and shut down. With PHY driver, it will call the APIs provided by PHY driver for PHY initialization and shut down. It removes the callbacks in platform data, and at same time it removes one block

[PATCH 09/27] usb: phy: mv_usb2: add PHY driver for marvell usb2 controller

2012-11-25 Thread Chao Xie
From: Chao Xie The PHY is seperated from usb controller. The usb controller used in marvell pxa168/pxa910/mmp2 are same, but PHY initialization may be different. the usb controller can support udc/otg/ehci, and for each of the mode, it need PHY to initialized before use the controller. Directly

[PATCH 12/27] usb: otg: mv_otg: use PHY driver for otg

2012-11-25 Thread Chao Xie
From: Chao Xie Originaly, otg driver will call the callbacks in platform data for PHY initialization and shut down. With PHY driver, it will call the APIs provided by PHY driver for PHY initialization and shut down. It removes the callbacks in platform data, and at same time it removes one block

[PATCH 13/27] arm: mmp2: change the defintion of usb devices

2012-11-25 Thread Chao Xie
From: Chao Xie add the udc/otg/ehci devices for mmp2 Signed-off-by: Chao Xie --- arch/arm/mach-mmp/include/mach/mmp2.h |4 arch/arm/mach-mmp/mmp2.c |4 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-mmp/include/mach/mmp2.h b/arch

[PATCH 14/27] arm: pxa910: change the defintion of usb devices

2012-11-25 Thread Chao Xie
From: Chao Xie because phy is seperated from the usb controller driver, we can use the common pxa_device_desc for device register. Signed-off-by: Chao Xie --- arch/arm/mach-mmp/include/mach/pxa910.h |7 --- arch/arm/mach-mmp/pxa910.c |4 2 files changed, 8

[PATCH 15/27] arm: brownstone: add usb support for the board

2012-11-25 Thread Chao Xie
From: Chao Xie for brownstone board, add the udc/otg/ehci support Signed-off-by: Chao Xie --- arch/arm/mach-mmp/brownstone.c | 47 1 files changed, 47 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-mmp/brownstone.c b/arch/arm/mach-mmp

[PATCH 11/27] usb: ehci: ehci-mv: use PHY driver for ehci

2012-11-25 Thread Chao Xie
From: Chao Xie Originaly, ehci driver will call the callbacks in platform data for PHY initialization and shut down. With PHY driver, it will call the APIs provided by PHY driver for PHY initialization and shut down. It removes the callbacks in platform data, and at same time it removes one

[PATCH 17/27] arm: mmp: remove the usb phy setting

2012-11-25 Thread Chao Xie
From: Chao Xie phy setting are formatted into a phy driver at drivers/usb/phy, we do not need do the setting in SOC files. Signed-off-by: Chao Xie --- arch/arm/mach-mmp/devices.c | 278 - arch/arm/mach-mmp/include/mach/regs-usb.h | 253

[PATCH 16/27] arm: ttc_dkb: add usb support

2012-11-25 Thread Chao Xie
From: Chao Xie for ttc_dkb board, add udc/otg/ehci support Signed-off-by: Chao Xie --- arch/arm/mach-mmp/ttc_dkb.c | 30 +++--- 1 files changed, 19 insertions(+), 11 deletions(-) diff --git a/arch/arm/mach-mmp/ttc_dkb.c b/arch/arm/mach-mmp/ttc_dkb.c index ce55fd8

[PATCH 20/27] usb: gadget: mv_udc: add extern chip support

2012-11-25 Thread Chao Xie
From: Chao Xie Because arch-mmp will make use of irq domain for irq allocation, the irqs allocated for PMIC is dynamical. The vbus/idpin irqs from PMIC can not be passed by platform data. Using the extern chip APIs provides by PHY driver can solve this problem. Marvell usb PHY driver provides a

[PATCH 21/27] usb: ehci: ehci-mv: add extern chip support

2012-11-25 Thread Chao Xie
From: Chao Xie It does the similar things as what we do for udc driver. Signed-off-by: Chao Xie --- drivers/usb/host/ehci-mv.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/usb/host/ehci-mv.c b/drivers/usb/host/ehci-mv.c index be504fd..171e145

[PATCH 19/27] usb: phy: mv_usb2_phy: add externel chip support

2012-11-25 Thread Chao Xie
From: Chao Xie For the vbus and idpin detection. It may be completed by some external chip, for example the pmic chip 88pm860x in driver/mfd can do it. Although the usb controller can detect the vbus and id pin, but it need clock on and PHY enabled to detect the vbus/idpin. It will increase the

[PATCH 18/27] arm: mmp: remove usb devices from pxa168

2012-11-25 Thread Chao Xie
From: Chao Xie Signed-off-by: Chao Xie --- arch/arm/mach-mmp/pxa168.c | 42 -- 1 files changed, 0 insertions(+), 42 deletions(-) diff --git a/arch/arm/mach-mmp/pxa168.c b/arch/arm/mach-mmp/pxa168.c index b7f074f..dd3a68b 100644 --- a/arch/arm/mach-mmp

[PATCH 22/27] usb: otg: mv_otg: add extern chip support

2012-11-25 Thread Chao Xie
From: Chao Xie It does the similar things as what we do for udc driver. Signed-off-by: Chao Xie --- drivers/usb/otg/mv_otg.c | 63 - drivers/usb/otg/mv_otg.h |3 ++ 2 files changed, 31 insertions(+), 35 deletions(-) diff --git a/drivers/usb

[PATCH 25/27] usb: gadget: mv_udc: add device tree support

2012-11-25 Thread Chao Xie
From: Chao Xie In original driver, we have callbacks in platform data, and some dynamically allocations variables in platform data. Now, these blocks are removed, the device tree support is easier now. Signed-off-by: Chao Xie --- drivers/usb/gadget/mv_udc.h |5 +- drivers/usb/gadget

[PATCH 27/27] usb: ehci: ehci-mv: add device tree support

2012-11-25 Thread Chao Xie
From: Chao Xie All blocks are removed. Add the device tree support for ehci. Signed-off-by: Chao Xie --- drivers/usb/host/ehci-mv.c | 104 +--- 1 files changed, 79 insertions(+), 25 deletions(-) diff --git a/drivers/usb/host/ehci-mv.c b/drivers/usb

[PATCH 26/27] usb: otg: mv_otg: add device tree support

2012-11-25 Thread Chao Xie
From: Chao Xie All blocks are removed. Add the device tree support for otg. Signed-off-by: Chao Xie --- drivers/usb/otg/mv_otg.c | 127 + drivers/usb/otg/mv_otg.h |6 +- 2 files changed, 107 insertions(+), 26 deletions(-) diff --git a/drivers

[PATCH 24/27] arm: mmp: add extern chip support for ttc_dkb

2012-11-25 Thread Chao Xie
From: Chao Xie Change the board support for usb as extern chip is supported in marvell usb PHY driver. Signed-off-by: Chao Xie --- arch/arm/mach-mmp/ttc_dkb.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-mmp/ttc_dkb.c b/arch/arm/mach-mmp/ttc_dkb.c

[PATCH 23/27] arm: mmp: add extern chip support for brownstone

2012-11-25 Thread Chao Xie
From: Chao Xie Change the board support for usb as extern chip is supported in marvell usb PHY driver Signed-off-by: Chao Xie --- arch/arm/mach-mmp/brownstone.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-mmp/brownstone.c b/arch/arm/mach-mmp

Re: [PATCH 01/27] usb: gadget: mv_udc: use udc_start and udc_stop functions

2012-11-26 Thread Chao Xie
rote: >> > > On Sun, Nov 25, 2012 at 11:43:14PM -0500, Chao Xie wrote: >> > > > From: Chao Xie >> > > > >> > > > This patches converts the driver into the new style start/stop >> > > > interface. As a result the

[V2 PATCH 00/27] mv-usb fix and enhancement patches

2012-11-27 Thread Chao Xie
;V1: Change the Signed-off-by to be right email address Chao Xie (27): usb: gadget: mv_udc: use udc_start and udc_stop functions usb: gadget: mv_udc: use devm_xxx for probe usb: gadget: mv_udc: fix the clk APIs usb: otg: mv_otg: use devm_xxx for probe usb: otg: mv_otg: fix the clk APIs

[V2 PATCH 01/27] usb: gadget: mv_udc: use udc_start and udc_stop functions

2012-11-27 Thread Chao Xie
This patches converts the driver into the new style start/stop interface. As a result the driver no longer uses the static global the_conroller variable. Signed-off-by: Chao Xie --- drivers/usb/gadget/mv_udc_core.c | 81 +- 1 files changed, 36 insertions

[V2 PATCH 02/27] usb: gadget: mv_udc: use devm_xxx for probe

2012-11-27 Thread Chao Xie
use devm_xxx for udc driver probe. So we do need care about the resources release in driver remove or failure handling in driver probe. Signed-off-by: Chao Xie --- drivers/usb/gadget/mv_udc_core.c | 156 ++ 1 files changed, 56 insertions(+), 100 deletions

[V2 PATCH 03/27] usb: gadget: mv_udc: fix the clk APIs

2012-11-27 Thread Chao Xie
the clock common driver changes, and arch-mmp will make use of the common clock driver instead of its own. So for enable clock. first prepare the clock then enable the clock. for disable clock first disable the clock then unprepare the clock Signed-off-by: Chao Xie --- drivers/usb/gadget

[V2 PATCH 04/27] usb: otg: mv_otg: use devm_xxx for probe

2012-11-27 Thread Chao Xie
use devm_xxx for otg driver probe. So we do need care about the resources release in driver remove or failure handling in driver probe. Signed-off-by: Chao Xie --- drivers/usb/otg/mv_otg.c | 82 - 1 files changed, 22 insertions(+), 60 deletions

[V2 PATCH 07/27] usb: host: ehci-mv: remove unused variable

2012-11-27 Thread Chao Xie
Signed-off-by: Chao Xie Acked-by: Alan Stern --- drivers/usb/host/ehci-mv.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/usb/host/ehci-mv.c b/drivers/usb/host/ehci-mv.c index 6c56297..3065809 100644 --- a/drivers/usb/host/ehci-mv.c +++ b/drivers/usb/host/ehci

[V2 PATCH 08/27] usb: gadget: mv_udc: fix the value of tranceiver

2012-11-27 Thread Chao Xie
e line size and make the judgement simple. Signed-off-by: Chao Xie --- drivers/usb/gadget/mv_udc_core.c | 15 ++- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/usb/gadget/mv_udc_core.c b/drivers/usb/gadget/mv_udc_core.c index c78d52f..c4adfeb 100644 --- a/dri

[V2 PATCH 10/27] usb: gadget: mv_udc: use PHY driver for udc

2012-11-27 Thread Chao Xie
enabling device tree for udc driver. Signed-off-by: Chao Xie --- drivers/usb/gadget/mv_udc.h |2 +- drivers/usb/gadget/mv_udc_core.c | 23 --- 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/drivers/usb/gadget/mv_udc.h b/drivers/usb/gadget/mv_udc.h

[V2 PATCH 13/27] arm: mmp2: change the defintion of usb devices

2012-11-27 Thread Chao Xie
add the udc/otg/ehci devices for mmp2 Signed-off-by: Chao Xie --- arch/arm/mach-mmp/include/mach/mmp2.h |4 arch/arm/mach-mmp/mmp2.c |4 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-mmp/include/mach/mmp2.h b/arch/arm/mach-mmp

[V2 PATCH 15/27] arm: brownstone: add usb support for the board

2012-11-27 Thread Chao Xie
for brownstone board, add the udc/otg/ehci support Signed-off-by: Chao Xie --- arch/arm/mach-mmp/brownstone.c | 47 1 files changed, 47 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-mmp/brownstone.c b/arch/arm/mach-mmp/brownstone.c index

[V2 PATCH 12/27] usb: otg: mv_otg: use PHY driver for otg

2012-11-27 Thread Chao Xie
enabling device tree for otg driver. Signed-off-by: Chao Xie --- drivers/usb/otg/mv_otg.c | 33 - drivers/usb/otg/mv_otg.h |2 +- 2 files changed, 13 insertions(+), 22 deletions(-) diff --git a/drivers/usb/otg/mv_otg.c b/drivers/usb/otg/mv_otg.c index ffc0689

[V2 PATCH 17/27] arm: mmp: remove the usb phy setting

2012-11-27 Thread Chao Xie
phy setting are formatted into a phy driver at drivers/usb/phy, we do not need do the setting in SOC files. Signed-off-by: Chao Xie --- arch/arm/mach-mmp/devices.c | 278 - arch/arm/mach-mmp/include/mach/regs-usb.h | 253 -- 2

[V2 PATCH 16/27] arm: ttc_dkb: add usb support

2012-11-27 Thread Chao Xie
for ttc_dkb board, add udc/otg/ehci support Signed-off-by: Chao Xie --- arch/arm/mach-mmp/ttc_dkb.c | 30 +++--- 1 files changed, 19 insertions(+), 11 deletions(-) diff --git a/arch/arm/mach-mmp/ttc_dkb.c b/arch/arm/mach-mmp/ttc_dkb.c index ce55fd8..0962791 100644

[V2 PATCH 19/27] usb: phy: mv_usb2_phy: add externel chip support

2012-11-27 Thread Chao Xie
external chip to detect vbus/idpin can save the power. Signed-off-by: Chao Xie --- drivers/usb/phy/mv_usb2_phy.c| 54 + include/linux/platform_data/mv_usb.h | 15 +++- include/linux/usb/mv_usb2.h | 62 ++ 3

[V2 PATCH 20/27] usb: gadget: mv_udc: add extern chip support

2012-11-27 Thread Chao Xie
PMIC usb drivers will help to register the callbacks in the marvell usb PHY driver. udc/otg/ehci driver will call the callbacks. Then we do not need pass the information in platform data. It will remove another block in the way of enabling device tree for usb. Signed-off-by: Chao Xie --- drivers

[V2 PATCH 21/27] usb: ehci: ehci-mv: add extern chip support

2012-11-27 Thread Chao Xie
It does the similar things as what we do for udc driver. Signed-off-by: Chao Xie Acked-by: Alan Stern --- drivers/usb/host/ehci-mv.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/usb/host/ehci-mv.c b/drivers/usb/host/ehci-mv.c index be504fd

[V2 PATCH 22/27] usb: otg: mv_otg: add extern chip support

2012-11-27 Thread Chao Xie
It does the similar things as what we do for udc driver. Signed-off-by: Chao Xie --- drivers/usb/otg/mv_otg.c | 63 - drivers/usb/otg/mv_otg.h |3 ++ 2 files changed, 31 insertions(+), 35 deletions(-) diff --git a/drivers/usb/otg/mv_otg.c b

[V2 PATCH 25/27] usb: gadget: mv_udc: add device tree support

2012-11-27 Thread Chao Xie
In original driver, we have callbacks in platform data, and some dynamically allocations variables in platform data. Now, these blocks are removed, the device tree support is easier now. Signed-off-by: Chao Xie --- drivers/usb/gadget/mv_udc.h |5 +- drivers/usb/gadget/mv_udc_core.c

[V2 PATCH 23/27] arm: mmp: add extern chip support for brownstone

2012-11-27 Thread Chao Xie
Change the board support for usb as extern chip is supported in marvell usb PHY driver Signed-off-by: Chao Xie --- arch/arm/mach-mmp/brownstone.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-mmp/brownstone.c b/arch/arm/mach-mmp/brownstone.c index

[V2 PATCH 26/27] usb: otg: mv_otg: add device tree support

2012-11-27 Thread Chao Xie
All blocks are removed. Add the device tree support for otg. Signed-off-by: Chao Xie --- drivers/usb/otg/mv_otg.c | 127 + drivers/usb/otg/mv_otg.h |6 +- 2 files changed, 107 insertions(+), 26 deletions(-) diff --git a/drivers/usb/otg/mv_otg.c

[V2 PATCH 27/27] usb: ehci: ehci-mv: add device tree support

2012-11-27 Thread Chao Xie
All blocks are removed. Add the device tree support for ehci. Signed-off-by: Chao Xie Acked-by: Alan Stern --- drivers/usb/host/ehci-mv.c | 104 +--- 1 files changed, 79 insertions(+), 25 deletions(-) diff --git a/drivers/usb/host/ehci-mv.c b/drivers

[V2 PATCH 05/27] usb: otg: mv_otg: fix the clk APIs

2012-11-27 Thread Chao Xie
the clock common driver changes, and arch-mmp will make use of the common clock driver instead of its own. So for enable clock. first prepare the clock then enable the clock. for disable clock first disable the clock then unprepare the clock Signed-off-by: Chao Xie --- drivers/usb/otg/mv_otg.c

[V2 PATCH 14/27] arm: pxa910: change the defintion of usb devices

2012-11-27 Thread Chao Xie
because phy is seperated from the usb controller driver, we can use the common pxa_device_desc for device register. Signed-off-by: Chao Xie --- arch/arm/mach-mmp/include/mach/pxa910.h |7 --- arch/arm/mach-mmp/pxa910.c |4 2 files changed, 8 insertions(+), 3

[V2 PATCH 18/27] arm: mmp: remove usb devices from pxa168

2012-11-27 Thread Chao Xie
Signed-off-by: Chao Xie --- arch/arm/mach-mmp/pxa168.c | 42 -- 1 files changed, 0 insertions(+), 42 deletions(-) diff --git a/arch/arm/mach-mmp/pxa168.c b/arch/arm/mach-mmp/pxa168.c index b7f074f..dd3a68b 100644 --- a/arch/arm/mach-mmp/pxa168.c +++ b

[V2 PATCH 24/27] arm: mmp: add extern chip support for ttc_dkb

2012-11-27 Thread Chao Xie
Change the board support for usb as extern chip is supported in marvell usb PHY driver. Signed-off-by: Chao Xie --- arch/arm/mach-mmp/ttc_dkb.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-mmp/ttc_dkb.c b/arch/arm/mach-mmp/ttc_dkb.c index 0962791

[V2 PATCH 11/27] usb: ehci: ehci-mv: use PHY driver for ehci

2012-11-27 Thread Chao Xie
enabling device tree for ehci driver. Signed-off-by: Chao Xie Acked-by: Alan Stern --- drivers/usb/host/ehci-mv.c | 37 + 1 files changed, 13 insertions(+), 24 deletions(-) diff --git a/drivers/usb/host/ehci-mv.c b/drivers/usb/host/ehci-mv.c index 3065809

[V2 PATCH 09/27] usb: phy: mv_usb2: add PHY driver for marvell usb2 controller

2012-11-27 Thread Chao Xie
driver will make the usb controller driver to be simple and portable. The PHY driver will be used by marvell udc/otg/ehci. Signed-off-by: Chao Xie --- drivers/usb/phy/Kconfig |7 + drivers/usb/phy/Makefile |1 + drivers/usb/phy/mv_usb2_phy.c| 454

[V2 PATCH 06/27] usb: host: ehci-mv: fix clk APIs

2012-11-27 Thread Chao Xie
the clock common driver changes, and arch-mmp will make use of the common clock driver instead of its own. So for enable clock. first prepare the clock then enable the clock. for disable clock first disable the clock then unprepare the clock Signed-off-by: Chao Xie Acked-by: Alan Stern

Re: [V2 PATCH 00/27] mv-usb fix and enhancement patches

2013-01-04 Thread Chao Xie
hi, Felipe How about these patches? i see that 3.8-rc2 is tagged but these patches are not merged. Thanks. On Tue, Dec 4, 2012 at 3:34 PM, Haojian Zhuang wrote: > On Fri, Nov 30, 2012 at 10:10 PM, Felipe Balbi wrote: >> Hi, >> >> On Tue, Nov 27, 2012 at 10:05:59PM -0500, Ch

Re: [V2 PATCH 00/27] mv-usb fix and enhancement patches

2013-01-08 Thread Chao Xie
On Sat, Jan 5, 2013 at 9:35 AM, Chao Xie wrote: > hi, Felipe > How about these patches? i see that 3.8-rc2 is tagged but these > patches are not merged. Thanks. > > On Tue, Dec 4, 2012 at 3:34 PM, Haojian Zhuang > wrote: >> On Fri, Nov 30, 2012 at 10:10 PM, Fel

[V3 PATCH 03/25] usb: gadget: mv_udc: fix the warning of mv_udc_remove

2013-01-14 Thread Chao Xie
The __exit_p() will be NULL if MODULE is no defined. It will cause the warning. Removing __exit_p to remove the warning. Signed-off-by: Chao Xie --- drivers/usb/gadget/mv_udc_core.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/usb/gadget/mv_udc_core.c b

[V3 PATCH 02/25] usb: gadget: mv_udc: use devm_xxx for probe

2013-01-14 Thread Chao Xie
use devm_xxx for udc driver probe. So we do need care about the resources release in driver remove or failure handling in driver probe. Signed-off-by: Chao Xie --- drivers/usb/gadget/mv_udc_core.c | 156 ++ 1 files changed, 56 insertions(+), 100 deletions

[V3 PATCH 06/25] usb: gadget: mv_udc: fix the value of tranceiver

2013-01-14 Thread Chao Xie
e line size and make the judgement simple. Signed-off-by: Chao Xie --- drivers/usb/gadget/mv_udc_core.c | 15 ++- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/usb/gadget/mv_udc_core.c b/drivers/usb/gadget/mv_udc_core.c index 910c4b5..c8cf959 100644 --- a/dri

[V3 PATCH 04/25] usb: otg: mv_otg: use devm_xxx for probe

2013-01-14 Thread Chao Xie
use devm_xxx for otg driver probe. So we do need care about the resources release in driver remove or failure handling in driver probe. Signed-off-by: Chao Xie --- drivers/usb/otg/mv_otg.c | 82 - 1 files changed, 22 insertions(+), 60 deletions

[V3 PATCH 05/25] usb: host: ehci-mv: remove unused variable

2013-01-14 Thread Chao Xie
Signed-off-by: Chao Xie Acked-by: Alan Stern --- drivers/usb/host/ehci-mv.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/usb/host/ehci-mv.c b/drivers/usb/host/ehci-mv.c index 6c56297..3065809 100644 --- a/drivers/usb/host/ehci-mv.c +++ b/drivers/usb/host/ehci

[V3 PATCH 08/25] usb: gadget: mv_udc: use PHY driver for udc

2013-01-14 Thread Chao Xie
enabling device tree for udc driver. Signed-off-by: Chao Xie --- drivers/usb/gadget/mv_udc.h |2 +- drivers/usb/gadget/mv_udc_core.c | 23 --- 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/drivers/usb/gadget/mv_udc.h b/drivers/usb/gadget/mv_udc.h

[V3 PATCH 13/25] arm: brownstone: add usb support for the board

2013-01-14 Thread Chao Xie
for brownstone board, add the udc/otg/ehci support Signed-off-by: Chao Xie --- arch/arm/mach-mmp/brownstone.c | 47 1 files changed, 47 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-mmp/brownstone.c b/arch/arm/mach-mmp/brownstone.c index

[V3 PATCH 14/25] arm: ttc_dkb: add usb support

2013-01-14 Thread Chao Xie
for ttc_dkb board, add udc/otg/ehci support Signed-off-by: Chao Xie --- arch/arm/mach-mmp/ttc_dkb.c | 30 +++--- 1 files changed, 19 insertions(+), 11 deletions(-) diff --git a/arch/arm/mach-mmp/ttc_dkb.c b/arch/arm/mach-mmp/ttc_dkb.c index ce55fd8..0962791 100644

[V3 PATCH 16/25] arm: mmp: remove usb devices from pxa168

2013-01-14 Thread Chao Xie
Signed-off-by: Chao Xie --- arch/arm/mach-mmp/pxa168.c | 42 -- 1 files changed, 0 insertions(+), 42 deletions(-) diff --git a/arch/arm/mach-mmp/pxa168.c b/arch/arm/mach-mmp/pxa168.c index b7f074f..dd3a68b 100644 --- a/arch/arm/mach-mmp/pxa168.c +++ b

[V3 PATCH 22/25] arm: mmp: add extern chip support for ttc_dkb

2013-01-14 Thread Chao Xie
Change the board support for usb as extern chip is supported in marvell usb PHY driver. Signed-off-by: Chao Xie --- arch/arm/mach-mmp/ttc_dkb.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-mmp/ttc_dkb.c b/arch/arm/mach-mmp/ttc_dkb.c index 0962791

[V3 PATCH 17/25] usb: phy: mv_usb2_phy: add externel chip support

2013-01-14 Thread Chao Xie
external chip to detect vbus/idpin can save the power. Signed-off-by: Chao Xie --- drivers/usb/phy/mv_usb2_phy.c| 54 + include/linux/platform_data/mv_usb.h | 15 +++- include/linux/usb/mv_usb2.h | 62 ++ 3

[V3 PATCH 20/25] usb: otg: mv_otg: add extern chip support

2013-01-14 Thread Chao Xie
It does the similar things as what we do for udc driver. Signed-off-by: Chao Xie --- drivers/usb/otg/mv_otg.c | 63 - drivers/usb/otg/mv_otg.h |3 ++ 2 files changed, 31 insertions(+), 35 deletions(-) diff --git a/drivers/usb/otg/mv_otg.c b

  1   2   3   4   >