]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: phy: qcom: qca807x: Enable WoL support using shared library
authorLuo Jie <quic_luoj@quicinc.com>
Fri, 18 Jul 2025 13:57:48 +0000 (21:57 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 22 Jul 2025 00:42:40 +0000 (17:42 -0700)
The Wake-on-LAN (WoL) functionality for the QCA807x series is identical
to that of the AT8031. WoL support for QCA807x is enabled by utilizing
the at8031_set_wol() function provided in the shared library.

Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: Luo Jie <quic_luoj@quicinc.com>
Link: https://patch.msgid.link/20250718-qca807x_wol_support-v1-1-cfe323cbb4e8@quicinc.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/qcom/qca807x.c

index 291f052ea53c47be04d8d9d803a5c704b4bdc4ef..04e84ebb646c0659ea788bfb65f16ddd20b4b97e 100644 (file)
@@ -823,6 +823,8 @@ static struct phy_driver qca807x_drivers[] = {
                .cable_test_get_status  = qca808x_cable_test_get_status,
                .update_stats           = qca807x_update_stats,
                .get_phy_stats          = qca807x_get_phy_stats,
+               .set_wol                = at8031_set_wol,
+               .get_wol                = at803x_get_wol,
        },
        {
                PHY_ID_MATCH_EXACT(PHY_ID_QCA8075),
@@ -848,6 +850,8 @@ static struct phy_driver qca807x_drivers[] = {
                .led_hw_control_get = qca807x_led_hw_control_get,
                .update_stats           = qca807x_update_stats,
                .get_phy_stats          = qca807x_get_phy_stats,
+               .set_wol                = at8031_set_wol,
+               .get_wol                = at803x_get_wol,
        },
 };
 module_phy_driver(qca807x_drivers);