From: Quanyang Wang <quanyang.w...@windriver.com>

According to commit 5eb5afb07853d6e9 ("usb: dwc3: use proper initializers
for property entries"), property entries should be initialized by proper
initializer macros. If not, the elements "is_inline" and "length" in
structure property_entry will be zeros, and the function
"property_entry_copy_data" will return -ENODATA failure. This will result
that dwc3_host_init fails.

Signed-off-by: Quanyang Wang <quanyang.w...@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfi...@gmail.com>
---
 drivers/usb/dwc3/host.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/dwc3/host.c b/drivers/usb/dwc3/host.c
index c9c29206b920..8debb753a708 100644
--- a/drivers/usb/dwc3/host.c
+++ b/drivers/usb/dwc3/host.c
@@ -105,7 +105,7 @@ int dwc3_host_init(struct dwc3 *dwc)
 
        if (device_property_read_bool(&dwc3_pdev->dev,
                                        "snps,xhci-stream-quirk"))
-               props[prop_idx++].name = "xhci-stream-quirk";
+               props[prop_idx++] = PROPERTY_ENTRY_BOOL("xhci-stream-quirk");
 
        /**
         * WORKAROUND: dwc3 revisions <=3.00a have a limitation
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8864): 
https://lists.yoctoproject.org/g/linux-yocto/message/8864
Mute This Topic: https://lists.yoctoproject.org/mt/75759300/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to