Merge tag 'tty-4.0-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty

Pull tty/serial driver fix from Greg KH:
"Here's a single 8250 serial driver that fixes a reported deadlock with
the serial console and the tty driver.

It's been in linux-next for a while now"

* tag 'tty-4.0-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
serial: 8250_dw: Fix deadlock in LCR workaround

+12 -3
+12 -3
drivers/tty/serial/8250/8250_dw.c
··· 119 119 dw8250_force_idle(p); 120 120 writeb(value, p->membase + (UART_LCR << p->regshift)); 121 121 } 122 - dev_err(p->dev, "Couldn't set LCR to %d\n", value); 122 + /* 123 + * FIXME: this deadlocks if port->lock is already held 124 + * dev_err(p->dev, "Couldn't set LCR to %d\n", value); 125 + */ 123 126 } 124 127 } 125 128 ··· 166 163 __raw_writeq(value & 0xff, 167 164 p->membase + (UART_LCR << p->regshift)); 168 165 } 169 - dev_err(p->dev, "Couldn't set LCR to %d\n", value); 166 + /* 167 + * FIXME: this deadlocks if port->lock is already held 168 + * dev_err(p->dev, "Couldn't set LCR to %d\n", value); 169 + */ 170 170 } 171 171 } 172 172 #endif /* CONFIG_64BIT */ ··· 193 187 dw8250_force_idle(p); 194 188 writel(value, p->membase + (UART_LCR << p->regshift)); 195 189 } 196 - dev_err(p->dev, "Couldn't set LCR to %d\n", value); 190 + /* 191 + * FIXME: this deadlocks if port->lock is already held 192 + * dev_err(p->dev, "Couldn't set LCR to %d\n", value); 193 + */ 197 194 } 198 195 } 199 196