Subject: Re: Snapshot 20030927 available
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
From: Christopher SEKIYA <wileyc@rezrov.net>
List: port-sgimips
Date: 09/30/2003 09:05:25
(port-mips trimmed)

On Mon, Sep 29, 2003 at 11:24:17PM +0900, Izumi Tsutsui wrote:

> Is there no way to detect whether the probed device is
> (broken) O2 on-board ahc or normal one at run time?

None that I can see.  The chip is successfully reset, which foils the check in
aic7xxx.c:4011 -- and probing the bogus SEEPROM fills scsiseq with a nonzero
value, which keeps the check at ahc_pci.c:1046 from working in this situation.

To properly address your/Jason's concerns, it seems that there needs to be a
mechanism by which ahc->flags can be hardwired on a per-device basis.

(that, or somehow graft precognition into the driver so that it magically knows
that it's probing device 0 on an O2 -- but that would be the same as the
initial #ifdef hackery :)

-- Chris
	GPG key FEB9DE7F (91AF 4534 4529 4BCC 31A5  938E 023E EEFB FEB9 DE7F)