forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c
....@@ -194,6 +194,7 @@
194194 }
195195
196196 /**
197
+ * cxgb4_ptp_adjfreq - Adjust frequency of PHC cycle counter
197198 * @ptp: ptp clock structure
198199 * @ppb: Desired frequency change in parts per billion
199200 *
....@@ -229,7 +230,7 @@
229230
230231 /**
231232 * cxgb4_ptp_fineadjtime - Shift the time of the hardware clock
232
- * @ptp: ptp clock structure
233
+ * @adapter: board private structure
233234 * @delta: Desired change in nanoseconds
234235 *
235236 * Adjust the timer by resetting the timecounter structure.
....@@ -366,10 +367,10 @@
366367 int err;
367368
368369 memset(&c, 0, sizeof(c));
369
- c.op_to_portid = cpu_to_be32(FW_CMD_OP_V(FW_PTP_CMD) |
370
- FW_CMD_REQUEST_F |
371
- FW_CMD_WRITE_F |
372
- FW_PTP_CMD_PORTID_V(0));
370
+ c.op_to_portid = cpu_to_be32(FW_CMD_OP_V(FW_PTP_CMD) |
371
+ FW_CMD_REQUEST_F |
372
+ FW_CMD_WRITE_F |
373
+ FW_PTP_CMD_PORTID_V(0));
373374 c.retval_len16 = cpu_to_be32(FW_CMD_LEN16_V(sizeof(c) / 16));
374375 c.u.scmd.sc = FW_PTP_SC_INIT_TIMER;
375376