Limit CHANNEL_B_PRIMARY's effect to twin channel adapters where we can easily
register our sub-busses in the reversed order. In the future, we may provide a hint to CAM on how to order the scans for multi-function adapters that also set this flag, but trying to do it the "twin channel" way will lead to a panic.
This commit is contained in:
parent
c10bf83024
commit
eef950118b
@ -122,7 +122,8 @@ ahc_attach(struct ahc_softc *ahc)
|
||||
* Attach secondary channel first if the user has
|
||||
* declared it the primary channel.
|
||||
*/
|
||||
if ((ahc->flags & AHC_CHANNEL_B_PRIMARY) != 0) {
|
||||
if ((ahc->features & AHC_TWIN) != 0
|
||||
&& (ahc->flags & AHC_CHANNEL_B_PRIMARY) != 0) {
|
||||
bus_id = 1;
|
||||
bus_id2 = 0;
|
||||
} else {
|
||||
@ -212,7 +213,8 @@ ahc_attach(struct ahc_softc *ahc)
|
||||
}
|
||||
|
||||
fail:
|
||||
if ((ahc->flags & AHC_CHANNEL_B_PRIMARY) != 0) {
|
||||
if ((ahc->features & AHC_TWIN) != 0
|
||||
&& (ahc->flags & AHC_CHANNEL_B_PRIMARY) != 0) {
|
||||
ahc->platform_data->sim_b = sim;
|
||||
ahc->platform_data->path_b = path;
|
||||
ahc->platform_data->sim = sim2;
|
||||
|
@ -122,7 +122,8 @@ ahc_attach(struct ahc_softc *ahc)
|
||||
* Attach secondary channel first if the user has
|
||||
* declared it the primary channel.
|
||||
*/
|
||||
if ((ahc->flags & AHC_CHANNEL_B_PRIMARY) != 0) {
|
||||
if ((ahc->features & AHC_TWIN) != 0
|
||||
&& (ahc->flags & AHC_CHANNEL_B_PRIMARY) != 0) {
|
||||
bus_id = 1;
|
||||
bus_id2 = 0;
|
||||
} else {
|
||||
@ -212,7 +213,8 @@ ahc_attach(struct ahc_softc *ahc)
|
||||
}
|
||||
|
||||
fail:
|
||||
if ((ahc->flags & AHC_CHANNEL_B_PRIMARY) != 0) {
|
||||
if ((ahc->features & AHC_TWIN) != 0
|
||||
&& (ahc->flags & AHC_CHANNEL_B_PRIMARY) != 0) {
|
||||
ahc->platform_data->sim_b = sim;
|
||||
ahc->platform_data->path_b = path;
|
||||
ahc->platform_data->sim = sim2;
|
||||
|
Loading…
Reference in New Issue
Block a user