Skip to content

Update uart irq handling for s3c64xx and later SoC's

Tomasz Figa linux-arm-kernel linux-samsung-soc linux-serial 1 version New

Get series with b4
b4 am 2617144.DJZiU5lFpE@flatron

Versions newest first

  1. v1 Latest0 of 2 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 2 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Update uart irq handling for s3c64xx and later SoC's

Hi Thomas,

Quoted 1 line · Thomas Abraham

s3c64xx and later SoC's include the uart interrupt mask and pending

registers

Quoted 5 lines

in the uart controller, unlike their s3c24xx predecessor. This allows the uart irq handling to be moved from the platform code to the driver. This patchset does this change and removes all the macros that will not be required with this update.

Your patches should solve the issue of system hanging on wake up because of unacked (and unackable due to disabled UART bus clock) UART interrupts. So one more reason to merge them.

My earlier description of the issue:

Quoted 4 lines

I am experiencing a strange issue with UART ports on a Tiny6410 board, based on the S3C6410 SoC (hardware wise same as the Mini6410 supported by Linux), after enabling CONFIG_PM and suspending the SoC.

Quoted 8 lines

After triggering a wakeup event, it resumes till arch_suspend_enable_irqs() called by suspend_enter() and starts to get hammered by infinite amounts of UART interrupts.

I have tracked this down to disabling UART PCLK clock on suspend and the bootloader/reset/power down/whatever leaving the UART in an undefined state with interrupt bits set (specifically Tx interrupt), with the masked clock making it impossible to ack them by plat-samsung/irq-uart.c.

Best regards,
Tom