summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorVijayavardhan Vennapusa <vvreddy@codeaurora.org>2017-02-14 15:32:07 +0530
committerVijayavardhan Vennapusa <vvreddy@codeaurora.org>2017-02-14 15:44:21 +0530
commit1cdcea066da4e01748660e176636c3604d7272cf (patch)
treeaccb3b787b70d95f6d415d45195c331280d281f4 /tools/perf/scripts/python/call-graph-from-postgresql.py
parent3a7e752617514960c5cecdf84e12b13dc63c04c7 (diff)
usb: pd: Fix probe failure in case of no sink capablities passed
Commit b76105e359a7 ("usb: pd: Read sink capabilities from device tree") added support in usbpd driver to pass sink capablities from device tree. But it introduced bug in case of no sink capablities passed from device tree as in this case, device_property_read_u32_array() returns -EINVAL. Due to this, usbpd driver probe fails as usbpd_create() returns errors. Fix this issue by checking if return value > 0 and then only try to read sink capablities from device tree. If not, use default sink capabliites defined in usbpd driver. Change-Id: I51beeba282c6e067881c664d38c2657843a1c716 Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions