Commit ef13683
net: dsa: rtl8365mb: set RGMII RX delay in steps of 0.3 ns
A contact at Realtek has clarified what exactly the units of RGMII RX
delay are. The answer is that the unit of RX delay is "about 0.3 ns".
Take this into account when parsing rx-internal-delay-ps by
approximating the closest step value. Delays of more than 2.1 ns are
rejected.
This obviously contradicts the previous assumption in the driver that a
step value of 4 was "about 2 ns", but Realtek also points out that it is
easy to find more than one RX delay step value which makes RGMII work.
Fixes: 4af2950 ("net: dsa: realtek-smi: add rtl8365mb subdriver for RTL8365MB-VC")
Cc: Arınç ÜNAL <arinc.unal@arinc9.com>
Signed-off-by: Alvin Šipraga <alsi@bang-olufsen.dk>
Acked-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 1ecab93 commit ef13683
1 file changed
+6
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
760 | 760 | | |
761 | 761 | | |
762 | 762 | | |
763 | | - | |
| 763 | + | |
| 764 | + | |
764 | 765 | | |
765 | 766 | | |
766 | 767 | | |
| |||
771 | 772 | | |
772 | 773 | | |
773 | 774 | | |
774 | | - | |
775 | | - | |
776 | | - | |
777 | | - | |
778 | 775 | | |
779 | 776 | | |
780 | 777 | | |
| |||
787 | 784 | | |
788 | 785 | | |
789 | 786 | | |
790 | | - | |
| 787 | + | |
791 | 788 | | |
792 | | - | |
793 | | - | |
| 789 | + | |
| 790 | + | |
794 | 791 | | |
795 | 792 | | |
796 | | - | |
| 793 | + | |
797 | 794 | | |
798 | 795 | | |
799 | 796 | | |
| |||
0 commit comments