mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
bnxt_en: support PPS in/out on all pins
Add supported_extts_flags and supported_perout_flags configuration to make the driver complaint with the latest API. Initialize channel information to 0 to avoid confusing users, because HW doesn't actually care about channels. Signed-off-by: Vadim Fedorenko <vadim.fedorenko@linux.dev> Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com> Link: https://patch.msgid.link/20251019225720.898550-1-vadim.fedorenko@linux.dev Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
4a107a0e83
commit
91f76771db
@@ -952,7 +952,6 @@ static int bnxt_ptp_pps_init(struct bnxt *bp)
|
||||
snprintf(ptp_info->pin_config[i].name,
|
||||
sizeof(ptp_info->pin_config[i].name), "bnxt_pps%d", i);
|
||||
ptp_info->pin_config[i].index = i;
|
||||
ptp_info->pin_config[i].chan = i;
|
||||
if (*pin_usg == BNXT_PPS_PIN_PPS_IN)
|
||||
ptp_info->pin_config[i].func = PTP_PF_EXTTS;
|
||||
else if (*pin_usg == BNXT_PPS_PIN_PPS_OUT)
|
||||
@@ -969,6 +968,8 @@ static int bnxt_ptp_pps_init(struct bnxt *bp)
|
||||
ptp_info->n_per_out = 1;
|
||||
ptp_info->pps = 1;
|
||||
ptp_info->verify = bnxt_ptp_verify;
|
||||
ptp_info->supported_extts_flags = PTP_RISING_EDGE | PTP_STRICT_FLAGS;
|
||||
ptp_info->supported_perout_flags = PTP_PEROUT_DUTY_CYCLE;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user