]> git.baikalelectronics.ru Git - kernel.git/commit
igb: specify phc_index of 82575 for get_ts_info
authorKen ICHIKAWA <ichikawa.ken@jp.fujitsu.com>
Fri, 21 Mar 2014 10:37:24 +0000 (03:37 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 21 Mar 2014 10:37:24 +0000 (03:37 -0700)
commit5cdd59acdf8dd603b8cc315ba364c0ad0bcd6ff4
tree94c43b2269076a7a50aa04158b0a47be0ac4e287
parent17bd21257c076790c372907ebc1151d61ec45b65
igb: specify phc_index of 82575 for get_ts_info

82575 has only software timestamping capability and it has
no PTP Hardware Clocks. Therefore, -1 has to be specified
to the phc_index for ethtool's get_ts_info, otherwise a wrong
value will be set to the phc_index.

v2: move the if (adapter->ptp_clock) section specifying phc_index
    to above the switch statement as suggested by Matthew Vick.
    adapter->ptpclock will always be NULL for 82575.

Signed-off-by: Ken ICHIKAWA <ichikawa.ken@jp.fujitsu.com>
Acked-by: Matthew Vick <matthew.vick@intel.com>
Tested-by: Jeff Pieper <jeffrey.e.pieper@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb_ethtool.c