]> git.baikalelectronics.ru Git - kernel.git/commit
igb: Fix PPS input and output using 3rd and 4th SDP
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 13 Feb 2023 18:58:22 +0000 (10:58 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Feb 2023 11:59:54 +0000 (12:59 +0100)
commitb60de26f2c5be3712c33c49d9fd6622f2d28f49f
tree859aed76b26c0b8a93ca6199c7860fb8e108d2f6
parented086b49c137153e03760e1d888efe001d7065a4
igb: Fix PPS input and output using 3rd and 4th SDP

commit a6840bb7609b1762ed634021ed77217e4fedcf50 upstream.

Fix handling of the tsync interrupt to compare the pin number with
IGB_N_SDP instead of IGB_N_EXTTS/IGB_N_PEROUT and fix the indexing to
the perout array.

Fixes: 3804f8de962a ("igb: move PEROUT and EXTTS isr logic to separate functions")
Reported-by: Matt Corallo <ntp-lists@mattcorallo.com>
Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Link: https://lore.kernel.org/r/20230213185822.3960072-1-anthony.l.nguyen@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/intel/igb/igb_main.c