From: Cyrille Pitchen Date: Tue, 9 Dec 2014 13:31:33 +0000 (+0100) Subject: tty/serial: at91: enable peripheral clock before accessing I/O registers X-Git-Tag: fixes-v4.0-rc1~98^2~102 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4f641876a68d1961e30c202709cc2d484f69f6f;p=pandora-kernel.git tty/serial: at91: enable peripheral clock before accessing I/O registers atmel_serial_probe() calls atmel_init_port(). In turn, atmel_init_port() calls clk_disable_unprepare() to disable the peripheral clock before returning. Later atmel_serial_probe() accesses some I/O registers such as the Mode and Control registers for RS485 support then the Name and Version registers, through a call to atmel_get_ip_name(), but at that moment the peripheral clock was still disabled. Signed-off-by: Cyrille Pitchen Acked-by: Nicolas Ferre Cc: # 3.12+ Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed