On Mon, Aug 01, 2022 at 09:24:49AM +0200, Daniel Glöckner wrote: > Hi, > > On Tue, Jul 19, 2022 at 02:23:34PM +0300, Ivan Bornyakov wrote: > > + /* Enter init mode */ > > + gpiod_set_value(priv->program, 1); > > + > > + ret = ecp5_poll_gpio(priv->init, true); > > + if (!ret) > > + ret = ecp5_poll_gpio(priv->done, false); > > + > > + if (ret) { > > + dev_err(dev, "Failed to go to initialization mode\n"); > > + return ret; > > + } > > To me the documentation looks like the chip will deassert INITN after > tINITL regardless of the PROGRAMN signal. At 55ns max tINITL is too > short to reliably sample INITN while it is asserted when we have > interrupts enabled. Can you confirm that INITN stays asserted as long > as PROGRAMN is asserted? I confirm that INITN stays asserted while PROGRAMN is asserted, just rechecked.