On Fri, Mar 11, 2016 at 5:26 PM, Peter Hurley <peter@xxxxxxxxxxxxxxxxxx> wrote: > On 03/11/2016 08:19 AM, Uwe Kleine-König wrote: >> Hello Yegor, >> >> On Fri, Mar 11, 2016 at 05:06:30PM +0100, Yegor Yefremov wrote: >>> On Thu, Mar 10, 2016 at 8:55 PM, Peter Hurley <peter@xxxxxxxxxxxxxxxxxx> wrote: >>>> On 03/10/2016 08:36 AM, Peter Hurley wrote: >>>>> Rather, transform >>>>> >>>>> serial_out(port, UART_MCR, val); >>>>> serial_port_out(up, UART_MCR, val); >>>>> >>>>> to >>>>> >>>>> serial8250_out_MCR(up, val); >>>>> >>>>> and add the gpio setting to that. >>>>> Do the transform first in a prequel patch; then add gpio to that. >>>>> >>>>> Similarly for serial_in(port, UART_MCR) >>> >>> To implement serial8250_in_MCR() we will need something like >>> mctrl_gpio_get_mcr(), because mctrl_gpio_get() returns only GPIO >>> values in input mode. Peter, Uwe what do you think about it? > > mctrl_gpio_read() ? What about renaming the functions to reflect their actual meaning? mctrl_gpio_get_mcr() mctrl_gpio_set_mcr() mctrl_gpio_get_msr() >> I don't know 8250 good enough to understand the problem here. Is MCR the >> register to set the (output) handshake lines? Why do you need this? > > Save and restore, probably. > -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html