]> 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)
commiteed173864bc7bab88c1c6ce899bb5434a94a858e
treecce0f98e5b7ef9a579a9ed043875a6f23ac476b3
parentfd28b06e45a479b8e4f8ec34009483e4336c6795
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