On Thu, 23 Jul 2020 10:17:06 +0200 Kurt Kanzenbach wrote:
> Hi,
>
> this series adds a DSA driver for the Hirschmann Hellcreek TSN switch
> IP. Characteristics of that IP:
>
> * Full duplex Ethernet interface at 100/1000 Mbps on three ports
> * IEEE 802.1Q-compliant Ethernet Switch
> * IEEE 802.1Qbv Time-Aware scheduling support
> * IEEE 1588 and IEEE 802.1AS support
>
> That IP is used e.g. in
>
> https://www.arrow.com/en/campaigns/arrow-kairos
>
> Due to the hardware setup the switch driver is implemented using DSA. A
> special
> tagging protocol is leveraged. Furthermore, this driver supports PTP, hardware
> timestamping and TAPRIO offloading.
>
> This work is part of the AccessTSN project: https://www.accesstsn.com/
>
> The previous versions can be found here:
>
> * https://lkml.kernel.org/netdev/[email protected]/
> * https://lkml.kernel.org/netdev/[email protected]/
>
> This series depends on:
>
> * https://lkml.kernel.org/netdev/[email protected]/
>
> Changes since v1:
>
> * Code simplifications (Florian Fainelli, Vladimir Oltean)
> * Fix issues with hellcreek.yaml bindings (Florian Fainelli)
> * Clear reserved field in ptp v2 event messages (Richard Cochran)
> * Make use of generic ptp parsing function (Richard Cochran, Vladimir Oltean)
> * Fix Kconfig (Florian Fainelli)
> * Add tags (Florian Fainelli, Rob Herring, Richard Cochran)
>
> I didn't change the bridge/tagging setup, as I didn't find a better way to do
> it.
Appears not to build:
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c: In function
‘hellcreek_get_reserved_field’:
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c:177:24: error: invalid use of
undefined type ‘const struct ptp_header’
177 | return be32_to_cpu(hdr->reserved2);
| ^~