Skip to content

Commit

Permalink
ARM: clps711x: Fix lowlevel debug-macro
Browse files Browse the repository at this point in the history
CTS signal can not be used for the port and tied to any logic state.
In this case we have an infinite loop waiting for the signal. For fix
this problem, checking CTS removed, waiting for the signal "busy" was
postponed after the byte write to the port.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
  • Loading branch information
Alexander Shiyan authored and Arnd Bergmann committed Sep 28, 2012
1 parent 61ae48c commit 7255f87
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions arch/arm/mach-clps711x/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,11 @@
.endm

.macro waituart,rd,rx
1001: ldr \rd, [\rx, #0x0140] @ SYSFLGx
tst \rd, #1 << 11 @ UBUSYx
bne 1001b
.endm

.macro busyuart,rd,rx
tst \rx, #0x1000 @ UART2 does not have CTS here
bne 1002f
1001: ldr \rd, [\rx, #0x0140] @ SYSFLGx
tst \rd, #1 << 8 @ CTS
tst \rd, #1 << 11 @ UBUSYx
bne 1001b
1002:
.endm

0 comments on commit 7255f87

Please sign in to comment.