OSDN Git Service

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)
commit41603d78b3626cf0da8aa562ecc2a276033db76c
treecce0f98e5b7ef9a579a9ed043875a6f23ac476b3
parent72c996099dc6fd83947a79cdac05625c6a52ffa6
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