usb: dwc3: qcom: only parse 'maximum-speed' once
authorJohan Hovold <johan+linaro@kernel.org>
Fri, 5 Aug 2022 07:44:59 +0000 (09:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Aug 2022 09:04:58 +0000 (11:04 +0200)
commitb89bffa2efc9cee72454cae1ae08a8b437717b35
treeec5ac5326ecb57876838114c75b37f5a49287483
parentb6155eaf6b05e558218b44b88a6cad03f15a586c
usb: dwc3: qcom: only parse 'maximum-speed' once

Add a temporary variable to the interconnect-initialisation helper to
avoid parsing and decoding the 'maximum-speed' devicetree property
twice.

Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Andrew Halaney <ahalaney@redhat.com>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20220805074500.21469-2-johan+linaro@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/dwc3-qcom.c