* [PATCH 1/2] serial: fix flush in auart and stm driver
@ 2013-03-14 17:31 Marc Kleine-Budde
2013-03-14 17:31 ` [PATCH 1/2] driver/serial: auart: fix flush Marc Kleine-Budde
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Marc Kleine-Budde @ 2013-03-14 17:31 UTC (permalink / raw)
To: barebox
Hello,
this series fixes problems in the auart and stm serial driver.
regards,
Marc
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] driver/serial: auart: fix flush
2013-03-14 17:31 [PATCH 1/2] serial: fix flush in auart and stm driver Marc Kleine-Budde
@ 2013-03-14 17:31 ` Marc Kleine-Budde
2013-03-14 17:31 ` [PATCH 2/2] driver/serial: stm-serial: " Marc Kleine-Budde
2013-03-15 7:22 ` [PATCH 1/2] serial: fix flush in auart and stm driver Sascha Hauer
2 siblings, 0 replies; 4+ messages in thread
From: Marc Kleine-Budde @ 2013-03-14 17:31 UTC (permalink / raw)
To: barebox
Actually wait until fifo is empty.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
drivers/serial/serial_auart.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/serial/serial_auart.c b/drivers/serial/serial_auart.c
index fa2e04f..1aebb07 100644
--- a/drivers/serial/serial_auart.c
+++ b/drivers/serial/serial_auart.c
@@ -129,7 +129,7 @@ static void auart_serial_flush(struct console_device *cdev)
struct auart_priv *priv = container_of(cdev, struct auart_priv, cdev);
/* Wait for TX FIFO empty */
- while (readl(priv->base + HW_UARTAPP_STAT) & BM_UARTAPP_STAT_TXFE)
+ while (!(readl(priv->base + HW_UARTAPP_STAT) & BM_UARTAPP_STAT_TXFE))
;
}
--
1.8.2.rc2
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 2/2] driver/serial: stm-serial: fix flush
2013-03-14 17:31 [PATCH 1/2] serial: fix flush in auart and stm driver Marc Kleine-Budde
2013-03-14 17:31 ` [PATCH 1/2] driver/serial: auart: fix flush Marc Kleine-Budde
@ 2013-03-14 17:31 ` Marc Kleine-Budde
2013-03-15 7:22 ` [PATCH 1/2] serial: fix flush in auart and stm driver Sascha Hauer
2 siblings, 0 replies; 4+ messages in thread
From: Marc Kleine-Budde @ 2013-03-14 17:31 UTC (permalink / raw)
To: barebox
Wait until fifo is empty, not until fifo is not full.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
drivers/serial/stm-serial.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/serial/stm-serial.c b/drivers/serial/stm-serial.c
index 3968892..e1276bd 100644
--- a/drivers/serial/stm-serial.c
+++ b/drivers/serial/stm-serial.c
@@ -34,6 +34,7 @@
#define UARTDBGDR 0x00
#define UARTDBGFR 0x18
+# define TXFE (1 << 7)
# define TXFF (1 << 5)
# define RXFE (1 << 4)
#define UARTDBGIBRD 0x24
@@ -92,7 +93,7 @@ static void stm_serial_flush(struct console_device *cdev)
struct stm_priv *priv = container_of(cdev, struct stm_priv, cdev);
/* Wait for TX FIFO empty */
- while (readl(priv->base + UARTDBGFR) & TXFF)
+ while (!(readl(priv->base + UARTDBGFR) & TXFE))
;
}
--
1.8.2.rc2
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] serial: fix flush in auart and stm driver
2013-03-14 17:31 [PATCH 1/2] serial: fix flush in auart and stm driver Marc Kleine-Budde
2013-03-14 17:31 ` [PATCH 1/2] driver/serial: auart: fix flush Marc Kleine-Budde
2013-03-14 17:31 ` [PATCH 2/2] driver/serial: stm-serial: " Marc Kleine-Budde
@ 2013-03-15 7:22 ` Sascha Hauer
2 siblings, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2013-03-15 7:22 UTC (permalink / raw)
To: Marc Kleine-Budde; +Cc: barebox
On Thu, Mar 14, 2013 at 06:31:51PM +0100, Marc Kleine-Budde wrote:
> Hello,
>
> this series fixes problems in the auart and stm serial driver.
Applied, thanks
Sascha
>
> regards,
> Marc
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-03-15 7:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-14 17:31 [PATCH 1/2] serial: fix flush in auart and stm driver Marc Kleine-Budde
2013-03-14 17:31 ` [PATCH 1/2] driver/serial: auart: fix flush Marc Kleine-Budde
2013-03-14 17:31 ` [PATCH 2/2] driver/serial: stm-serial: " Marc Kleine-Budde
2013-03-15 7:22 ` [PATCH 1/2] serial: fix flush in auart and stm driver Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox