From: Eduardo Valentin Date: Tue, 11 Aug 2015 17:21:23 +0000 (-0700) Subject: serial: imx: save and restore context in the suspend path X-Git-Tag: omap-for-v4.3/fixes-merge-window~43^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c868cbb7e5c6d3c74b8d38c7c356444f2c807c28;p=pandora-kernel.git serial: imx: save and restore context in the suspend path This change teaches the imx serial driver to save its context and restore it across suspend and resume path. To do so, it introduces serial_imx_restore_context() and serial_imx_save_context() functions. They use a shadow set of registers to save key registers and restore them accordingly. These functions can be reused on other situations, when the device context is lost. Cc: Fabio Estevam Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: linux-serial@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed