Skip to content

Commit 413b04f

Browse files
wqyoungPortia Stephens
authored andcommitted
usb: dwc3: use PROPERTY_ENTRY_BOOL to initialize property entries
According to commit 5eb5afb ("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.wang@windriver.com> State: pending Signed-off-by: Hsuan-Yu Lin <shane.lin@canonical.com> Signed-off-by: Wen-chien Jesse Sung <jesse.sung@canonical.com>
1 parent 024b46a commit 413b04f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/dwc3/host.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ int dwc3_host_init(struct dwc3 *dwc)
103103

104104
if (device_property_read_bool(&dwc3_pdev->dev,
105105
"snps,xhci-stream-quirk"))
106-
props[prop_idx++].name = "xhci-stream-quirk";
106+
props[prop_idx++] = PROPERTY_ENTRY_BOOL("xhci-stream-quirk");
107107

108108
/**
109109
* WORKAROUND: dwc3 revisions <=3.00a have a limitation

0 commit comments

Comments
 (0)