]> git.baikalelectronics.ru Git - kernel.git/commit
net: macb: Fix SUBNS increment and increase resolution
authorHarini Katakam <harini.katakam@xilinx.com>
Thu, 27 Jun 2019 06:21:00 +0000 (11:51 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Jun 2019 18:09:18 +0000 (11:09 -0700)
commitf2f344805724780b978e25207b1022303c936e77
treeab279b411a1b23c098c558af7b2231247251eb52
parente5c1c3b8bc720428dcc30ddd5b15fba8d17b90fb
net: macb: Fix SUBNS increment and increase resolution

The subns increment register has 24 bits as follows:
RegBit[15:0] = Subns[23:8]; RegBit[31:24] = Subns[7:0]

Fix the same in the driver and increase sub ns resolution to the
best capable, 24 bits. This should be the case on all GEM versions
that this PTP driver supports.

Signed-off-by: Harini Katakam <harini.katakam@xilinx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.h
drivers/net/ethernet/cadence/macb_ptp.c