Hi Richard, On Fri, Jul 05, 2019 at 03:02:24PM -0700, Richard Cochran wrote: > On Fri, Jul 05, 2019 at 09:52:13PM +0200, Antoine Tenart wrote: > > +static irqreturn_t ocelot_ptp_rdy_irq_handler(int irq, void *arg) > > +{ > > + struct ocelot *ocelot = arg; > > + > > + do { > > > + /* Check if a timestamp can be retrieved */ > > + if (!(val & SYS_PTP_STATUS_PTP_MESS_VLD)) > > + break; > > As in my reply on v1, I suggest adding a sanity check on this ISR's > infinite loop.
That's a good idea. I'll fix this in v3. > > + } while (true); Thanks! Antoine -- Antoine Ténart, Bootlin Embedded Linux and Kernel engineering https://bootlin.com