net: dp83640: fix SIOCSHWTSTAMP to update the struct with actual configuration
authorSergey Organov <sorganov@gmail.com>
Wed, 15 Jul 2020 16:10:00 +0000 (19:10 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jul 2020 08:19:42 +0000 (10:19 +0200)
commite70c101e4f83ec3e0880b54ed52b7c7c064fdfae
tree39cd890f3cfba5afd4f2b323502ceee86c981865
parent85a8c0ac9c7e984751044a48562517181fc1bb24
net: dp83640: fix SIOCSHWTSTAMP to update the struct with actual configuration

[ Upstream commit 473309fb8372365ad211f425bca760af800e10a7 ]

From Documentation/networking/timestamping.txt:

  A driver which supports hardware time stamping shall update the
  struct with the actual, possibly more permissive configuration.

Do update the struct passed when we upscale the requested time
stamping mode.

Fixes: cb646e2b02b2 ("ptp: Added a clock driver for the National Semiconductor PHYTER.")
Signed-off-by: Sergey Organov <sorganov@gmail.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/phy/dp83640.c