Hello Andew, (adding Christian to CC)
Andrew Pushkin wrote: > Signed-off-by: Andrew Pushkin <[email protected]> > --- > drivers/net/can/mcp251x.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/drivers/net/can/mcp251x.c b/drivers/net/can/mcp251x.c > index b11a0cb..53ffec0 100644 > --- a/drivers/net/can/mcp251x.c > +++ b/drivers/net/can/mcp251x.c > @@ -587,7 +587,7 @@ static int mcp251x_hw_reset(struct spi_device *spi) > /* Wait for reset to finish */ > timeout = jiffies + HZ; > mdelay(10); > - while ((mcp251x_read_reg(spi, CANSTAT) & CANCTRL_REQOP_MASK) > + while ((mcp251x_read_reg(spi, CANCTRL) & CANCTRL_REQOP_MASK) > != CANCTRL_REQOP_CONF) { > schedule(); > if (time_after(jiffies, timeout)) { Andrew, do you have any problem with the unpatched driver? Which problem does the patch solve? cheers, Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Socketcan-core mailing list [email protected] https://lists.berlios.de/mailman/listinfo/socketcan-core
