]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8dd16bf373a0c408117ba36826274064b8fc8289
treeb594686380ef4cc7ce43751ec6e2653737e0f424
parentbeac8a5458fe63e709a46d96f96bfc38163a49bc
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