OSDN Git Service

hw/arm/exynos4210: Connect serial port DMA busy signals with pl330
authorGuenter Roeck <linux@roeck-us.net>
Thu, 23 Jan 2020 15:22:42 +0000 (15:22 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 23 Jan 2020 16:34:15 +0000 (16:34 +0000)
commite9d20b55b2e4c8400143554f0e83e4e1fcb9bd0f
tree3369bbebb26b17919ce1316493ce0d70e47fd804
parent3c77412b4a5e144bebf06cc668dc4b35b59b4607
hw/arm/exynos4210: Connect serial port DMA busy signals with pl330

The Exynos4210 serial driver uses an interrupt line to signal if receive
data is available. Connect that interrupt with the DMA controller's
'peripheral busy' gpio pin to stop the DMA if there is no more receive
data available. Without this patch, receive DMA runs wild and fills the
entire receive DMA buffer with invalid data.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Message-id: 20200123052540.6132-9-linux@roeck-us.net
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/exynos4210.c