EFM32, Kinetis, BCM2708: Juha Niskanen's fix of commit 4a32325e3c
also applies to BCM2708, EFM32, and Kinetis.
This commit is contained in:
parent
4a32325e3c
commit
c6c9064464
@ -450,7 +450,7 @@ static int bcm_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
/* Perform some sanity checks before accepting any changes */
|
||||
|
||||
if (((termiosp->c_cflag & CSIZE) != CS8)
|
||||
# ifdef CONFIG_SERIAL_IFLOWCONTROL
|
||||
# ifdef CONFIG_SERIAL_OFLOWCONTROL
|
||||
|| ((termiosp->c_cflag & CCTS_OFLOW) && (priv->cts_gpio == 0))
|
||||
# endif
|
||||
# ifdef CONFIG_SERIAL_IFLOWCONTROL
|
||||
|
@ -866,7 +866,7 @@ static int efm32_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
/* Perform some sanity checks before accepting any changes */
|
||||
|
||||
if (((termiosp->c_cflag & CSIZE) != CS8)
|
||||
#ifdef CONFIG_SERIAL_IFLOWCONTROL
|
||||
#ifdef CONFIG_SERIAL_OFLOWCONTROL
|
||||
|| ((termiosp->c_cflag & CCTS_OFLOW) && (priv->cts_gpio == 0))
|
||||
#endif
|
||||
#ifdef CONFIG_SERIAL_IFLOWCONTROL
|
||||
|
@ -915,7 +915,7 @@ static int kinetis_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
/* Perform some sanity checks before accepting any changes */
|
||||
|
||||
if (((termiosp->c_cflag & CSIZE) != CS8)
|
||||
# ifdef CONFIG_SERIAL_IFLOWCONTROL
|
||||
# ifdef CONFIG_SERIAL_OFLOWCONTROL
|
||||
|| ((termiosp->c_cflag & CCTS_OFLOW) && (priv->cts_gpio == 0))
|
||||
# endif
|
||||
# ifdef CONFIG_SERIAL_IFLOWCONTROL
|
||||
|
@ -1382,7 +1382,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
/* Perform some sanity checks before accepting any changes */
|
||||
|
||||
if (((termiosp->c_cflag & CSIZE) != CS8)
|
||||
# ifdef CONFIG_SERIAL_IFLOWCONTROL
|
||||
# ifdef CONFIG_SERIAL_OFLOWCONTROL
|
||||
|| ((termiosp->c_cflag & CCTS_OFLOW) && (priv->cts_gpio == 0))
|
||||
# endif
|
||||
# ifdef CONFIG_SERIAL_IFLOWCONTROL
|
||||
|
Loading…
Reference in New Issue
Block a user