mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-28 15:13:55 +08:00
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>
This commit is contained in:
parent
e555a21149
commit
5ce15d2d1e
@ -429,8 +429,10 @@ static int xuartps_clk_notifier_cb(struct notifier_block *nb,
|
||||
* frequency.
|
||||
*/
|
||||
if (!xuartps_calc_baud_divs(ndata->new_rate, xuartps->baud,
|
||||
&bdiv, &cd, &div8))
|
||||
&bdiv, &cd, &div8)) {
|
||||
dev_warn(port->dev, "clock rate change rejected\n");
|
||||
return NOTIFY_BAD;
|
||||
}
|
||||
|
||||
spin_lock_irqsave(&xuartps->port->lock, flags);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user