Port-hpcsh archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Swapping the order hd64461pcmcia channels are attached



On Thu, Oct 23, 2003 at 13:17:51 +0100, David Brownlee wrote:

> On Thu, 23 Oct 2003, Valeriy E. Ushakov wrote:
> 
> > I'd like to commit a trivial patch that makes the order in which
> > hd64461pcmcia attaches its channels controlled with an option.  The
> > ordering make a difference when you boot with two CF cards in both
> > PCMCIA and CF slots.
> 
>       Can't you just specify in the kernel config:
> 
> wd0     at wdc? channel ? drive 1 flags 0x0000
> wd1     at wdc? channel ? drive 0 flags 0x0000
> wd*     at wdc? channel ? drive ? flags 0x0000

No.  I explained why it's not convenient to fix units numbers.

Currently the config file looks like:

# PCMCIA bus support
pcmcia0 at hd64461pcmcia? controller 0 socket ? # I/O card, memory card
pcmcia1 at hd64461pcmcia? controller 1 socket ? # memory card only

# PCMCIA IDE disk
wdc0    at pcmcia1 function ?           # prefer CF slot as wdc0
wdc1    at pcmcia0 function ?           # pcmcia slot

# ATA (IDE) bus support
#atabus* at ata?
atabus0 at wdc0 channel ?               # preserve ordering
atabus1 at wdc1 channel ?

# IDE drives
wd*     at atabus? drive ? flags 0x0000

But as hd64461pcmcia0 controller 0 is attached first, the wd* that is
attached under it will get attached as wd0 if fixed units are not used
for wd*, and fixed units are not convenient.

Apparently the fixed numbers for pcmcia, wdc, &c above was an attempt
to at least "visually" hint to a human that the CF slot (controller 1)
"takes precedence", but unless wd* are not fixed, wd's will get
attached "in the wrong order".

With reversed attach order the "CF slot takes precedence" will be
expressed with a single option instead of lots of ugly fixed units.

hd64461pcmcia*  at hd64461if?
options         HD64461PCMCIA_REORDER_ATTACH    # attach channel 1 (CF) first

pcmcia* at hd64461pcmcia? controller ? socket ?
wdc*    at pcmcia? function ?
atabus* at ata?
wd*     at atabus? drive ? flags 0x0000

SY, Uwe
-- 
uwe%ptc.spbu.ru@localhost                         |       Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/            |       Ist zu Grunde gehen



Home | Main Index | Thread Index | Old Index