]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
dwc3: fix the logic for finding parent node
authorAnurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com>
Tue, 29 Aug 2017 15:53:21 +0000 (21:23 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 30 Aug 2017 06:41:51 +0000 (08:41 +0200)
commit6294bedc5a80f6833288a135369c5334712ed1a5
tree7d9643fa22cbb756a0e508076275561880a3d457
parent158b600edeca160516e96163ac5638ad69aa4629
dwc3: fix the logic for finding parent node

The present logic doesn't fetch the correct parent node when two usb nodes
are enabled. It searches all nodes and doesn't fetch the first node with
matching compatible string when two usb nodes are enabled.
This patch fixes the logic by searching "xlnx,zynqmp-dwc3" compatible
string only in the parent nodes instead of the searching all nodes.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/usb/dwc3/dwc3-of-simple.c