usb: chipidea: handle single role for usb role class
authorJun Li <jun.li@nxp.com>
Wed, 22 Jan 2020 01:46:59 +0000 (01:46 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Jan 2020 06:54:26 +0000 (07:54 +0100)
commit27bf5be8fbe0b60b1f1aa13083198dac64fc4249
treeb594686380ef4cc7ce43751ec6e2653737e0f424
parent1e31d3caa262cffa728e007ad209fb8e72b276a8
usb: chipidea: handle single role for usb role class

If usb port is configed to be single role, but usb role class
is trying to set unavailable role, don't try to do role change.

Signed-off-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Link: https://lore.kernel.org/r/20200122014639.22667-2-peter.chen@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/ci.h
drivers/usb/chipidea/core.c