summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephen Boyd <stephen.boyd@linaro.org>2016-09-07 14:35:01 -0700
committerAnson Huang <Anson.Huang@nxp.com>2017-06-08 19:27:36 +0800
commitebbf7a61a75ec9ccf52d4637f279985ae211a683 (patch)
treef6b2b5a658ded108297a9cb3a9b9b7708bf2e38b /include
parent22a207f8be63f30baac1ee979a6d4c0f0e0b532f (diff)
usb: chipidea: Only read/write OTGSC from one place
With the id and vbus detection done via extcon we need to make sure we poll the status of OTGSC properly by considering what the extcon is saying, and not just what the register is saying. Let's move this hw_wait_reg() function to the only place it's used and simplify it for polling the OTGSC register. Then we can make certain we only use the hw_read_otgsc() API to read OTGSC, which will make sure we properly handle extcon events. Acked-by: Peter Chen <peter.chen@nxp.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: "Ivan T. Ivanov" <iivanov.xz@gmail.com> Fixes: 3ecb3e09b042 ("usb: chipidea: Use extcon framework for VBUS and ID detect") Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org> Signed-off-by: Peter Chen <peter.chen@nxp.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions