]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
usb: chipidea: Handle extcon events properly
authorStephen Boyd <stephen.boyd@linaro.org>
Wed, 28 Dec 2016 22:56:51 +0000 (14:56 -0800)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 20 Jun 2017 08:46:28 +0000 (10:46 +0200)
commit632ebfe8b260f86a067c4a03ac127e5a1353f110
tree2dc8faf0b103d2c63c55350d68db06078c83b800
parent36f6137dbb713ee32cc6fc7a5782842426a42221
usb: chipidea: Handle extcon events properly

BugLink: http://bugs.launchpad.net/bugs/1691369
commit a89b94b53371bbfa582787c2fa3378000ea4263d upstream.

We're currently emulating the vbus and id interrupts in the OTGSC
read API, but we also need to make sure that if we're handling
the events with extcon that we don't enable the interrupts for
those events in the hardware. Therefore, properly emulate this
register if we're using extcon, but don't enable the interrupts.
This allows me to get my cable connect/disconnect working
properly without getting spurious interrupts on my device that
uses an extcon for these two 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/usb/chipidea/otg.c
include/linux/usb/chipidea.h