提交 9764e7a0 编写于 作者: J Jakub Kicinski 提交者: Greg Kroah-Hartman

sc16is7xx: don't wipe out port configuration on shutdown

EFCR register contains RS-485 configuration which should not
be changed by shutdown.  Instead of doing a write only update
the appropriate bits.
Signed-off-by: NJakub Kicinski <kubakici@wp.pl>
Signed-off-by: NJon Ringle <jringle@gridpoint.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 11b03ea0
...@@ -903,7 +903,9 @@ static void sc16is7xx_shutdown(struct uart_port *port) ...@@ -903,7 +903,9 @@ static void sc16is7xx_shutdown(struct uart_port *port)
/* Disable all interrupts */ /* Disable all interrupts */
sc16is7xx_port_write(port, SC16IS7XX_IER_REG, 0); sc16is7xx_port_write(port, SC16IS7XX_IER_REG, 0);
/* Disable TX/RX */ /* Disable TX/RX */
sc16is7xx_port_write(port, SC16IS7XX_EFCR_REG, sc16is7xx_port_update(port, SC16IS7XX_EFCR_REG,
SC16IS7XX_EFCR_RXDISABLE_BIT |
SC16IS7XX_EFCR_TXDISABLE_BIT,
SC16IS7XX_EFCR_RXDISABLE_BIT | SC16IS7XX_EFCR_RXDISABLE_BIT |
SC16IS7XX_EFCR_TXDISABLE_BIT); SC16IS7XX_EFCR_TXDISABLE_BIT);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册