Linux/linux e2a689adrivers/net/dsa/mv88e6xxx ptp.c, drivers/net/ethernet/broadcom tg3.c

Merge branch 'ptp-Validate-the-ancillary-ioctl-flags-more-carefully'

Richard Cochran says:

====================
ptp: Validate the ancillary ioctl flags more carefully.

The flags passed to the ioctls for periodic output signals and
time stamping of external signals were never checked, and thus formed
a useless ABI inadvertently.  More recently, a version 2 of the ioctls
was introduced in order make the flags meaningful.  This series
tightens up the checks on the new ioctl flags.

- Patch 1 ensures at least one edge flag is set for the new ioctl.
- Patches 2-7 are Jacob's recent checks, picking up the tags.
- Patch 8 introduces a "strict" flag for passing to the drivers when the
  new ioctl is used.
- Patches 9-12 implement the "strict" checking in the drivers.
- Patch 13 extends the test program to exercise combinations of flags.
====================

Signed-off-by: David S. Miller <davem at davemloft.net>
DeltaFile
+51-2tools/testing/selftests/ptp/testptp.c
+15-5drivers/ptp/ptp_chardev.c
+17-0drivers/net/ethernet/intel/igb/igb_ptp.c
+17-0drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c
+16-0drivers/net/phy/dp83640.c
+13-0drivers/net/dsa/mv88e6xxx/ptp.c
+11-0drivers/net/ethernet/renesas/ravb_ptp.c
+4-1include/uapi/linux/ptp_clock.h
+4-0drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c
+4-0drivers/net/ethernet/microchip/lan743x_ptp.c
+4-0drivers/net/ethernet/broadcom/tg3.c
+156-811 files

UnifiedSplitRaw