]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MLK-10279-2 usb: chipidea: imx: only do charger detection if we enable it
authorPeter Chen <peter.chen@freescale.com>
Sun, 15 Feb 2015 07:44:43 +0000 (15:44 +0800)
committerPeter Chen <peter.chen@freescale.com>
Fri, 27 Feb 2015 00:33:39 +0000 (08:33 +0800)
commit8af72e14692cfa735f65368c74496acb988d30bb
treed6ecc72aea1d7097a46202fb7bd33c9870450cc2
parent0fb0fc89739919e3386fa456fa30c8ab9c288b99
MLK-10279-2 usb: chipidea: imx: only do charger detection if we enable it

We should only do charger detection if both we have enabled
usb charger at kernel configuration and set usb charger enable
at dts. Otherwise, we will do useless things, like toggle dp.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
(cherry picked from commit 6b677c09dbda0274c6b2e1d61ea0d7f1cc73f621)
drivers/usb/chipidea/ci_hdrc_imx.c