aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/xilinx_uartps.c
diff options
context:
space:
mode:
authorSoren Brinkmann <soren.brinkmann@xilinx.com>2014-04-04 20:23:40 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-04-24 19:21:50 -0400
commit5ce15d2d1efb9cacab9a331c730cc805124ee612 (patch)
treeb8dc31859e0800fd8d1c73f948a249b7afe959b3 /drivers/tty/serial/xilinx_uartps.c
parente555a21149806b21ae63ba0b02d42ce100db5639 (diff)
tty: xuartps: Print warning in clock notifier
Print a warning if the clock notifier rejects a clock frequency change to facilitate debugging (see: http://thread.gmane.org/gmane.linux.ports.arm.kernel/304329/focus=304379) Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com> Tested-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/xilinx_uartps.c')
-rw-r--r--drivers/tty/serial/xilinx_uartps.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c
index 787a12064fa0..814391038abb 100644
--- a/drivers/tty/serial/xilinx_uartps.c
+++ b/drivers/tty/serial/xilinx_uartps.c
@@ -429,8 +429,10 @@ static int xuartps_clk_notifier_cb(struct notifier_block *nb,
429 * frequency. 429 * frequency.
430 */ 430 */
431 if (!xuartps_calc_baud_divs(ndata->new_rate, xuartps->baud, 431 if (!xuartps_calc_baud_divs(ndata->new_rate, xuartps->baud,
432 &bdiv, &cd, &div8)) 432 &bdiv, &cd, &div8)) {
433 dev_warn(port->dev, "clock rate change rejected\n");
433 return NOTIFY_BAD; 434 return NOTIFY_BAD;
435 }
434 436
435 spin_lock_irqsave(&xuartps->port->lock, flags); 437 spin_lock_irqsave(&xuartps->port->lock, flags);
436 438