octeon_ep: fix timeout value for waiting on mbox response
authorMichal Schmidt <mschmidt@redhat.com>
Thu, 10 Aug 2023 15:01:11 +0000 (17:01 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Aug 2023 02:08:13 +0000 (19:08 -0700)
commit519b227904f0e70d4a1d6cf41daa5392715f2d2f
tree7a356c8531f7e53dc9e276019e4b1c217ab03aee
parent6c461e394d11a981c662cc16cebfb05b602e23ba
octeon_ep: fix timeout value for waiting on mbox response

The intention was to wait up to 500 ms for the mbox response.
The third argument to wait_event_interruptible_timeout() is supposed to
be the timeout duration. The driver mistakenly passed absolute time
instead.

Fixes: 577f0d1b1c5f ("octeon_ep: add separate mailbox command and response queues")
Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20230810150114.107765-2-mschmidt@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c