Skip to content

Commit

Permalink
Merge pull request hardkernel#53 from aiguo-zhao/khadas-vims-4.9.y
Browse files Browse the repository at this point in the history
VIM3: WOL: Solve Wol not effective
  • Loading branch information
numbqq authored Dec 15, 2021
2 parents 0bf9e54 + c66403b commit 20dad82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion drivers/net/ethernet/stmicro/stmmac/dwmac-meson.c
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,9 @@ void meson6_dwmac_shutdown(struct platform_device *pdev)
}

#endif

extern int wol_enable;

static int meson6_dwmac_probe(struct platform_device *pdev)
{
struct plat_stmmacenet_data *plat_dat;
Expand Down Expand Up @@ -660,7 +663,7 @@ static int meson6_dwmac_probe(struct platform_device *pdev)
ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res);
if (ret)
goto err_remove_config_dt;
if (support_mac_wol)
if (wol_enable)
device_init_wakeup(&pdev->dev, 1);
return 0;

Expand Down
2 changes: 1 addition & 1 deletion drivers/net/phy/realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ MODULE_AUTHOR("Johnson Leung");
MODULE_LICENSE("GPL");

struct phy_device *g_phydev;
static int wol_enable = 0;
int wol_enable = 0;

#ifdef CONFIG_AMLOGIC_ETH_PRIVE
unsigned int support_external_phy_wol;
Expand Down

0 comments on commit 20dad82

Please sign in to comment.