Messages in this thread | | | From | Sherry Sun <> | Subject | RE: [PATCH V2 5/5] tty: serial: fsl_lpuart: clear LPUART Status Register in lpuart32_shutdown() | Date | Wed, 23 Nov 2022 11:34:55 +0000 |
| |
> -----Original Message----- > From: Michael Walle <michael@walle.cc> > Sent: 2022年11月23日 18:36 > To: Sherry Sun <sherry.sun@nxp.com> > Cc: gregkh@linuxfoundation.org; jirislaby@kernel.org; > jingchang.lu@freescale.com; tomonori.sakita@sord.co.jp; > atsushi.nemoto@sord.co.jp; linux-serial@vger.kernel.org; linux- > kernel@vger.kernel.org; dl-linux-imx <linux-imx@nxp.com> > Subject: Re: [PATCH V2 5/5] tty: serial: fsl_lpuart: clear LPUART Status > Register in lpuart32_shutdown() > > Am 2022-11-10 09:17, schrieb Sherry Sun: > > The LPUART Status Register needs to be cleared when closing the uart > > port to get a clean environment when reopening the uart. > > Shouldn't it be cleared on startup instead? What if there was some kind of > event between shutdown and startup? >
Hi Michael, same as what we discussed under another patch, unfortunately the .startup() won’t clear the status of the uart port.
Best Regards Sherry
| |