ptp: ocp: Improve PCIe delay estimation
authorVadim Fedorenko <vadim.fedorenko@linux.dev>
Thu, 5 Sep 2024 14:00:28 +0000 (14:00 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 7 Sep 2024 01:28:07 +0000 (18:28 -0700)
commitaa05fe67bcd641378454ca9d15b539125eb0933a
treefd8dd3ea35d92731fa137041e90db53cc06a1621
parent9a95eedc81deb86af1ac56f2c2bfe8306b27b82a
ptp: ocp: Improve PCIe delay estimation

The PCIe bus can be pretty busy during boot and probe function can
see excessive delays. Let's find the minimal value out of several
tests and use it as estimated value.

Signed-off-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Link: https://patch.msgid.link/20240905140028.560454-1-vadim.fedorenko@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/ptp/ptp_ocp.c