pds_core: pass opcode to devcmd_wait
authorShannon Nelson <shannon.nelson@amd.com>
Thu, 24 Aug 2023 16:17:54 +0000 (09:17 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 26 Aug 2023 02:05:58 +0000 (19:05 -0700)
commit0ea064e74bc8f915aba3f2d0fb3418247a09b73d
tree3f29b8b9d9a8eddfb396981443ae4298534b284f
parent969cfd4c8ca50c32901342cdd3d677c3ffe61371
pds_core: pass opcode to devcmd_wait

Don't rely on the PCI memory for the devcmd opcode because we
read a 0xff value if the PCI bus is broken, which can cause us
to report a bogus dev_cmd opcode later.

Fixes: 523847df1b37 ("pds_core: add devcmd device interfaces")
Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Reviewed-by: Brett Creeley <brett.creeley@amd.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20230824161754.34264-6-shannon.nelson@amd.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/amd/pds_core/dev.c