Niklas Cassel 6b3374cb1c net: stmmac: clear reset value of snps, wr_osr_lmt/snps, rd_osr_lmt before writing
WR_OSR_LMT and RD_OSR_LMT have a reset value of 1.
Since the reset value wasn't cleared before writing, the value in the
register would be incorrect if specifying an uneven value for
snps,wr_osr_lmt/snps,rd_osr_lmt.

Zero is a valid value for the properties, since the databook specifies:
maximum outstanding requests = WR_OSR_LMT + 1.

We do not want to change the behavior for existing users when the
property is missing. Therefore, default to 1 if the property is missing,
since that is the same as the reset value.

Signed-off-by: Niklas Cassel <niklas.cassel@axis.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-12-06 10:33:48 -05:00
..
2016-12-05 14:53:46 -05:00
2016-11-13 10:22:07 -08:00
2016-11-16 20:46:32 +01:00
2016-11-17 13:53:02 -08:00
2016-10-21 21:40:29 +02:00
2016-09-27 12:33:47 +02:00
2016-10-07 21:23:40 -07:00
2016-11-05 10:52:29 -07:00
2016-11-16 12:39:57 -07:00
2016-10-07 21:23:40 -07:00
2016-12-01 16:44:42 -08:00
2016-11-11 17:02:01 -08:00
2016-11-29 16:43:24 +01:00
2016-10-06 17:03:49 -07:00
2016-11-29 11:15:37 -08:00
2016-10-14 11:07:42 -07:00
2016-11-13 10:13:33 -08:00
2016-11-18 15:49:31 +01:00
2016-11-01 09:04:04 -06:00
2016-10-24 19:52:24 -07:00