diff options
author | Anatolij Gustschin <[email protected]> | 2024-10-04 13:36:54 +0200 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-10-07 16:38:02 -0700 |
commit | 5c14e51d2d7df49fe0d4e64a12c58d2542f452ff (patch) | |
tree | 6a8eb6e9291fb96a13252f3ad0432b8b29e86b1a /tools/perf/scripts/python | |
parent | 631083143315d1b192bd7d915b967b37819e88ea (diff) |
net: dsa: lan9303: ensure chip reset and wait for READY status
Accessing device registers seems to be not reliable, the chip
revision is sometimes detected wrongly (0 instead of expected 1).
Ensure that the chip reset is performed via reset GPIO and then
wait for 'Device Ready' status in HW_CFG register before doing
any register initializations.
Cc: [email protected]
Fixes: a1292595e006 ("net: dsa: add new DSA switch driver for the SMSC-LAN9303")
Signed-off-by: Anatolij Gustschin <[email protected]>
[alex: reworked using read_poll_timeout()]
Signed-off-by: Alexander Sverdlin <[email protected]>
Reviewed-by: Vladimir Oltean <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions