Re: [PATCH net-next] ptp: add debugfs support for IDT family of timing devices

From: Andrew Lunn
Date: Sat Jul 11 2020 - 16:01:18 EST


On Fri, Jul 10, 2020 at 11:41:25AM -0400, min.li.xe@xxxxxxxxxxx wrote:
> From: Min Li <min.li.xe@xxxxxxxxxxx>
>
> This patch is to add debugfs support for ptp_clockmatrix and ptp_idt82p33.
> It will create a debugfs directory called idtptp{x} and x is the ptp index.
> Three inerfaces are present, which are cmd, help and regs. help is read
> only and will display a brief help message. regs is read only amd will show
> all register values.

You can get register dumps for free in debugfs if you use regmap. And
i2c devices are well supported by regmap.

Andrew