]> git.baikalelectronics.ru Git - kernel.git/commit
usb: cdns3: Fix hardware based role switch
authorRoger Quadros <rogerq@ti.com>
Wed, 25 Nov 2020 12:49:36 +0000 (14:49 +0200)
committerPeter Chen <peter.chen@nxp.com>
Mon, 30 Nov 2020 05:48:32 +0000 (13:48 +0800)
commit7b431639350789c5b814b9e3b2edfa9af8c59506
tree75ed8cc57dcad37d3a324e369ef2ff42fb8750d4
parentd4cd09ec2f6446d11c33c26e210c3067535570b1
usb: cdns3: Fix hardware based role switch

Hardware based role switch is broken as the driver always skips it.
Fix this by registering for  SW role switch only if 'usb-role-switch'
property is present in the device tree.

Fixes: 06c495cdc630 ("usb: cdns3: core: quit if it uses role switch class")
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/cdns3/core.c