Searched hist:"6 b3374cb1c0bd4699ace03d7e0dc14b532e4f52e" (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwmac1000_dma.c | diff 6b3374cb1c0bd4699ace03d7e0dc14b532e4f52e Mon Dec 05 11:12:54 CST 2016 Niklas Cassel <niklas.cassel@axis.com> 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>
|
H A D | dwmac4_dma.c | diff 6b3374cb1c0bd4699ace03d7e0dc14b532e4f52e Mon Dec 05 11:12:54 CST 2016 Niklas Cassel <niklas.cassel@axis.com> 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>
|
H A D | stmmac_platform.c | diff 6b3374cb1c0bd4699ace03d7e0dc14b532e4f52e Mon Dec 05 11:12:54 CST 2016 Niklas Cassel <niklas.cassel@axis.com> 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>
|