]> git.baikalelectronics.ru Git - kernel.git/commit
can: mcp251x: Improve mcp251x_hw_reset()
authorAlexander Shiyan <shc_work@mail.ru>
Fri, 28 Mar 2014 10:14:45 +0000 (14:14 +0400)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 24 Apr 2014 20:54:15 +0000 (22:54 +0200)
commit8f75d2644ec10b07cc9b106b91e655da9eaf7578
treecf038b150ff64a900ea14396990c2afc11ec13f9
parentf8897238ea6531d4fbe029699afef5be8f490e8b
can: mcp251x: Improve mcp251x_hw_reset()

The MCP251x utilizes an oscillator startup timer (OST), which holds the
chip in reset, to insure that the oscillator has stabilized before the
internal state machine begins to operate. The OST maintains reset for
the first 128 OSC clock cycles after power up or reset.
So, this patch removes unnecessary loops and reduce delay for power on
and reset to the safe value.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Tested-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/mcp251x.c