Message ID | 20230206114606.2133-3-daniel.starke@siemens.com |
---|---|
State | New |
Headers | show |
Series | [v4,1/4] tty: n_gsm: mark unusable ioctl structure fields accordingly | expand |
diff --git a/drivers/tty/n_gsm.c b/drivers/tty/n_gsm.c index c94df9cd282f..79efbfd27171 100644 --- a/drivers/tty/n_gsm.c +++ b/drivers/tty/n_gsm.c @@ -546,6 +546,11 @@ static u8 gsm_encode_modem(const struct gsm_dlci *dlci) modembits |= MDM_IC; if (dlci->modem_tx & TIOCM_CD || dlci->gsm->initiator) modembits |= MDM_DV; + /* special mappings for passive side to operate as UE */ + if (dlci->modem_tx & TIOCM_OUT1) + modembits |= MDM_IC; + if (dlci->modem_tx & TIOCM_OUT2) + modembits |= MDM_DV; return modembits; }