WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ppc-devel

Re: [XenPPC] [pushed] [ppc] serial port discovery and zilog device drive

To: jimix@xxxxxxxxxxxxxx
Subject: Re: [XenPPC] [pushed] [ppc] serial port discovery and zilog device driver
From: Hollis Blanchard <hollisb@xxxxxxxxxx>
Date: Thu, 25 May 2006 15:52:28 -0500
Cc: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 25 May 2006 13:51:51 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <E1FjLnJ-0001C0-SN@xxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: IBM Linux Technology Center
References: <E1FjLnJ-0001C0-SN@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, 2006-05-25 at 15:46 -0400, jimix@xxxxxxxxxxxxxx wrote:
> changeset:   10387:a1a0ff01e7c7e51ee2a1b418e463edbff19d7c55
> user:        jimix@xxxxxxxxxxxxxxxxxxxxx
> date:        Thu May 25 15:20:20 2006 -0400
> files:       xen/arch/ppc/boot_of.c xen/arch/ppc/setup.c 
> xen/drivers/char/Makefile xen/drivers/char/ns16550.c 
> xen/drivers/char/pmac_zilog.c xen/drivers/char/pmac_zilog.h 
> xen/include/asm-ppc/uart.h xen/include/xen/serial.h
> description:
> [ppc] serial port discovery and zilog device driver

I'm pretty unhappy with this commit. Other than the cosmetic issues,
which are certainly present, some of my immediate problems are:

- the existence of 'global_serial_port'
  - Why can't you call e.g. ns16550_init() from
boot_of_serial_ns16550()? That's the exact same principle I suggested
for the "platform detection" patch.
  - 'global_serial_port' seems to store data that's never used, such as
'clock'.
- boot_of_serial_zilog/ns16550() do lots of getprop() calls to find
addr_cells and size_cells, then discard the values.

Before I spend too much time hacking at it, Maria, do you have a
subsequent patch you're working on right now that will clean this code
up?

-- 
Hollis Blanchard
IBM Linux Technology Center


_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel