aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2009-05-22 13:43:41 -0400
committerLen Brown <len.brown@intel.com>2009-06-18 00:13:15 -0400
commit02c37bd8d0737c31caaed9a65bd7cb80aefb4c9a (patch)
tree7b293d1bf2a84746ea02b056e49acf7ed1659982 /drivers/acpi
parentd9b9bd7b4a579ff0340d29c2547b952a920639e6 (diff)
ACPI: simplify notification debug messages
This replaces several messages that depend on the acpi_device struct with a single message that uses just the acpi_handle. We should be able to deal with notifications to objects that do not yet have an acpi_device struct. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/bus.c27
1 files changed, 3 insertions, 24 deletions
diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c
index cdfecc0a2ac6..eb986385c57a 100644
--- a/drivers/acpi/bus.c
+++ b/drivers/acpi/bus.c
@@ -551,6 +551,9 @@ static void acpi_bus_notify(acpi_handle handle, u32 type, void *data)
551 struct acpi_device *device = NULL; 551 struct acpi_device *device = NULL;
552 struct acpi_driver *driver; 552 struct acpi_driver *driver;
553 553
554 ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Notification %#02x to handle %p\n",
555 type, handle));
556
554 blocking_notifier_call_chain(&acpi_bus_notify_list, 557 blocking_notifier_call_chain(&acpi_bus_notify_list,
555 type, (void *)handle); 558 type, (void *)handle);
556 559
@@ -560,9 +563,6 @@ static void acpi_bus_notify(acpi_handle handle, u32 type, void *data)
560 switch (type) { 563 switch (type) {
561 564
562 case ACPI_NOTIFY_BUS_CHECK: 565 case ACPI_NOTIFY_BUS_CHECK:
563 ACPI_DEBUG_PRINT((ACPI_DB_INFO,
564 "Received BUS CHECK notification for device [%s]\n",
565 device->pnp.bus_id));
566 result = acpi_bus_check_scope(device); 566 result = acpi_bus_check_scope(device);
567 /* 567 /*
568 * TBD: We'll need to outsource certain events to non-ACPI 568 * TBD: We'll need to outsource certain events to non-ACPI
@@ -571,9 +571,6 @@ static void acpi_bus_notify(acpi_handle handle, u32 type, void *data)
571 break; 571 break;
572 572
573 case ACPI_NOTIFY_DEVICE_CHECK: 573 case ACPI_NOTIFY_DEVICE_CHECK:
574 ACPI_DEBUG_PRINT((ACPI_DB_INFO,
575 "Received DEVICE CHECK notification for device [%s]\n",
576 device->pnp.bus_id));
577 result = acpi_bus_check_device(device, NULL); 574 result = acpi_bus_check_device(device, NULL);
578 /* 575 /*
579 * TBD: We'll need to outsource certain events to non-ACPI 576 * TBD: We'll need to outsource certain events to non-ACPI
@@ -582,44 +579,26 @@ static void acpi_bus_notify(acpi_handle handle, u32 type, void *data)
582 break; 579 break;
583 580
584 case ACPI_NOTIFY_DEVICE_WAKE: 581 case ACPI_NOTIFY_DEVICE_WAKE:
585 ACPI_DEBUG_PRINT((ACPI_DB_INFO,
586 "Received DEVICE WAKE notification for device [%s]\n",
587 device->pnp.bus_id));
588 /* TBD */ 582 /* TBD */
589 break; 583 break;
590 584
591 case ACPI_NOTIFY_EJECT_REQUEST: 585 case ACPI_NOTIFY_EJECT_REQUEST:
592 ACPI_DEBUG_PRINT((ACPI_DB_INFO,
593 "Received EJECT REQUEST notification for device [%s]\n",
594 device->pnp.bus_id));
595 /* TBD */ 586 /* TBD */
596 break; 587 break;
597 588
598 case ACPI_NOTIFY_DEVICE_CHECK_LIGHT: 589 case ACPI_NOTIFY_DEVICE_CHECK_LIGHT:
599 ACPI_DEBUG_PRINT((ACPI_DB_INFO,
600 "Received DEVICE CHECK LIGHT notification for device [%s]\n",
601 device->pnp.bus_id));
602 /* TBD: Exactly what does 'light' mean? */ 590 /* TBD: Exactly what does 'light' mean? */
603 break; 591 break;
604 592
605 case ACPI_NOTIFY_FREQUENCY_MISMATCH: 593 case ACPI_NOTIFY_FREQUENCY_MISMATCH:
606 ACPI_DEBUG_PRINT((ACPI_DB_INFO,
607 "Received FREQUENCY MISMATCH notification for device [%s]\n",
608 device->pnp.bus_id));
609 /* TBD */ 594 /* TBD */
610 break; 595 break;
611 596
612 case ACPI_NOTIFY_BUS_MODE_MISMATCH: 597 case ACPI_NOTIFY_BUS_MODE_MISMATCH:
613 ACPI_DEBUG_PRINT((ACPI_DB_INFO,
614 "Received BUS MODE MISMATCH notification for device [%s]\n",
615 device->pnp.bus_id));
616 /* TBD */ 598 /* TBD */
617 break; 599 break;
618 600
619 case ACPI_NOTIFY_POWER_FAULT: 601 case ACPI_NOTIFY_POWER_FAULT:
620 ACPI_DEBUG_PRINT((ACPI_DB_INFO,
621 "Received POWER FAULT notification for device [%s]\n",
622 device->pnp.bus_id));
623 /* TBD */ 602 /* TBD */
624 break; 603 break;
625 604