Skip to content

Commit 9aa9469

Browse files
committed
Merge branch 'at91-4.14-trunk/net' into linux-4.14-at91
2 parents 442c540 + e8ad878 commit 9aa9469

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

drivers/net/ethernet/cadence/macb.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,6 +1080,7 @@ struct macb_ptp_info {
10801080
struct macb_sama5d2_pm_data {
10811081
u32 etht;
10821082
u32 usrio;
1083+
u32 ncr;
10831084
};
10841085

10851086
struct macb_pm_ops {

drivers/net/ethernet/cadence/macb_main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3925,6 +3925,8 @@ static int __maybe_unused macb_sama5d2_suspend(struct macb *bp)
39253925
if (!(bp->caps & MACB_CAPS_USRIO_DISABLED))
39263926
pm_data->usrio = macb_or_gem_readl(bp, USRIO);
39273927

3928+
pm_data->ncr = macb_readl(bp, NCR);
3929+
39283930
if (netif_running(netdev))
39293931
macb_close(netdev);
39303932

@@ -3939,6 +3941,8 @@ static int __maybe_unused macb_sama5d2_resume(struct macb *bp)
39393941
if (!macb_sama5d2_backup())
39403942
return -EPERM;
39413943

3944+
macb_writel(bp, NCR, pm_data->ncr & MACB_BIT(MPE));
3945+
39423946
if (netdev->hw_features & NETIF_F_NTUPLE)
39433947
gem_writel_n(bp, ETHT, SCRT2_ETHT, pm_data->etht);
39443948

0 commit comments

Comments
 (0)