summaryrefslogtreecommitdiff
path: root/drivers/usb/chipidea/ci_hdrc_imx.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-15 10:38:30 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-15 10:38:30 +0200
commitf21ca2c9999872da113a1fc70abb527129b72af3 (patch)
tree5a42f1b45e63c7baeb46a10f31576ff8df2f7cf5 /drivers/usb/chipidea/ci_hdrc_imx.c
parent81522637485dd6ec9de4279c9714d58f884b6091 (diff)
parente74e83724808b72173b557bd8008202109fb6091 (diff)
Merge tag 'usb-ci-v4.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/peter.chen/usb into usb-testing
Peter writes: Most of them are refine patches, only new feature is disable io watchdog for chipidea platform.
Diffstat (limited to 'drivers/usb/chipidea/ci_hdrc_imx.c')
-rw-r--r--drivers/usb/chipidea/ci_hdrc_imx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c
index dedc33e589f4..099179457f60 100644
--- a/drivers/usb/chipidea/ci_hdrc_imx.c
+++ b/drivers/usb/chipidea/ci_hdrc_imx.c
@@ -140,6 +140,9 @@ static struct imx_usbmisc_data *usbmisc_get_init_data(struct device *dev)
if (of_find_property(np, "disable-over-current", NULL))
data->disable_oc = 1;
+ if (of_find_property(np, "over-current-active-high", NULL))
+ data->oc_polarity = 1;
+
if (of_find_property(np, "external-vbus-divider", NULL))
data->evdo = 1;