[PATCH] dev/sc16is752: Fix parity generation.

Christian Mauderer christian.mauderer at embedded-brains.de
Thu Feb 21 06:07:54 UTC 2019


---
 cpukit/dev/serial/sc16is752.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cpukit/dev/serial/sc16is752.c b/cpukit/dev/serial/sc16is752.c
index 068a2d3817..a58b87bfb7 100644
--- a/cpukit/dev/serial/sc16is752.c
+++ b/cpukit/dev/serial/sc16is752.c
@@ -183,6 +183,7 @@ static bool sc16is752_set_attributes(
   }
 
   if ((term->c_cflag & PARENB) != 0){
+    ctx->lcr |= SC16IS752_LCR_SET_PARITY;
     if ((term->c_cflag & PARODD) != 0) {
       ctx->lcr &= ~SC16IS752_LCR_EVEN_PARITY;
     } else {
-- 
2.13.7



More information about the devel mailing list