Pull misc-for-upstream into release branch

Len Brown 63e34ca9 51e7fff1

+32 -31
+2 -1
Documentation/kernel-parameters.txt
··· 126 See header of drivers/scsi/53c7xx.c. 127 See also Documentation/scsi/ncr53c7xx.txt. 128 129 - acpi= [HW,ACPI] Advanced Configuration and Power Interface 130 Format: { force | off | ht | strict | noirq } 131 force -- enable ACPI if default was off 132 off -- disable ACPI if default was on
··· 126 See header of drivers/scsi/53c7xx.c. 127 See also Documentation/scsi/ncr53c7xx.txt. 128 129 + acpi= [HW,ACPI,X86-64,i386] 130 + Advanced Configuration and Power Interface 131 Format: { force | off | ht | strict | noirq } 132 force -- enable ACPI if default was off 133 off -- disable ACPI if default was on
+1
drivers/acpi/Kconfig
··· 7 depends on !X86_VISWS 8 depends on !IA64_HP_SIM 9 depends on IA64 || X86 10 11 config ACPI 12 bool "ACPI Support"
··· 7 depends on !X86_VISWS 8 depends on !IA64_HP_SIM 9 depends on IA64 || X86 10 + depends on PM 11 12 config ACPI 13 bool "ACPI Support"
+8 -2
drivers/acpi/blacklist.c
··· 79 { 80 int year = dmi_get_year(DMI_BIOS_DATE); 81 /* Doesn't exist? Likely an old system */ 82 - if (year == -1) 83 return 1; 84 /* 0? Likely a buggy new BIOS */ 85 - if (year == 0) 86 return 0; 87 if (year < CONFIG_ACPI_BLACKLIST_YEAR) { 88 printk(KERN_ERR PREFIX "BIOS age (%d) fails cutoff (%d), " 89 "acpi=force is required to enable ACPI\n",
··· 79 { 80 int year = dmi_get_year(DMI_BIOS_DATE); 81 /* Doesn't exist? Likely an old system */ 82 + if (year == -1) { 83 + printk(KERN_ERR PREFIX "no DMI BIOS year, " 84 + "acpi=force is required to enable ACPI\n" ); 85 return 1; 86 + } 87 /* 0? Likely a buggy new BIOS */ 88 + if (year == 0) { 89 + printk(KERN_ERR PREFIX "DMI BIOS year==0, " 90 + "assuming ACPI-capable machine\n" ); 91 return 0; 92 + } 93 if (year < CONFIG_ACPI_BLACKLIST_YEAR) { 94 printk(KERN_ERR PREFIX "BIOS age (%d) fails cutoff (%d), " 95 "acpi=force is required to enable ACPI\n",
-7
drivers/acpi/power.c
··· 688 return result; 689 690 mutex_lock(&resource->resource_lock); 691 - if ((resource->state == ACPI_POWER_RESOURCE_STATE_ON) && 692 - list_empty(&resource->reference)) { 693 - mutex_unlock(&resource->resource_lock); 694 - result = acpi_power_off_device(device->handle, NULL); 695 - return result; 696 - } 697 - 698 if ((resource->state == ACPI_POWER_RESOURCE_STATE_OFF) && 699 !list_empty(&resource->reference)) { 700 ref = container_of(resource->reference.next, struct acpi_power_reference, node);
··· 688 return result; 689 690 mutex_lock(&resource->resource_lock); 691 if ((resource->state == ACPI_POWER_RESOURCE_STATE_OFF) && 692 !list_empty(&resource->reference)) { 693 ref = container_of(resource->reference.next, struct acpi_power_reference, node);
+19 -19
drivers/acpi/video.c
··· 102 103 struct acpi_video_device_attrib { 104 u32 display_index:4; /* A zero-based instance of the Display */ 105 - u32 display_port_attachment:4; /*This field differenates displays type */ 106 u32 display_type:4; /*Describe the specific type in use */ 107 - u32 vendor_specific:4; /*Chipset Vendor Specifi */ 108 u32 bios_can_detect:1; /*BIOS can detect the device */ 109 u32 depend_on_vga:1; /*Non-VGA output device whose power is related to 110 the VGA device. */ ··· 484 * 0. The system BIOS should NOT automatically switch(toggle) 485 * the active display output. 486 * 1. The system BIOS should automatically switch (toggle) the 487 - * active display output. No swich event. 488 * 2. The _DGS value should be locked. 489 * 3. The system BIOS should not automatically switch (toggle) the 490 * active display output, but instead generate the display switch 491 * event notify code. 492 * lcd_flag : 493 * 0. The system BIOS should automatically control the brightness level 494 - * of the LCD, when the power changes from AC to DC 495 * 1. The system BIOS should NOT automatically control the brightness 496 - * level of the LCD, when the power changes from AC to DC. 497 * Return Value: 498 * -1 wrong arg. 499 */ ··· 525 * Return Value: 526 * None 527 * 528 - * Find out all required AML method defined under the output 529 * device. 530 */ 531 ··· 636 * Return Value: 637 * None 638 * 639 - * Find out all required AML method defined under the video bus device. 640 */ 641 642 static void acpi_video_bus_find_cap(struct acpi_video_bus *video) ··· 681 * to check well known required nodes. 682 */ 683 684 - /* Does this device able to support video switching ? */ 685 if (video->cap._DOS) { 686 video->flags.multihead = 1; 687 status = 0; 688 } 689 690 - /* Does this device able to retrieve a retrieve a video ROM ? */ 691 if (video->cap._ROM) { 692 video->flags.rom = 1; 693 status = 0; 694 } 695 696 - /* Does this device able to configure which video device to POST ? */ 697 if (video->cap._GPD && video->cap._SPD && video->cap._VPO) { 698 video->flags.post = 1; 699 status = 0; ··· 860 if (level > 100) 861 return -EFAULT; 862 863 - /* validate though the list of available levels */ 864 for (i = 0; i < dev->brightness->count; i++) 865 if (level == dev->brightness->levels[i]) { 866 if (ACPI_SUCCESS ··· 1065 printk(KERN_WARNING PREFIX 1066 "The motherboard VGA device is not listed as a possible POST device.\n"); 1067 printk(KERN_WARNING PREFIX 1068 - "This indicate a BIOS bug. Please contact the manufacturer.\n"); 1069 } 1070 printk("%lx\n", options); 1071 - seq_printf(seq, "can POST: <intgrated video>"); 1072 if (options & 2) 1073 seq_printf(seq, " <PCI video>"); 1074 if (options & 4) ··· 1102 seq_printf(seq, "<not supported>\n"); 1103 goto end; 1104 } 1105 - seq_printf(seq, "device posted is <%s>\n", device_decode[id & 3]); 1106 1107 end: 1108 return 0; ··· 1156 if (opt > 3) 1157 return -EFAULT; 1158 1159 - /* just in case an OEM 'forget' the motherboard... */ 1160 options |= 1; 1161 1162 if (options & (1ul << opt)) { ··· 1527 /* 1528 * Arg: 1529 * video : video bus device 1530 - * event : Nontify Event 1531 * 1532 * Return: 1533 * < 0 : error 1534 * 1535 * 1. Find out the current active output device. 1536 - * 2. Identify the next output device to switch 1537 * 3. call _DSS to do actual switch. 1538 */ 1539 ··· 1723 device = video->device; 1724 1725 switch (event) { 1726 - case ACPI_VIDEO_NOTIFY_SWITCH: /* User request that a switch occur, 1727 * most likely via hotkey. */ 1728 acpi_bus_generate_event(device, event, 0); 1729 break; 1730 1731 - case ACPI_VIDEO_NOTIFY_PROBE: /* User plug or remove a video 1732 * connector. */ 1733 acpi_video_device_enumerate(video); 1734 acpi_video_device_rebind(video);
··· 102 103 struct acpi_video_device_attrib { 104 u32 display_index:4; /* A zero-based instance of the Display */ 105 + u32 display_port_attachment:4; /*This field differentiates the display type */ 106 u32 display_type:4; /*Describe the specific type in use */ 107 + u32 vendor_specific:4; /*Chipset Vendor Specific */ 108 u32 bios_can_detect:1; /*BIOS can detect the device */ 109 u32 depend_on_vga:1; /*Non-VGA output device whose power is related to 110 the VGA device. */ ··· 484 * 0. The system BIOS should NOT automatically switch(toggle) 485 * the active display output. 486 * 1. The system BIOS should automatically switch (toggle) the 487 + * active display output. No switch event. 488 * 2. The _DGS value should be locked. 489 * 3. The system BIOS should not automatically switch (toggle) the 490 * active display output, but instead generate the display switch 491 * event notify code. 492 * lcd_flag : 493 * 0. The system BIOS should automatically control the brightness level 494 + * of the LCD when the power changes from AC to DC 495 * 1. The system BIOS should NOT automatically control the brightness 496 + * level of the LCD when the power changes from AC to DC. 497 * Return Value: 498 * -1 wrong arg. 499 */ ··· 525 * Return Value: 526 * None 527 * 528 + * Find out all required AML methods defined under the output 529 * device. 530 */ 531 ··· 636 * Return Value: 637 * None 638 * 639 + * Find out all required AML methods defined under the video bus device. 640 */ 641 642 static void acpi_video_bus_find_cap(struct acpi_video_bus *video) ··· 681 * to check well known required nodes. 682 */ 683 684 + /* Does this device support video switching? */ 685 if (video->cap._DOS) { 686 video->flags.multihead = 1; 687 status = 0; 688 } 689 690 + /* Does this device support retrieving a video ROM? */ 691 if (video->cap._ROM) { 692 video->flags.rom = 1; 693 status = 0; 694 } 695 696 + /* Does this device support configuring which video device to POST? */ 697 if (video->cap._GPD && video->cap._SPD && video->cap._VPO) { 698 video->flags.post = 1; 699 status = 0; ··· 860 if (level > 100) 861 return -EFAULT; 862 863 + /* validate through the list of available levels */ 864 for (i = 0; i < dev->brightness->count; i++) 865 if (level == dev->brightness->levels[i]) { 866 if (ACPI_SUCCESS ··· 1065 printk(KERN_WARNING PREFIX 1066 "The motherboard VGA device is not listed as a possible POST device.\n"); 1067 printk(KERN_WARNING PREFIX 1068 + "This indicates a BIOS bug. Please contact the manufacturer.\n"); 1069 } 1070 printk("%lx\n", options); 1071 + seq_printf(seq, "can POST: <integrated video>"); 1072 if (options & 2) 1073 seq_printf(seq, " <PCI video>"); 1074 if (options & 4) ··· 1102 seq_printf(seq, "<not supported>\n"); 1103 goto end; 1104 } 1105 + seq_printf(seq, "device POSTed is <%s>\n", device_decode[id & 3]); 1106 1107 end: 1108 return 0; ··· 1156 if (opt > 3) 1157 return -EFAULT; 1158 1159 + /* just in case an OEM 'forgot' the motherboard... */ 1160 options |= 1; 1161 1162 if (options & (1ul << opt)) { ··· 1527 /* 1528 * Arg: 1529 * video : video bus device 1530 + * event : notify event 1531 * 1532 * Return: 1533 * < 0 : error 1534 * 1535 * 1. Find out the current active output device. 1536 + * 2. Identify the next output device to switch to. 1537 * 3. call _DSS to do actual switch. 1538 */ 1539 ··· 1723 device = video->device; 1724 1725 switch (event) { 1726 + case ACPI_VIDEO_NOTIFY_SWITCH: /* User requested a switch, 1727 * most likely via hotkey. */ 1728 acpi_bus_generate_event(device, event, 0); 1729 break; 1730 1731 + case ACPI_VIDEO_NOTIFY_PROBE: /* User plugged in or removed a video 1732 * connector. */ 1733 acpi_video_device_enumerate(video); 1734 acpi_video_device_rebind(video);
+1 -1
drivers/misc/asus-laptop.c
··· 211 enum led_brightness value); \ 212 static void object##_led_update(struct work_struct *ignored); \ 213 static int object##_led_wk; \ 214 - DECLARE_WORK(object##_led_work, object##_led_update); \ 215 static struct led_classdev object##_led = { \ 216 .name = "asus:" ledname, \ 217 .brightness_set = object##_led_set, \
··· 211 enum led_brightness value); \ 212 static void object##_led_update(struct work_struct *ignored); \ 213 static int object##_led_wk; \ 214 + static DECLARE_WORK(object##_led_work, object##_led_update); \ 215 static struct led_classdev object##_led = { \ 216 .name = "asus:" ledname, \ 217 .brightness_set = object##_led_set, \
+1 -1
drivers/misc/sony-laptop.c
··· 453 static int sony_acpi_add(struct acpi_device *device) 454 { 455 acpi_status status; 456 - int result; 457 acpi_handle handle; 458 459 sony_acpi_acpi_device = device;
··· 453 static int sony_acpi_add(struct acpi_device *device) 454 { 455 acpi_status status; 456 + int result = 0; 457 acpi_handle handle; 458 459 sony_acpi_acpi_device = device;