extcon: Add fsa9480 extcon driver

This patch adds extcon driver for Fairchild Semiconductor FSA9480
microUSB switch.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
ARM: dts: s5p6442-apollo: Fix compatible string of fsa9480

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
s3c-hsotg: Fix driver context storing

s3c-hsotg: Fix driver context storing

Before applying this fix calling s3c_hsotg_udc_start, *stop and *start
again resulted in a WARN_ON(hsotg->driver) being triggered in *start.

Signed-off-by: Kamil Debski <k.debski@samsung.com>
usb: gadget: udc-core: Add extcon hanling to reduce power use

usb: gadget: udc-core: Add extcon hanling to reduce power use

Extcon driver provides information about what kind of cable has been
inserted in the device's USB port. Power use can be reduced if UDC is
switched off while no suitable cable is present.

Signed-off-by: Kamil Debski <k.debski@samsung.com>
drivers: s3c-hsotg: add proper suspend/resume support

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
drivers: s3c-hsotg: fix regulator enable sequence in resume callback

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
drivers: s3c-hsotg: hide some not really needed debug messages

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
extcon: Implement OF-based extcon lookup properly

Platform bus is not the only way to have extcon devices, so current
implementation of of_extcon_get_extcon_dev() is broken. Also using
parent device node only to get device name is quite ugly.

This patch reimplements of_extcon_get_extcon_dev() to do exactly the
same as extcon_get_extcon_dev() but instead of comparing names, compare
node pointers.

Since resulting function is very simple and uses static variables, it is
moved to extcon-class.c and of_extcon.c is removed.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
usb: gadget: s3c-hsotg: Set of_node of gadget device

This is needed for USB extcon look-up using device tree.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
ARM: dts: s5p6442-apollo: Fix compatible string of max8998

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
ARM: dts: s5p6442-apollo: Fix interrupt definition of max8998

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
ARM: dts: s5p6442-apollo: Fix hsotg regulator supply names

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
ARM: dts: s5p6442-apollo: Add vmmc supply of sdhci2

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
ARM: dts: s5p6442-apollo: Add extcon property to hsotg node

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
usb: gadget: s3c-hsotg: Do not disable PHY in udc_stop

This fixes double PHY disable leading to inability to re-enable the
controller after disabling it once.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
usb: gadget: s3c-hsotg: Use clock gating

There is no need to keep the clock running when the whole power domain
is turned off.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
usb: gadget: s3c-hsotg: Do not disable PHY in remove

This patch removes call to s3c_hsotg_phy_disable() from remove callback,
as the PHY is already disabled after unregistering gadget.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
ARM: configs: Update s5p6442_defconfig

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>