aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-sqlite-report
diff options
context:
space:
mode:
authorStephen Boyd <[email protected]>2018-10-01 14:49:05 -0700
committerLinus Walleij <[email protected]>2018-10-02 10:48:43 +0200
commitde0c18a87cfa094cb23655624859e09da5146e2a (patch)
tree9ebe0888c597eb292d7ad46df3cef695cc57dd69 /tools/perf/scripts/python/bin/export-to-sqlite-report
parent54a58185bfafb5af5045fb8388c45daa373f90f3 (diff)
pinctrl: msm: Actually use function 0 for gpio selection
This code needs to select function #0, which is the first int in the array of functions, not the number 0 which may or may not be the function for "GPIO mode" per the enum mapping. We were getting lucky on SDM845, where this was tested, because the function 0 matched the enum value for "GPIO mode". On other platforms, e.g. MSM8996, the gpio enum value is the last one in the list so this code doesn't work and we see a warning at boot. Fix it by grabbing the first element out of the array of functions. Cc: Doug Anderson <[email protected]> Cc: Bjorn Andersson <[email protected]> Cc: Niklas Cassel <[email protected]> Reported-by: Niklas Cassel <[email protected]> Fixes: 1de7ddb3a15c ("pinctrl: msm: Mux out gpio function with gpio_request()") Signed-off-by: Stephen Boyd <[email protected]> Reviewed-by: Bjorn Andersson <[email protected]> Tested-by: Niklas Cassel <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-sqlite-report')
0 files changed, 0 insertions, 0 deletions