Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Soren Brinkmann and committed by
Greg Kroah-Hartman
5ce15d2d e555a211

+3 -1
+3 -1
drivers/tty/serial/xilinx_uartps.c
··· 429 429 * frequency. 430 430 */ 431 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 434 return NOTIFY_BAD; 435 + } 434 436 435 437 spin_lock_irqsave(&xuartps->port->lock, flags); 436 438