summaryrefslogtreecommitdiffstats
path: root/drivers/macintosh/macio-adb.c
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2021-08-05 14:36:12 +0300
committerDavid S. Miller <davem@davemloft.net>2021-08-05 13:30:14 +0100
commitf8b17a0bd96065e4511858689916bb729dbb881b (patch)
tree30d571bdf3bbc4ea59666d855b8024c3ec0f28b5 /drivers/macintosh/macio-adb.c
parentb37a466837393af72fe8bcb8f1436410f3f173f3 (diff)
downloadlinux-f8b17a0bd96065e4511858689916bb729dbb881b.tar.gz
linux-f8b17a0bd96065e4511858689916bb729dbb881b.tar.bz2
linux-f8b17a0bd96065e4511858689916bb729dbb881b.zip
net: dsa: tag_sja1105: optionally build as module when switch driver is module if PTP is enabled
TX timestamps are sent by SJA1110 as Ethernet packets containing metadata, so they are received by the tagging driver but must be processed by the switch driver - the one that is stateful since it keeps the TX timestamp queue. This means that there is an sja1110_process_meta_tstamp() symbol exported by the switch driver which is called by the tagging driver. There is a shim definition for that function when the switch driver is not compiled, which does nothing, but that shim is not effective when the tagging protocol driver is built-in and the switch driver is a module, because built-in code cannot call symbols exported by modules. So add an optional dependency between the tagger and the switch driver, if PTP support is enabled in the switch driver. If PTP is not enabled, sja1110_process_meta_tstamp() will translate into the shim "do nothing with these meta frames" function. Fixes: 566b18c8b752 ("net: dsa: sja1105: implement TX timestamping for SJA1110") Reported-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/macintosh/macio-adb.c')
0 files changed, 0 insertions, 0 deletions