Re: [Linuxptp-devel] [PATCH v4 4/4] phc_ctl: add get_pins_cfg command to display pin functions

2023-06-27 Thread Jacob Keller
On 6/26/2023 11:54 PM, Erez wrote: > On Mon, 26 Jun 2023 at 21:04, Jacob Keller wrote: >> +static int do_get_pins_cfg(clockid_t clkid, int cmdc, char *cmdv[]) >> +{ >> + struct ptp_pin_desc pin_desc; >> + unsigned int index; >> + int n_pins; >> + >> + if (clkid >= 0) {

Re: [Linuxptp-devel] [PATCH v4 4/4] phc_ctl: add get_pins_cfg command to display pin functions

2023-06-27 Thread Erez
On Mon, 26 Jun 2023 at 21:04, Jacob Keller wrote: > Add a new function to phc_ctl to display the devices pin configuration > data. First, obtain the device capabilities to determine the number of > pins. Then, for each pin, print the name, function, and channel > information. > > Signed-off-by: