Messages in this thread | | | Date | Sat, 12 Apr 2014 17:58:12 +0100 | From | One Thousand Gnomes <> | Subject | Re: [PATCH] serial: uart: add hw flow control support configuration |
| |
> not needed if hw has flow control capabilities. This patch adds a > DT attribute for enabling hw flow control for a uart port. Also skip > stop and start if this flag is present in flag field of the port > structure.
That seems a sensible thing to add.
> - if (up->capabilities & UART_CAP_AFE && port->fifosize >= 32) { > + if ((up->capabilities & UART_CAP_AFE && (port->fifosize >= 32)) || > + port->flags & UPF_HARD_FLOW) {
Surely you want brackets on the port->flags & UPF_HARD_FLOW ??
Alan
| |