]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: marvell: Fix invalid comparison in the resume and suspend functions
authorKurt Cancemi <kurt@x64architecture.com>
Sat, 12 Mar 2022 20:15:13 +0000 (15:15 -0500)
committerJakub Kicinski <kuba@kernel.org>
Mon, 14 Mar 2022 22:08:37 +0000 (15:08 -0700)
commit243743c7dbc3911c8a7cb7661d72d94ade55beeb
tree18161a7edede9e1e1af4e645eebfa8048f8c6fcf
parent7072f0ecf6771d3c26c12c0ad6244b76d868a9a6
net: phy: marvell: Fix invalid comparison in the resume and suspend functions

This bug resulted in only the current mode being resumed and suspended when
the PHY supported both fiber and copper modes and when the PHY only supported
copper mode the fiber mode would incorrectly be attempted to be resumed and
suspended.

Fixes: baf5960f4baf ("Marvell phy: add functions to suspend and resume both interfaces: fiber and copper links.")
Signed-off-by: Kurt Cancemi <kurt@x64architecture.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20220312201512.326047-1-kurt@x64architecture.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/marvell.c