diff options
author | Anatolij Gustschin <agust@denx.de> | 2024-10-04 13:36:54 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-10-07 16:38:02 -0700 |
commit | 5c14e51d2d7df49fe0d4e64a12c58d2542f452ff (patch) | |
tree | 6a8eb6e9291fb96a13252f3ad0432b8b29e86b1a /drivers/remoteproc/keystone_remoteproc.c | |
parent | 631083143315d1b192bd7d915b967b37819e88ea (diff) | |
download | lwn-5c14e51d2d7df49fe0d4e64a12c58d2542f452ff.tar.gz lwn-5c14e51d2d7df49fe0d4e64a12c58d2542f452ff.zip |
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: stable@vger.kernel.org
Fixes: a1292595e006 ("net: dsa: add new DSA switch driver for the SMSC-LAN9303")
Signed-off-by: Anatolij Gustschin <agust@denx.de>
[alex: reworked using read_poll_timeout()]
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Link: https://patch.msgid.link/20241004113655.3436296-1-alexander.sverdlin@siemens.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/remoteproc/keystone_remoteproc.c')
0 files changed, 0 insertions, 0 deletions