summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMark Pearson <mpearson-lenovo@squebb.ca>2024-06-09 17:43:18 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-06-20 19:30:51 +0200
commit50a7230a02ec1218441ef21ba863596d282ff90b (patch)
tree2256ec7f14f007d7c100996fe9f7112953a46a6b /tools/perf/scripts/python/export-to-postgresql.py
parenta353686e7f5f3f3eef3ac4561ae7ade1f8e5dfdd (diff)
usb: typec: ucsi: don't retrieve PDOs if not supported
On systems where the UCSI PDOs are not supported, the UCSI driver is giving an error message. This can cause users to believe there is a HW issue with their system when in fact it is working as designed. Check if PDO_DETAILS are supported as a feature before attempting to access PDO. If not supported return that zero PDOs are available. Tested on Lenovo L14 G5 AMD and confirmed with Lenovo FW team that PDOs are not supported on this platform. Suggested-by: Diogo Ivo <diogo.ivo@siemens.com> Suggested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Mark Pearson <mpearson-lenovo@squebb.ca> Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Link: https://lore.kernel.org/r/20240609214328.6580-1-mpearson-lenovo@squebb.ca Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions