Fix non-AHCI channels detection on combined JMicron controllers,
broken by r188694.
This commit is contained in:
parent
3a3f90c6c3
commit
9738772d4e
@ -132,6 +132,8 @@ ata_jmicron_chipinit(device_t dev)
|
||||
|
||||
/* set the number of HW channels */
|
||||
ctlr->channels = ctlr->chip->cfg1 + ctlr->chip->cfg2;
|
||||
ctlr->ichannels |= ((0xffffffffU >> (32 - ctlr->chip->cfg2))
|
||||
<< ctlr->chip->cfg1);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user