]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: Make the PTP command read-write
authorVladimir Oltean <olteanv@gmail.com>
Tue, 12 Nov 2019 00:11:53 +0000 (02:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Nov 2019 22:50:35 +0000 (14:50 -0800)
commite536c9d2d4e8e3109391c09b2861c5bb21b6d9f9
treecce0f98e5b7ef9a579a9ed043875a6f23ac476b3
parent21d1175e489470ce07b8ce45b64e3353c3ba343d
net: dsa: sja1105: Make the PTP command read-write

The PTPSTRTSCH and PTPSTOPSCH bits are actually readable and indicate
whether the time-aware scheduler is running or not. We will be using
that for monitoring the scheduler in the next patch, so refactor the PTP
command API in order to allow that.

Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105.h
drivers/net/dsa/sja1105/sja1105_ptp.c
drivers/net/dsa/sja1105/sja1105_ptp.h
drivers/net/dsa/sja1105/sja1105_spi.c