Thread (5 messages) flat view 5 messages, 4 authors, 2008-07-07

Re: [PATCH] [V2] powerpc: legacy_serial: reg-offset & shift aren't used

From: Josh Boyer <hidden>
Date: 2008-07-07 11:05:10

On Mon, 07 Jul 2008 16:47:08 +1000
Benjamin Herrenschmidt [off-list ref] wrote:
On Tue, 2008-07-01 at 10:52 -0700, John Linn wrote:
quoted
The legacy serial driver does not work with an 8250
type UART that uses reg-offset and reg-shift. This
change updates the driver so it doesn't find the UART
when those properties are present on the UART in the
device tree for soc devices.

Signed-off-by: John Linn <redacted>
Acked-by: Grant Likely <redacted>
---
V2

Corrected logic to use "||" rather than "&&".
I have some problems with this patch:

 - First if the properties are present but their value match the
register layout of a standard UART, we will bail out... not nice.
Why would they be present in that case?
 - Why don't we just implement support for the reg-shift and
offset instead ?
Probably because the last time someone suggested that it spawned a
lengthy debate about what reg-offset/shift were supposed to do.

josh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help