can: mcp251x: mcp251x_hw_reset(): allow more time after a reset
authorMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 13 Aug 2019 14:01:02 +0000 (16:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Oct 2019 16:20:51 +0000 (18:20 +0200)
commit4aaea17d3c31464ecd783c9a0f554080d2298c09
tree33d1187e48fb4e1a4098f2a95d701b419cf87f5f
parent9124eac41a672b92c030d95e1fbd079740faab6c
can: mcp251x: mcp251x_hw_reset(): allow more time after a reset

commit d84ea2123f8d27144e3f4d58cd88c9c6ddc799de upstream.

Some boards take longer than 5ms to power up after a reset, so allow
some retries attempts before giving up.

Fixes: ff06d611a31c ("can: mcp251x: Improve mcp251x_hw_reset()")
Cc: linux-stable <stable@vger.kernel.org>
Tested-by: Sean Nyekjaer <sean@geanix.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/can/spi/mcp251x.c