1. 17 Aug, 2019 20 commits
  2. 16 Aug, 2019 17 commits
  3. 15 Aug, 2019 3 commits
    • David S. Miller's avatar
      Merge branch 'mscc-PTP-support' · 459c5fb4
      David S. Miller authored
      Antoine Tenart says:
      
      ====================
      net: mscc: PTP Hardware Clock (PHC) support
      
      This series introduces the PTP Hardware Clock (PHC) support to the Mscc
      Ocelot switch driver. In order to make use of this, a new register bank
      is added and described in the device tree, as well as a new interrupt.
      The use this bank and interrupt was made optional in the driver for dt
      compatibility reasons.
      
      Thanks!
      Antoine
      
      Since v5:
        - Made sure both the PTP interrupt and register bank were available to
          enable supporting h/w timestamping.
        - Added a check after a kzalloc.
        - Add Reviewed-by tags from Andrew.
      
      Since v4:
        - Added SKBTX_IN_PROGRESS.
        - Fixed two xmas trees.
        - Rework the loop condition in ocelot_ptp_rdy_irq_handler.
      
      Since v3:
        - Fixed a spin_unlock_irqrestore issue.
      
      Since v2:
        - Prevented from a possible infinite loop when reading the h/w
          timestamps.
        - s/GFP_KERNEL/GFP_ATOMIC/ in the Tx path.
        - Set rx_filter to HWTSTAMP_FILTER_PTP_V2_EVENT at probe.
        - Fixed s/w timestamping dependencies.
        - Added Paul Burton's Acked-by on patches 2 and 4.
      
      Since v1:
        - Used list_for_each_safe() in ocelot_deinit().
        - Fixed a memory leak in ocelot_deinit() by calling
          dev_kfree_skb_any().
        - Fixed a locking issue in get_hwtimestamp().
        - Handled the NULL case of ptp_clock_register().
        - Added comments on optional dt properties.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      459c5fb4
    • Antoine Tenart's avatar
      net: mscc: PTP Hardware Clock (PHC) support · 4e3b0468
      Antoine Tenart authored
      This patch adds support for PTP Hardware Clock (PHC) to the Ocelot
      switch for both PTP 1-step and 2-step modes.
      Signed-off-by: default avatarAntoine Tenart <antoine.tenart@bootlin.com>
      Acked-by: default avatarRichard Cochran <richardcochran@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      4e3b0468
    • Antoine Tenart's avatar
      net: mscc: remove the frame_info cpuq member · 1f0239de
      Antoine Tenart authored
      In struct frame_info, the cpuq member is never used. This cosmetic patch
      removes it from the structure, and from the parsing of the frame header
      as it's only set but never used.
      Signed-off-by: default avatarAntoine Tenart <antoine.tenart@bootlin.com>
      Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      1f0239de