]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: dsa: qca8k: Fix inconsistent use of jiffies vs milliseconds
authorAndrew Lunn <andrew@lunn.ch>
Sun, 15 Dec 2024 17:43:55 +0000 (17:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Dec 2024 12:46:45 +0000 (12:46 +0000)
commit5a49edec44f638952da8dc8d754e76f462c19034
treed8c4df30de9b3c7b2281ef75aeb7917734192217
parent2b9da35f48a552c158a8965a61f36a1aa62fca34
net: dsa: qca8k: Fix inconsistent use of jiffies vs milliseconds

wait_for_complete_timeout() expects a timeout in jiffies. With the
driver, some call sites converted QCA8K_ETHERNET_TIMEOUT to jiffies,
others did not. Make the code consistent by changes the #define to
include a call to msecs_to_jiffies, and remove all other calls to
msecs_to_jiffies.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: from Christian would be very welcome.
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca/qca8k-8xxx.c
drivers/net/dsa/qca/qca8k.h