|
|
@@ -1188,6 +1188,10 @@ static int ap_select_domain(void)
|
|
|
ap_qid_t qid;
|
|
|
int rc, i, j;
|
|
|
|
|
|
+ /* IF APXA isn't installed, only 16 domains could be defined */
|
|
|
+ if (!ap_configuration->ap_extended && (ap_domain_index > 15))
|
|
|
+ return -EINVAL;
|
|
|
+
|
|
|
/*
|
|
|
* We want to use a single domain. Either the one specified with
|
|
|
* the "domain=" parameter or the domain with the maximum number
|
|
|
@@ -1900,9 +1904,15 @@ static void ap_reset_all(void)
|
|
|
{
|
|
|
int i, j;
|
|
|
|
|
|
- for (i = 0; i < AP_DOMAINS; i++)
|
|
|
- for (j = 0; j < AP_DEVICES; j++)
|
|
|
+ for (i = 0; i < AP_DOMAINS; i++) {
|
|
|
+ if (!ap_test_config_domain(i))
|
|
|
+ continue;
|
|
|
+ for (j = 0; j < AP_DEVICES; j++) {
|
|
|
+ if (!ap_test_config_card_id(j))
|
|
|
+ continue;
|
|
|
ap_reset_queue(AP_MKQID(j, i));
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
static struct reset_call ap_reset_call = {
|