]> 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)
commit45d4df12827715a4a0b724a65a1b611d6f6884a4
treeb594686380ef4cc7ce43751ec6e2653737e0f424
parent6871a658076d0c55571ba5f5be28d51a5a4bd89d
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