stm32-usart.c (8ebd966576ab9e43b1b620a37a616c685b202972) | stm32-usart.c (9359369ada36260a47983ac8018249dfa1c7a11b) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) Maxime Coquelin 2015 4 * Copyright (C) STMicroelectronics SA 2017 5 * Authors: Maxime Coquelin <mcoquelin.stm32@gmail.com> 6 * Gerald Baeza <gerald.baeza@foss.st.com> 7 * Erwan Le Ray <erwan.leray@foss.st.com> 8 * --- 1017 unchanged lines hidden (view full) --- 1026 } 1027 1028 stm32port->gpios = mctrl_gpio_init(&stm32port->port, 0); 1029 if (IS_ERR(stm32port->gpios)) { 1030 ret = PTR_ERR(stm32port->gpios); 1031 goto err_clk; 1032 } 1033 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) Maxime Coquelin 2015 4 * Copyright (C) STMicroelectronics SA 2017 5 * Authors: Maxime Coquelin <mcoquelin.stm32@gmail.com> 6 * Gerald Baeza <gerald.baeza@foss.st.com> 7 * Erwan Le Ray <erwan.leray@foss.st.com> 8 * --- 1017 unchanged lines hidden (view full) --- 1026 } 1027 1028 stm32port->gpios = mctrl_gpio_init(&stm32port->port, 0); 1029 if (IS_ERR(stm32port->gpios)) { 1030 ret = PTR_ERR(stm32port->gpios); 1031 goto err_clk; 1032 } 1033 |
1034 /* Both CTS/RTS gpios and "st,hw-flow-ctrl" should not be specified */ | 1034 /* 1035 * Both CTS/RTS gpios and "st,hw-flow-ctrl" (deprecated) or "uart-has-rtscts" 1036 * properties should not be specified. 1037 */ |
1035 if (stm32port->hw_flow_control) { 1036 if (mctrl_gpio_to_gpiod(stm32port->gpios, UART_GPIO_CTS) || 1037 mctrl_gpio_to_gpiod(stm32port->gpios, UART_GPIO_RTS)) { 1038 dev_err(&pdev->dev, "Conflicting RTS/CTS config\n"); 1039 ret = -EINVAL; 1040 goto err_clk; 1041 } 1042 } --- 516 unchanged lines hidden --- | 1038 if (stm32port->hw_flow_control) { 1039 if (mctrl_gpio_to_gpiod(stm32port->gpios, UART_GPIO_CTS) || 1040 mctrl_gpio_to_gpiod(stm32port->gpios, UART_GPIO_RTS)) { 1041 dev_err(&pdev->dev, "Conflicting RTS/CTS config\n"); 1042 ret = -EINVAL; 1043 goto err_clk; 1044 } 1045 } --- 516 unchanged lines hidden --- |