linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/27] mv-usb fix and enhancement patches
@ 2012-11-26  4:43 Chao Xie
  2012-11-26  4:43 ` [PATCH 01/27] usb: gadget: mv_udc: use udc_start and udc_stop functions Chao Xie
                   ` (26 more replies)
  0 siblings, 27 replies; 34+ messages in thread
From: Chao Xie @ 2012-11-26  4:43 UTC (permalink / raw)
  To: linux-arm-kernel

From: Chao Xie <chao.xie@marvell.com>

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: host: ehci-mv: fix clk APIs
  usb: host: ehci-mv: remove unused variable
  usb: gadget: mv_udc: fix the value of tranceiver
Above patches are bug fixes.

2. PHY driver
To remove the callbacks in the platform data, a usb PHY driver
for marvell udc/otg/ehci is written.
For device tree support, it is not good to pass the callback
pointers by platform data. The PHY driver also removes the
block.

  usb: phy: mv_usb2: add PHY driver for marvell usb2 controller
  usb: gadget: mv_udc: use PHY driver for udc
  usb: ehci: ehci-mv: use PHY driver for ehci
  usb: otg: mv_otg: use PHY driver for otg
Above patches are marvell usb PHY driver support.

  arm: mmp2: change the defintion of usb devices
  arm: pxa910: change the defintion of usb devices
  arm: brownstone: add usb support for the board
  arm: ttc_dkb: add usb support
  arm: mmp: remove the usb phy setting
  arm: mmp: remove usb devices from pxa168
Above patches are for SOC/board support for marvell usb PHY
driver.

3. external chip support
The marvell usb controller can detect the vbus/idpin, but it
need PHY and usb clocks to be enabled.
Based on measurement it will import 15mA current, and increase
the power when the usb is not used.
Using a external chip to detect vbus/idpin changes will save
the power.
In fact the marvell PMIC 88pm860x and 88pm80x can do it. The
drivers are located at drivers/mfd.
So add a middle layer in the marvell usb PHY driver.
PMIC call the APIs in middle driver to registers the callback
for vbus/idpin detection/query
udc/otg/ehci driver will call the APIs to get vbus/idpin changes
and query the states of the vbus/idpin.
  usb: phy: mv_usb2_phy: add externel chip support
  usb: gadget: mv_udc: add extern chip support
  usb: ehci: ehci-mv: add extern chip support
  usb: otg: mv_otg: add extern chip support
Above patches are the middle layer suppor for udc/otg/ehci

  arm: mmp: add extern chip support for brownstone
  arm: mmp: add extern chip support for ttc_dkb
Above patches are corresponding board file changes
 
4. device tree support
After removing the callbacks in platform data, and the not
constant variables in platform data. All the information needed
by udc/otg/ehci driver are constant.

  usb: gadget: mv_udc: add device tree support
  usb: otg: mv_otg: add device tree support
  usb: ehci: ehci-mv: add device tree support
Above patches are device tree support for udc/otg/ehci driver.

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
  usb: host: ehci-mv: fix clk APIs
  usb: host: ehci-mv: remove unused variable
  usb: gadget: mv_udc: fix the value of tranceiver
  usb: phy: mv_usb2: add PHY driver for marvell usb2 controller
  usb: gadget: mv_udc: use PHY driver for udc
  usb: ehci: ehci-mv: use PHY driver for ehci
  usb: otg: mv_otg: use PHY driver for otg
  arm: mmp2: change the defintion of usb devices
  arm: pxa910: change the defintion of usb devices
  arm: brownstone: add usb support for the board
  arm: ttc_dkb: add usb support
  arm: mmp: remove the usb phy setting
  arm: mmp: remove usb devices from pxa168
  usb: phy: mv_usb2_phy: add externel chip support
  usb: gadget: mv_udc: add extern chip support
  usb: ehci: ehci-mv: add extern chip support
  usb: otg: mv_otg: add extern chip support
  arm: mmp: add extern chip support for brownstone
  arm: mmp: add extern chip support for ttc_dkb
  usb: gadget: mv_udc: add device tree support
  usb: otg: mv_otg: add device tree support
  usb: ehci: ehci-mv: add device tree support

 arch/arm/mach-mmp/brownstone.c            |   45 +++
 arch/arm/mach-mmp/devices.c               |  278 ----------------
 arch/arm/mach-mmp/include/mach/mmp2.h     |    4 +
 arch/arm/mach-mmp/include/mach/pxa910.h   |    7 +-
 arch/arm/mach-mmp/include/mach/regs-usb.h |  253 --------------
 arch/arm/mach-mmp/mmp2.c                  |    4 +
 arch/arm/mach-mmp/pxa168.c                |   42 ---
 arch/arm/mach-mmp/pxa910.c                |    4 +
 arch/arm/mach-mmp/ttc_dkb.c               |   32 +-
 drivers/usb/gadget/mv_udc.h               |   10 +-
 drivers/usb/gadget/mv_udc_core.c          |  385 +++++++++++-----------
 drivers/usb/host/ehci-mv.c                |  158 ++++++----
 drivers/usb/otg/mv_otg.c                  |  283 +++++++++--------
 drivers/usb/otg/mv_otg.h                  |   11 +-
 drivers/usb/phy/Kconfig                   |    7 +
 drivers/usb/phy/Makefile                  |    1 +
 drivers/usb/phy/mv_usb2_phy.c             |  508 +++++++++++++++++++++++++++++
 include/linux/platform_data/mv_usb.h      |   22 +-
 include/linux/usb/mv_usb2.h               |   97 ++++++
 19 files changed, 1171 insertions(+), 980 deletions(-)
 delete mode 100644 arch/arm/mach-mmp/include/mach/regs-usb.h
 create mode 100644 drivers/usb/phy/mv_usb2_phy.c
 create mode 100644 include/linux/usb/mv_usb2.h

-- 
1.7.4.1

^ permalink raw reply	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2012-11-27  1:56 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-26  4:43 [PATCH 00/27] mv-usb fix and enhancement patches Chao Xie
2012-11-26  4:43 ` [PATCH 01/27] usb: gadget: mv_udc: use udc_start and udc_stop functions Chao Xie
2012-11-26 14:39   ` Greg KH
2012-11-26 14:34     ` Felipe Balbi
2012-11-26 18:42       ` Greg KH
2012-11-26 20:06         ` Felipe Balbi
2012-11-27  1:56           ` Chao Xie
2012-11-26  4:43 ` [PATCH 02/27] usb: gadget: mv_udc: use devm_xxx for probe Chao Xie
2012-11-26  4:43 ` [PATCH 03/27] usb: gadget: mv_udc: fix the clk APIs Chao Xie
2012-11-26  4:43 ` [PATCH 04/27] usb: otg: mv_otg: use devm_xxx for probe Chao Xie
2012-11-26  4:43 ` [PATCH 05/27] usb: otg: mv_otg: fix the clk APIs Chao Xie
2012-11-26  4:43 ` [PATCH 06/27] usb: host: ehci-mv: fix " Chao Xie
2012-11-26 18:47   ` Alan Stern
2012-11-26  4:43 ` [PATCH 07/27] usb: host: ehci-mv: remove unused variable Chao Xie
2012-11-26  4:43 ` [PATCH 08/27] usb: gadget: mv_udc: fix the value of tranceiver Chao Xie
2012-11-26  4:43 ` [PATCH 09/27] usb: phy: mv_usb2: add PHY driver for marvell usb2 controller Chao Xie
2012-11-26  4:43 ` [PATCH 10/27] usb: gadget: mv_udc: use PHY driver for udc Chao Xie
2012-11-26  4:43 ` [PATCH 11/27] usb: ehci: ehci-mv: use PHY driver for ehci Chao Xie
2012-11-26  4:43 ` [PATCH 12/27] usb: otg: mv_otg: use PHY driver for otg Chao Xie
2012-11-26  4:43 ` [PATCH 13/27] arm: mmp2: change the defintion of usb devices Chao Xie
2012-11-26  4:43 ` [PATCH 14/27] arm: pxa910: " Chao Xie
2012-11-26  4:43 ` [PATCH 15/27] arm: brownstone: add usb support for the board Chao Xie
2012-11-26  4:43 ` [PATCH 16/27] arm: ttc_dkb: add usb support Chao Xie
2012-11-26  4:43 ` [PATCH 17/27] arm: mmp: remove the usb phy setting Chao Xie
2012-11-26  4:43 ` [PATCH 18/27] arm: mmp: remove usb devices from pxa168 Chao Xie
2012-11-26  4:43 ` [PATCH 19/27] usb: phy: mv_usb2_phy: add externel chip support Chao Xie
2012-11-26  4:43 ` [PATCH 20/27] usb: gadget: mv_udc: add extern " Chao Xie
2012-11-26  4:43 ` [PATCH 21/27] usb: ehci: ehci-mv: " Chao Xie
2012-11-26  4:43 ` [PATCH 22/27] usb: otg: mv_otg: " Chao Xie
2012-11-26  4:43 ` [PATCH 23/27] arm: mmp: add extern chip support for brownstone Chao Xie
2012-11-26  4:43 ` [PATCH 24/27] arm: mmp: add extern chip support for ttc_dkb Chao Xie
2012-11-26  4:43 ` [PATCH 25/27] usb: gadget: mv_udc: add device tree support Chao Xie
2012-11-26  4:43 ` [PATCH 26/27] usb: otg: mv_otg: " Chao Xie
2012-11-26  4:43 ` [PATCH 27/27] usb: ehci: ehci-mv: " Chao Xie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).