File tree Expand file tree Collapse file tree
drivers/net/ethernet/cadence Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1080,6 +1080,7 @@ struct macb_ptp_info {
10801080struct macb_sama5d2_pm_data {
10811081 u32 etht ;
10821082 u32 usrio ;
1083+ u32 ncr ;
10831084};
10841085
10851086struct macb_pm_ops {
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments