All of lore.kernel.org
 help / color / mirror / Atom feed
* 8250_early for big-endian
@ 2012-10-12 13:05 Noam Camus
  2012-10-12 16:51 ` Alan Cox
  0 siblings, 1 reply; 19+ messages in thread
From: Noam Camus @ 2012-10-12 13:05 UTC (permalink / raw)
  To: linux-serial@vger.kernel.org

Hello

I am using 8250 console and wish to use the 8250_early as well.

I encounter endianess problem while using this driver for mmio32.

The problem is since my serial peripheral like my cpu is in BIG endian.

Driver through serial_in/serial_out uses readl/writel from asm-generic/io.h.

These macros assume peripheral is always in LITTLE endian.

Therefore all data needs a swab. 

In 8250 driver I can register replacement for default serial_in/serial_out and workaround the problem.
In 8250_early I had no choice but to change code with additional swab to workaround the problem.

I am looking for proper solution so it can be added to upstream.
I got several ideas if interest arise.

Waiting for your comments
Noam Camus 


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2012-11-16  5:03 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-12 13:05 8250_early for big-endian Noam Camus
2012-10-12 16:51 ` Alan Cox
2012-10-12 18:41   ` Noam Camus
2012-10-12 18:51     ` Alan Cox
2012-10-12 19:08       ` Noam Camus
2012-10-12 21:06         ` Alan Cox
2012-10-13  6:43           ` Noam Camus
2012-10-13 13:52             ` Alan Cox
2012-10-14 10:11               ` Noam Camus
2012-10-14 12:32                 ` Alan Cox
2012-10-14 16:18                   ` Noam Camus
2012-10-17  9:07                   ` Noam Camus
2012-10-25  7:08                   ` Noam Camus
2012-10-25 11:18                     ` Alan Cox
2012-10-29 15:38                       ` Noam Camus
2012-11-11  4:34                       ` Noam Camus
2012-11-14 12:20                         ` Alan Cox
2012-11-16  1:11                         ` [PATCH] tty/8250_early: Turn serial_in/serial_out into weak symbols Greg KH
2012-11-16  5:03                           ` Noam Camus

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.