Commit fad9cf21 authored by Eric Work's avatar Eric Work Committed by Jakub Kicinski
Browse files

net: atlantic: add set_power to fw_ops for atl2 to fix wol

Aquantia AQC113(C) using ATL2FW doesn't properly prepare the NIC for
enabling wake-on-lan. The FW operation `set_power` was only implemented
for `hw_atl` and not `hw_atl2`. Implement the `set_power` functionality
for `hw_atl2`.

Tested with both AQC113 and AQC113C devices. Confirmed you can shutdown
the system and wake from S5 using magic packets. NIC was previously
powered off when entering S5. If the NIC was configured for WOL by the
Windows driver, loading the atlantic driver would disable WOL.

Partially cherry-picks changes from commit,
https://github.com/Aquantia/AQtion/commit/37bd5cc

Attributing original authors from Marvell for the referenced commit.

Closes: https://github.com/Aquantia/AQtion/issues/70


Co-developed-by: default avatarIgor Russkikh <irusskikh@marvell.com>
Co-developed-by: default avatarMark Starovoitov <mstarovoitov@marvell.com>
Co-developed-by: default avatarDmitry Bogdanov <dbogdanov@marvell.com>
Co-developed-by: default avatarPavel Belous <pbelous@marvell.com>
Co-developed-by: default avatarNikita Danilov <ndanilov@marvell.com>
Signed-off-by: default avatarEric Work <work.eric@gmail.com>
Reviewed-by: default avatarIgor Russkikh <irusskikh@marvell.com>
Link: https://patch.msgid.link/20250629051535.5172-1-work.eric@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent fbe346ce
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment