]> git.baikalelectronics.ru Git - kernel.git/commit
usb: common: Consider only available nodes for dr_mode
authorFabrizio Castro <fabrizio.castro@bp.renesas.com>
Fri, 1 Mar 2019 11:05:45 +0000 (11:05 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Mar 2019 13:57:32 +0000 (14:57 +0100)
commit6294490a09b43b24b8395ad049ac8e1abbd19d2c
tree01210a392924cbd12438147dbe4e0f786a56e333
parent49cf2dc83d35d460b69408f681bac36f18a4db08
usb: common: Consider only available nodes for dr_mode

There are cases where multiple device tree nodes point to the
same phy node by means of the "phys" property, but we should
only consider those nodes that are marked as available rather
than just any node.

Fixes: 7b4dc8856a60 ("usb: of: add an api to get dr_mode by the phy node")
Cc: stable@vger.kernel.org # v4.4+
Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/common/common.c