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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
;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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 - 100 of 311 matches
Mail list logo