mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
idpf: fix mailbox capability for set device clock time
The current code incorrectly uses VIRTCHNL2_CAP_PTP_SET_DEVICE_CLK_TIME
for both direct and mailbox capabilities, causing mailbox-only support
to be ignored and potentially reporting IDPF_PTP_NONE.
Fixes: d5dba8f720 ("idpf: add PTP clock configuration")
Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Tested-by: Samuel Salin <Samuel.salin@intel.com>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Link: https://patch.msgid.link/20260602225513.393338-4-anthony.l.nguyen@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
f1fa677e42
commit
85b0cbc1f3
|
|
@ -51,7 +51,7 @@ void idpf_ptp_get_features_access(const struct idpf_adapter *adapter)
|
|||
|
||||
/* Set the device clock time */
|
||||
direct = VIRTCHNL2_CAP_PTP_SET_DEVICE_CLK_TIME;
|
||||
mailbox = VIRTCHNL2_CAP_PTP_SET_DEVICE_CLK_TIME;
|
||||
mailbox = VIRTCHNL2_CAP_PTP_SET_DEVICE_CLK_TIME_MB;
|
||||
ptp->set_dev_clk_time_access = idpf_ptp_get_access(adapter,
|
||||
direct,
|
||||
mailbox);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user