OSDN Git Service

net: stmmac: dwmac-sun8i: Support different ranges for TX/RX delay chains
authorChen-Yu Tsai <wens@csie.org>
Sun, 13 May 2018 19:14:24 +0000 (03:14 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 May 2018 19:06:54 +0000 (15:06 -0400)
commit7b270b725a867587957676a8dae862caad558011
tree4f81657fff05bcc79966894e7b01cd01a4f964e3
parent49a06cae6e7ceb77f17914c4617309e038c24c4d
net: stmmac: dwmac-sun8i: Support different ranges for TX/RX delay chains

On the R40 SoC, the RX delay chain only has a range of 0~7 (hundred
picoseconds), instead of 0~31. Also the TX delay chain is completely
absent.

This patch adds support for different ranges by adding per-compatible
maximum values in the variant data. A maximum of 0 indicates that the
delay chain is not supported or absent.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c