Skip to content

mv-usb fix and enhancement patches

Felipe Balbi linux-arm-kernel 5 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest1 of 26 patches 0 repliesNew
  2. v2 posting 3/30 of 27 patches 0 repliesSuperseded
  3. v2 posting 2/30 of 27 patches 0 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v2 posting 1/36 of 27 patches0 repliesSuperseded
v12 of 27 patches0 repliesSuperseded

1 of 26 patches is in this archive. The cover letter announces 26.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
18/26usb: phy: mv_usb2_phy: add externel chip support+0 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [V4 PATCH 00/26] mv-usb fix and enhancement patches

Hi,

Quoted 62 lines · Chao Xie

The patches are divied into 4 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 warning of mv_udc_remove
usb: otg: mv_otg: use devm_xxx for probe
usb: host: ehci-mv: remove unused variable
usb: gadget: mv_udc: fix the value of tranceiver
usb: gadget: mv_udc: make mv_udc depends on ARCH_MMP or ARCH_PXA
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.

Quoted 4 lines

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.

this series will be delayed for v3.10. Sorry

Signature · 8 lines
balbi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20130123/85fa8727/attachment.sig>