Re: [net v1] net: stmmac: fixed new system time seconds value calculation

2019-06-22 Thread David Miller
From: Voon Weifeng Date: Wed, 19 Jun 2019 22:13:48 +0800 > From: Roland Hii > > When ADDSUB bit is set, the system time seconds field is calculated as > the complement of the seconds part of the update value. > > For example, if 3.1 seconds need to be subtracted from the > system time,

[net v1] net: stmmac: fixed new system time seconds value calculation

2019-06-18 Thread Voon Weifeng
From: Roland Hii When ADDSUB bit is set, the system time seconds field is calculated as the complement of the seconds part of the update value. For example, if 3.1 seconds need to be subtracted from the system time, this field is calculated as 2^32 - 3 = 4294967296 - 3 = 0x1 - 3