From: Marc Kleine-Budde Date: Fri, 28 Feb 2014 14:30:18 +0000 (+0100) Subject: can: flexcan: fix transition from and to low power mode in chip_{en,dis}able X-Git-Tag: v3.14-rc6~30^2~3^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b00b300e7bce032c467c36ca47fe2a776887fc2;p=pandora-kernel.git can: flexcan: fix transition from and to low power mode in chip_{en,dis}able In flexcan_chip_enable() and flexcan_chip_disable() fixed delays are used. Experiments have shown that the transition from and to low power mode may take several microseconds. This patch adds a while loop which polls the Low Power Mode ACK bit (LPM_ACK) that indicates a successfull mode change. If the function runs into a timeout a error value is returned. Cc: linux-stable Signed-off-by: Marc Kleine-Budde --- Reading git-diff-tree failed