usb: chipidea: imx: Warn if oc polarity isn't specified
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 4 Dec 2018 08:31:30 +0000 (09:31 +0100)
committerPeter Chen <peter.chen@nxp.com>
Tue, 11 Dec 2018 01:13:10 +0000 (09:13 +0800)
commit1bf4743f641d85f32fe3f3a4d8aa01a387549e3e
treed1c818a57b8f0a96f8d5c716e582e96d99e358c3
parenta82bf696aa39b08c0dfce5569525e61368c6827f
usb: chipidea: imx: Warn if oc polarity isn't specified

The polarity of the over current detection pin isn't configured on i.MX6/7
if it's unspecified in the device tree. So the actual configuration depends
on bootloader behavior which is bad.

So encourage users to fix their device tree by issuing a warning in this
case.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/chipidea/ci_hdrc_imx.c