Skip to content

serial: 8250_dw add big endian support

Noam Camus linux-serial lkml 10 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v9 Latest3 patches 2 repliesIn review
  2. v81 patch 5 repliesSuperseded
  3. v7 posting 2/21 patch 6 repliesSuperseded
Earlier versions · 7
VersionPostedPatchesRepliesStatus
v7 posting 1/21 patch0 repliesSuperseded
v6 posting 2/21 patch1 replySuperseded
v6 posting 1/21 patch0 repliesSuperseded
v5 posting 2/21 patch1 replySuperseded
v5 posting 1/21 patch0 repliesSuperseded
v42 patches1 replySuperseded
v14 patches20 repliesSuperseded

Changes in v9 from the cover letter

1) split patch into check_lcr routine and then add big endian feature
2) add new iotype support for BE 32 bit
3) make each call to readl/writel depend on iotype

Patches in v9 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3serial: 8250_dw: Avoid serial_outx code duplicate with new dw8250_check_lcr()drivers/tty/serial/8250/8250_dw.c+42 -492 replies
2/3serial: 8250_dw: Add support for big-endian MMIO accessesdrivers/tty/serial/8250/8250_dw.c+23 -00 replies
3/3serial: 8250_dw: Do not use readl/writel before checking port iotypedrivers/tty/serial/8250/8250_dw.c+10 -20 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchAndy ShevchenkoHeikki Krogerus
1/3A-b R-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v9 thread

Cover letter [PATCH v9 0/3] serial: 8250_dw add big endian support

From: Noam Camus <[email protected]>

Add support for UPIO_MEM32BE in addition to UPIO_MEM32.

v9 change:
1) split patch into check_lcr routine and then add big endian feature
2) add new iotype support for BE 32 bit
3) make each call to readl/writel depend on iotype

V8 change:
rebase on tty-next head, no functional change.

V7 change:
Fix build warning due to redundant "const" qualifier at _dw8250_serial_in32be() signature.

V6 change:
Adapt patch to latest version (nothing functional)

V5 change:
Two patches is now squashed into single one

V4 change
Remove patch for skipping looptest through DT option. This is now handled in our simulator model. Thanks to Vineet Gupta from Synopsys for his help.

We are left with 2 patches which adds BIG endian support.

V3 change:
Use second level accessors for big/little endian port. The new accessors are now pointed from uart_port->private_data These accessors are initialized during driver probe(). Driver shouldn't access directly to readl/writel but to these new second level accessors (first level is at uart_port). e.g. at dw8250_check_LCR() and dw8250_setup_port() I replaced such direct calls.

V2 changes:
1) better description for each commit.
2) adding to CC list the device tree maintainer.
3) rename dw8250_check_control() --> dw8250_check_LCR().
4) remove bad patch of "add UPF_FIXED_TYPE to flags".

Noam Camus (3):
serial: 8250_dw: Avoid serial_outx code duplicate with new

    dw8250_check_lcr()

serial: 8250_dw: Add support for big-endian MMIO accesses
serial: 8250_dw: Do not use readl/writel before checking port iotype

 drivers/tty/serial/8250/8250_dw.c |  126 ++++++++++++++++++++++---------------
 1 files changed, 75 insertions(+), 51 deletions(-)