]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerJakub Kicinski <kuba@kernel.org>
Thu, 16 Jul 2020 20:27:40 +0000 (13:27 -0700)
commit16c4c5ef6ed4276778c11bbd1d7d1ad9e1cd6f02
tree77032eaca56c472ab773dd4441e7efbb85969d5c
parent0376e87788680afedea0d4d4e3003a267adf642a
net: dp83640: fix SIOCSHWTSTAMP to update the struct with actual configuration

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: 506616536445 ("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>
drivers/net/phy/dp83640.c