]> 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)
commitceefe2d551466384fdba9f9c15e903bc3ddd7abc
tree77032eaca56c472ab773dd4441e7efbb85969d5c
parentb7f5edd1c5e8ccab79bfab6c07d0642de389d2d5
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: 46d0464b6fd5 ("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