]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
octeontx2-af: Improve register polling loop
authorSunil Goutham <sgoutham@marvell.com>
Tue, 16 Oct 2018 11:27:05 +0000 (16:57 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Oct 2018 04:33:42 +0000 (21:33 -0700)
commit6ca3ee2f7d3a4b6063c14f5ebd1c6076035310ef
tree9a64837f6433f333f2915caf2e4717f3d25a1fb9
parent53e50a6ec24d83e9d79e6a95a33b7adcd610f772
octeontx2-af: Improve register polling loop

Instead of looping on a integer timeout, use time_before(jiffies),
so that maximum poll time is capped.

Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/rvu.c