aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2020-05-02 20:29:51 +0200
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-05-07 20:19:37 +0300
commitd307f17293226a5bf22cbe67d8b949efe143950e (patch)
tree1798878216953f9acc85ddbdd63f1698f599b72f /tools/perf/scripts/python/stackcollapse.py
parentplatform/x86: intel-vbtn: Also handle tablet-mode switch on "Detachable" and ... (diff)
downloadlinux-d307f17293226a5bf22cbe67d8b949efe143950e.tar.gz
linux-d307f17293226a5bf22cbe67d8b949efe143950e.zip
platform/x86: intel-vbtn: Fix probe failure on devices with only switches
On some devices the INT33D6 vbtn device is only used to report tablet-mode / docked status (switches) and there are no vbtn managed buttons. On these devices there is no VBDL object. Move the VBDL check to a intel_vbtn_has_buttons() helper and only exit from intel_vbtn_probe() with -ENODEV when there are both no buttons and no switches. Also only report the buttons being present to userspace if the has_buttons check has succeeded. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions