From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Wed, 16 May 2018 09:40:40 -0600 Subject: [U-Boot] [PATCH v2 2/7] serial: serial_msm: fail probe if settings clocks fails In-Reply-To: <20180516091342.7509-2-ramon.fried@gmail.com> References: <20180516091342.7509-1-ramon.fried@gmail.com> <20180516091342.7509-2-ramon.fried@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 16 May 2018 at 03:13, Ramon Fried wrote: > Failure to set the clocks will causes data abort exception when > trying to write to AHB uart registers. > This patch ensures that we don't touch these registers if clock > setting failed. > > Signed-off-by: Ramon Fried > --- > v2: on failure, return actual return code from msm_uart_clk_init > > drivers/serial/serial_msm.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) Reviewed-by: Simon Glass