summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2020-10-23 00:13:42 +0300
committerMarc Kleine-Budde <mkl@pengutronix.de>2022-02-24 10:46:58 +0300
commit197656de8d1e119f594dd1fe1b2d54fd2ae2add9 (patch)
treefbcfe708ff86867327b14ed4f3f1c7a1299cb004 /tools/perf/scripts/python/export-to-postgresql.py
parent0445e5ff55cce1a0a00922189648d09c8d7afe40 (diff)
downloadlinux-197656de8d1e119f594dd1fe1b2d54fd2ae2add9.tar.xz
can: mcp251xfd: mcp251xfd_chip_wait_for_osc_ready(): improve chip detection and error handling
The function mcp251xfd_chip_wait_for_osc_ready() polls the Oscillator Control Register for the oscillator to get ready. This is the first register the driver reads from. Reading implausible values (all bits set or unset) can be caused by the chip starting up after power on, waking up after sleep, or by the chip not being preset at all. Add check for implausible register content mcp251xfd_reg_invalid() to the regmap_read_poll_timeout() loop. In case of a regmap_read_poll_timeout() returns a fatal error (and not a timeout), forward it to the caller. As mcp251xfd_chip_wait_for_osc_ready() will be called after the probe function has finished, (currently during ifup), move error message about failed chip detection from there into the probe function. Link: https://lore.kernel.org/all/20220207131047.282110-8-mkl@pengutronix.de Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions