If the user has configured the appropriate option, then simply warn about
the clock device mismatch, and then go on.

Signed-off-by: Richard Cochran <richardcoch...@gmail.com>
---
 port.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/port.c b/port.c
index f39ad1e..05d94f5 100644
--- a/port.c
+++ b/port.c
@@ -2462,7 +2462,11 @@ struct port *port_open(int phc_index,
                pr_err("port %d: PHC device mismatch", number);
                pr_err("port %d: /dev/ptp%d requested, but /dev/ptp%d attached",
                       number, phc_index, interface->ts_info.phc_index);
-               goto err_port;
+               if (interface->boundary_clock_jbod) {
+                       pr_warning("port %d: just a bunch of devices", number);
+               } else {
+                       goto err_port;
+               }
        }
 
        p->pod = interface->pod;
-- 
1.7.10.4


------------------------------------------------------------------------------
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to