Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 147f41d6 authored by Mayank Rana's avatar Mayank Rana
Browse files

usb: phy: qusb: Fix multiple issue when used with emulation



This change fixed below mentioned issues:
1. Driver is using "qcom,emu-init-seq" for finding length of property
but using "qcom,qemu-init-seq" instead of "qcom,emu-init-seq" to
get passed values from device tree. With this, length of property
comes as expected but values are not received. This results into
programming zeros as values with offset as zero instead of expected
<value, offset> passed through devicetree.

2. For emulation platform, there are multiple PHY init sequence passed
through device tree. On some platform all PHY init sequence is not
required. This results into using zero as value and offset with PHY
init sequeunce which is not passed through device tree as
of_get_property() doesn't update size variable if property is not
found. Hence reset size variable to zero before querying next
property size.

This change also updates required offset for emulation sequence on
particular platform.

Change-Id: I5764f854138e50e7736303f9cbced9ada7c4118a
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent a69fe6c4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment