Skip to contentSkip to conversation

ACPI: Fix up _PLD methods

PATCH In review Matthew Garrett 10 participants 15 messages Mar 12, 2012 – Apr 10, 2012 5 messages not in the archive

Subsystems (3)
lore
Share & tools
lore
#2 lore raw

PATCH v2 3/4 usb: Bind devices to ACPI devices when possible

In reply to a message not in the archive

Built-in USB devices will typically have a representation in the system ACPI tables. Add support for binding the two together so the USB code can make use of the associated methods.

---

Add a is_usb_device() check to make sure that we're looking at an actual USB device rather than an interface.

 drivers/usb/core/Makefile   |    1 +
 drivers/usb/core/usb-acpi.c |   60 +++++++++++++++++++++++++++++++++++++++++++
 drivers/usb/core/usb.c      |    6 +++++
 drivers/usb/core/usb.h      |    7 +++++
 4 files changed, 74 insertions(+)
 create mode 100644 drivers/usb/core/usb-acpi.c
drivers/usb/core/Makefile +1 -0
index 507a4e1..9268ddb 100644
@@ -10,5 +10,6 @@ usbcore-y += devio.o notify.o generic.o quirks.o devices.o
 
 usbcore-$(CONFIG_PCI)		+= hcd-pci.o
 usbcore-$(CONFIG_USB_DEVICEFS)	+= inode.o
+usbcore-$(CONFIG_ACPI)		+= usb-acpi.o
 
 obj-$(CONFIG_USB)		+= usbcore.o
drivers/usb/core/usb-acpi.c new file +60 -0

60 lines not on this page · raw message

drivers/usb/core/usb.c +6 -0
index 8ca9f99..ce47e3f 100644
@@ -1015,6 +1015,9 @@ static int __init usb_init(void)
 	if (retval)
 		goto out;
 
+	retval = usb_acpi_register();
+	if (retval)
+		goto acpi_register_failed;
 	retval = bus_register(&usb_bus_type);
 	if (retval)
 		goto bus_register_failed;
@@ -1054,6 +1057,8 @@ major_init_failed:
 bus_notifier_failed:
 	bus_unregister(&usb_bus_type);
 bus_register_failed:
+	usb_acpi_unregister();
+acpi_register_failed:
 	usb_debugfs_cleanup();
 out:
 	return retval;
@@ -1076,6 +1081,7 @@ static void __exit usb_exit(void)
 	usb_hub_cleanup();
 	bus_unregister_notifier(&usb_bus_type, &usb_bus_nb);
 	bus_unregister(&usb_bus_type);
+	usb_acpi_unregister();
 	usb_debugfs_cleanup();
 }
 
drivers/usb/core/usb.h +7 -0
index 45e8479..636d98e 100644
@@ -155,3 +155,10 @@ extern void usb_notify_remove_device(struct usb_device *udev);
 extern void usb_notify_add_bus(struct usb_bus *ubus);
 extern void usb_notify_remove_bus(struct usb_bus *ubus);
 
+#ifdef CONFIG_ACPI
+extern int usb_acpi_register(void);
+extern void usb_acpi_unregister(void);
+#else
+static inline int usb_acpi_register(void) { return 0; };
+static inline void usb_acpi_unregister(void) { };
+#endif
Signature · 6 lines
1.7.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#8 lore raw

PATCH v2 4/4 usb: Set device removable state based on ACPI USB data

In reply to a message not in the archive

ACPI offers two methods that allow us to infer whether or not a USB port is removable. The _PLD method gives us information on whether the port is "user visible" or not. If that's not present then we can fall back to the _UPC method which tells us whether or not a port is connectable.

---
 drivers/usb/core/usb-acpi.c |   56 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)
drivers/usb/core/usb-acpi.c +56 -0
index cab5cb7..e49373a 100644
@@ -19,6 +19,53 @@
 
 #include "usb.h"
 
+static int usb_acpi_check_upc(struct usb_device *udev, acpi_handle handle)
+{
+	acpi_status status;
+	struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL };
+	union acpi_object *upc;
+	int ret = 0;
+
+	status = acpi_evaluate_object(handle, "_UPC", NULL, &buffer);
+
+	if (ACPI_FAILURE(status))
+		return -ENODEV;
+
+	upc = buffer.pointer;
+
+	if (!upc || (upc->type != ACPI_TYPE_PACKAGE) || upc->package.count != 4) {
+		ret = -EINVAL;
+		goto out;
+	}
+
+	if (upc->package.elements[0].integer.value)
+		udev->removable = USB_DEVICE_REMOVABLE;
+	else
+		udev->removable = USB_DEVICE_FIXED;
+
+out:
+	kfree(upc);
+	return ret;
+}
+
+static int usb_acpi_check_pld(struct usb_device *udev, acpi_handle handle)
+{
+	acpi_status status;
+	struct acpi_pld pld;
+
+	status = acpi_get_physical_device_location(handle, &pld);
+
+	if (ACPI_FAILURE(status))
+		return -ENODEV;
+
+	if (pld.user_visible)
+		udev->removable = USB_DEVICE_REMOVABLE;
+	else
+		udev->removable = USB_DEVICE_FIXED;
+
+	return 0;
+}
+
 static int usb_acpi_find_device(struct device *dev, acpi_handle *handle)
 {
 	struct usb_device *udev;
@@ -40,6 +87,15 @@ static int usb_acpi_find_device(struct device *dev, acpi_handle *handle)
 	if (!*handle)
 		return -ENODEV;
 
+	/*
+	 * PLD will tell us whether a port is removable to the user or
+	 * not. If we don't get an answer from PLD (it's not present
+	 * or it's malformed) then try to infer it from UPC. If a
+	 * device isn't connectable then it's probably not removable.
+	 */
+	if (usb_acpi_check_pld(udev, *handle) != 0)
+		usb_acpi_check_upc(udev, *handle);
+
 	return 0;
 }
 
Signature · 6 lines
1.7.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#0 lore raw

PATCH v2 1/4 ACPI: Fix up _PLD methods

_PLD is defined as returning a package of buffers, but many implementations simply return a buffer. Fix this up.

(Original patch by Bob Moore <[email protected]>)

---
 drivers/acpi/acpica/nsrepair.c |   15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)
drivers/acpi/acpica/nsrepair.c +12 -3
index 9c35d20..6217cfd 100644
@@ -151,9 +151,18 @@ acpi_ns_repair_object(struct acpi_predefined_data *data,
 		}
 	}
 	if (expected_btypes & ACPI_RTYPE_PACKAGE) {
-		status = acpi_ns_convert_to_package(return_object, &new_object);
-		if (ACPI_SUCCESS(status)) {
-			goto object_repaired;
+		if (return_object->common.type == ACPI_TYPE_BUFFER) {
+			status = acpi_ns_repair_package_list(data, &return_object);
+			if (ACPI_SUCCESS(status)) {
+				*return_object_ptr = return_object;
+				data->flags |= ACPI_OBJECT_REPAIRED;
+				return (AE_OK);
+			}
+		} else {
+			status = acpi_ns_convert_to_package(return_object, &new_object);
+			if (ACPI_SUCCESS(status)) {
+				goto object_repaired;
+			}
 		}
 	}
 
Signature · 1 line
1.7.9.3
#16 lore raw

PATCH v2 2/4 ACPI: Add _PLD support

Add a simple helper function to allow drivers to obtain the physical device location data.

---
 drivers/acpi/utils.c    |   29 +++++++++++++++++++++++++++++
 include/acpi/acpi_bus.h |   31 +++++++++++++++++++++++++++++++
 2 files changed, 60 insertions(+)
drivers/acpi/utils.c +29 -0
index b002a47..5c320a0 100644
@@ -382,3 +382,32 @@ acpi_evaluate_reference(acpi_handle handle,
 }
 
 EXPORT_SYMBOL(acpi_evaluate_reference);
+
+acpi_status
+acpi_get_physical_device_location(acpi_handle handle, struct acpi_pld *pld)
+{
+	acpi_status status;
+	struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL };
+	union acpi_object *output;
+
+	status = acpi_evaluate_object(handle, "_PLD", NULL, &buffer);
+
+	if (ACPI_FAILURE(status))
+		return status;
+
+	output = buffer.pointer;
+
+	if (!output || output->type != ACPI_TYPE_PACKAGE
+	    || !output->package.count
+	    || output->package.elements[0].type != ACPI_TYPE_BUFFER
+	    || output->package.elements[0].buffer.length > sizeof(*pld)) {
+		status = AE_TYPE;
+		goto out;
+	}
+
+	memcpy(pld, output->package.elements[0].buffer.pointer,
+	       output->package.elements[0].buffer.length);
+out:
+	kfree(buffer.pointer);
+	return status;
+}
include/acpi/acpi_bus.h +31 -0
index 6cd5b64..39d7de9 100644
@@ -51,6 +51,37 @@ acpi_evaluate_reference(acpi_handle handle,
 			struct acpi_object_list *arguments,
 			struct acpi_handle_list *list);
 
+struct acpi_pld {
+	unsigned int revision:7; /* 0 */
+	unsigned int ignore_colour:1; /* 7 */
+	unsigned int colour:24; /* 8 */
+	unsigned int width:16; /* 32 */
+	unsigned int height:16; /* 48 */
+	unsigned int user_visible:1; /* 64 */
+	unsigned int dock:1; /* 65 */
+	unsigned int lid:1; /* 66 */
+	unsigned int panel:3; /* 67 */
+	unsigned int vertical_pos:2; /* 70 */
+	unsigned int horizontal_pos:2; /* 72 */
+	unsigned int shape:4; /* 74 */
+	unsigned int group_orientation:1; /* 78 */
+	unsigned int group_token:8; /* 79 */
+	unsigned int group_position:8; /* 87 */
+	unsigned int bay:1; /* 95 */
+	unsigned int ejectable:1; /* 96 */
+	unsigned int ospm_eject_required:1; /* 97 */
+	unsigned int cabinet_number:8; /* 98 */
+	unsigned int card_cage_number:8; /* 106 */
+	unsigned int reference:1; /* 114 */
+	unsigned int rotation:4; /* 115 */
+	unsigned int order:5; /* 119 */
+	unsigned int reserved:4; /* 124 */
+	unsigned int vertical_offset:16; /* 128 */
+	unsigned int horizontal_offset:16; /* 144 */
+};
+
+acpi_status
+acpi_get_physical_device_location(acpi_handle handle, struct acpi_pld *pld);
 #ifdef CONFIG_ACPI
 
 #include <linux/proc_fs.h>
Signature · 1 line
1.7.9.3
#17 lore raw
In reply to Matthew Garrett

Hello.

Quoted 23 lines · Matthew Garrett

_PLD is defined as returning a package of buffers, but many implementations simply return a buffer. Fix this up.

(Original patch by Bob Moore<[email protected]>)

---
  drivers/acpi/acpica/nsrepair.c |   15 ++++++++++++---
  1 file changed, 12 insertions(+), 3 deletions(-)
drivers/acpi/acpica/nsrepair.c +2 -3
index 9c35d20..6217cfd 100644
@@ -151,9 +151,18 @@ acpi_ns_repair_object(struct acpi_predefined_data *data,
  		}
  	}
  	if (expected_btypes&  ACPI_RTYPE_PACKAGE) {
-		status = acpi_ns_convert_to_package(return_object,&new_object);
-		if (ACPI_SUCCESS(status)) {
-			goto object_repaired;
+		if (return_object->common.type == ACPI_TYPE_BUFFER) {
+			status = acpi_ns_repair_package_list(data,&return_object);

drivers/acpi/acpica/nsrepair.c acpi_ns_repair_object(struct acpi_predefined_data *data, · line 165

Quoted 10 lines
drivers/acpi/acpica/nsrepair.c +10 -0
+			if (ACPI_SUCCESS(status)) {
+				*return_object_ptr = return_object;
+				data->flags |= ACPI_OBJECT_REPAIRED;
+				return (AE_OK);
+			}
+		} else {
+			status = acpi_ns_convert_to_package(return_object,&new_object);
+			if (ACPI_SUCCESS(status)) {
+				goto object_repaired;
+			}

{} here are against the CodingStyle.

WBR, Sergei

#9 lore raw
In reply to a message not in the archive
Quoted 4 lines · Matthew Garrett

_PLD is defined as returning a package of buffers, but many implementations simply return a buffer. Fix this up.

(Original patch by Bob Moore <[email protected]>)

Does that mean the "From:" line should be set to Bob?

Any objection from the ACPI developers for me to apply this series?

thanks,

greg k-h

Quoted 37 lines
---
 drivers/acpi/acpica/nsrepair.c |   15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)
drivers/acpi/acpica/nsrepair.c +12 -3
index 9c35d20..6217cfd 100644
@@ -151,9 +151,18 @@ acpi_ns_repair_object(struct acpi_predefined_data *data,
 		}
 	}
 	if (expected_btypes & ACPI_RTYPE_PACKAGE) {
-		status = acpi_ns_convert_to_package(return_object, &new_object);
-		if (ACPI_SUCCESS(status)) {
-			goto object_repaired;
+		if (return_object->common.type == ACPI_TYPE_BUFFER) {
+			status = acpi_ns_repair_package_list(data, &return_object);
+			if (ACPI_SUCCESS(status)) {
+				*return_object_ptr = return_object;
+				data->flags |= ACPI_OBJECT_REPAIRED;
+				return (AE_OK);
+			}
+		} else {
+			status = acpi_ns_convert_to_package(return_object, &new_object);
+			if (ACPI_SUCCESS(status)) {
+				goto object_repaired;
+			}
 		}
 	}
 
Signature · 6 lines
1.7.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#10 lore raw
Quoted 9 lines · Greg KH
Quoted 4 lines · Matthew Garrett

_PLD is defined as returning a package of buffers, but many implementations simply return a buffer. Fix this up.

(Original patch by Bob Moore <[email protected]>)

Does that mean the "From:" line should be set to Bob?

Any objection from the ACPI developers for me to apply this series?

Bob's asked me to hold off on this - he has a better patch for acpica that he'll post later this month.

Signature · 1 line
Matthew Garrett | [email protected]
maintainer
#11 lore raw
Quoted 5 lines · Matthew Garrett
Quoted 4 lines · Greg KH
Quoted 3 lines · Matthew Garrett

_PLD is defined as returning a package of buffers, but many implementations simply return a buffer. Fix this up.

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

(Original patch by Bob Moore <[email protected]>)

Does that mean the "From:" line should be set to Bob?

Any objection from the ACPI developers for me to apply this series?

Bob's asked me to hold off on this - he has a better patch for acpica that he'll post later this month.

Ok, so I'll drop the whole series, I guess this will miss 3.4 then :(

greg k-h

#4 lore raw

Re: [PATCH V2 3/4] usb: Bind devices to ACPI devices when possible

In reply to a message not in the archive
Quoted 3 lines · Matthew Garrett

Built-in USB devices will typically have a representation in the system ACPI tables. Add support for binding the two together so the USB code can make use of the associated methods.

hi Matthew:
acpi glue framework only can cover situation that the port has been
connected with some device. so without device, no acpi handle can be used to access "UPC" and "PLD".
Whether the usb port is user-visible or not is also useful when there
is no device. For example, if it is known that the usb port is not user-visible and connectable. The usb hub port can be power-off.
So usb/acpi binding should consider those usb ports without plugging device.
Does this make sense? :)

Quoted 137 lines

---

Add a is_usb_device() check to make sure that we're looking at an actual USB device rather than an interface.

  drivers/usb/core/Makefile   |    1 +
  drivers/usb/core/usb-acpi.c |   60 +++++++++++++++++++++++++++++++++++++++++++
  drivers/usb/core/usb.c      |    6 +++++
  drivers/usb/core/usb.h      |    7 +++++
  4 files changed, 74 insertions(+)

create mode 100644 drivers/usb/core/usb-acpi.c

drivers/usb/core/Makefile +1 -0
index 507a4e1..9268ddb 100644
@@ -10,5 +10,6 @@ usbcore-y += devio.o notify.o generic.o quirks.o devices.o
 
  usbcore-$(CONFIG_PCI)		+= hcd-pci.o
  usbcore-$(CONFIG_USB_DEVICEFS)	+= inode.o
+usbcore-$(CONFIG_ACPI)		+= usb-acpi.o
 
  obj-$(CONFIG_USB)		+= usbcore.o
drivers/usb/core/usb-acpi.c new file +60 -0
new file mode 100644
index 0000000..cab5cb7
@@ -0,0 +1,60 @@
+/*
+ * USB-ACPI glue code
+ *
+ * Copyright 2012 Red Hat<[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the Free
+ * Software Foundation, version 2.
+ *
+ */
+#include<linux/module.h>
+#include<linux/usb.h>
+#include<linux/device.h>
+#include<linux/errno.h>
+#include<linux/kernel.h>
+#include<linux/acpi.h>
+#include<linux/pci.h>
+#include<acpi/acpi_bus.h>
+
+#include "usb.h"
+
+static int usb_acpi_find_device(struct device *dev, acpi_handle *handle)
+{
+	struct usb_device *udev;
+	struct device *parent;
+	acpi_handle *parent_handle;
+
+	if (!is_usb_device(dev))
+		return -ENODEV;
+
+	udev = to_usb_device(dev);
+	parent = dev->parent;
+	parent_handle = DEVICE_ACPI_HANDLE(parent);
+
+	if (!parent_handle)
+		return -ENODEV;
+
+	*handle = acpi_get_child(parent_handle, udev->portnum);
+
+	if (!*handle)
+		return -ENODEV;
+
+	return 0;
+}
+
+static struct acpi_bus_type usb_acpi_bus = {
+	.bus =&usb_bus_type,
+	.find_bridge = NULL,
+	.find_device = usb_acpi_find_device,
+};
+
+int usb_acpi_register(void)
+{
+	return register_acpi_bus_type(&usb_acpi_bus);
+}
+
+void usb_acpi_unregister(void)
+{
+	unregister_acpi_bus_type(&usb_acpi_bus);
+}
drivers/usb/core/usb.c +6 -0
index 8ca9f99..ce47e3f 100644
@@ -1015,6 +1015,9 @@ static int __init usb_init(void)
  	if (retval)
  		goto out;
 
+	retval = usb_acpi_register();
+	if (retval)
+		goto acpi_register_failed;
  	retval = bus_register(&usb_bus_type);
  	if (retval)
  		goto bus_register_failed;
@@ -1054,6 +1057,8 @@ major_init_failed:
  bus_notifier_failed:
  	bus_unregister(&usb_bus_type);
  bus_register_failed:
+	usb_acpi_unregister();
+acpi_register_failed:
  	usb_debugfs_cleanup();
  out:
  	return retval;
@@ -1076,6 +1081,7 @@ static void __exit usb_exit(void)
  	usb_hub_cleanup();
  	bus_unregister_notifier(&usb_bus_type,&usb_bus_nb);
  	bus_unregister(&usb_bus_type);
+	usb_acpi_unregister();
  	usb_debugfs_cleanup();
  }
 
drivers/usb/core/usb.h +7 -0
index 45e8479..636d98e 100644
@@ -155,3 +155,10 @@ extern void usb_notify_remove_device(struct usb_device *udev);
  extern void usb_notify_add_bus(struct usb_bus *ubus);
  extern void usb_notify_remove_bus(struct usb_bus *ubus);
 
+#ifdef CONFIG_ACPI
+extern int usb_acpi_register(void);
+extern void usb_acpi_unregister(void);
+#else
+static inline int usb_acpi_register(void) { return 0; };
+static inline void usb_acpi_unregister(void) { };
+#endif
Signature · 7 lines
Best Regards
Tianyu Lan
linux kernel enabling team
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#5 lore raw

Re: [PATCH V2 3/4] usb: Bind devices to ACPI devices when possible

Quoted 4 lines · Lan Tianyu
Quoted 3 lines · Matthew Garrett

Built-in USB devices will typically have a representation in the system ACPI tables. Add support for binding the two together so the USB code can make use of the associated methods.

Quoted 9 lines

hi Matthew:
acpi glue framework only can cover situation that the port has been
connected with some device. so without device, no acpi handle can be used to access "UPC" and "PLD".
Whether the usb port is user-visible or not is also useful when there
is no device. For example, if it is known that the usb port is not user-visible and connectable. The usb hub port can be power-off.
So usb/acpi binding should consider those usb ports without plugging device.
Does this make sense? :)

I agree that this woud be useful, but right now we don't have port objects so there's nowhere to expose this. Greg, do you have any feelings about how this coud be handled?

Signature · 5 lines
Matthew Garrett | [email protected]
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
maintainer
#6 lore raw

Re: [PATCH V2 3/4] usb: Bind devices to ACPI devices when possible

Quoted 15 lines · Matthew Garrett
Quoted 4 lines · Lan Tianyu
Quoted 3 lines · Matthew Garrett

Built-in USB devices will typically have a representation in the system ACPI tables. Add support for binding the two together so the USB code can make use of the associated methods.

Quoted 9 lines

hi Matthew:
acpi glue framework only can cover situation that the port has been
connected with some device. so without device, no acpi handle can be used to access "UPC" and "PLD".
Whether the usb port is user-visible or not is also useful when there
is no device. For example, if it is known that the usb port is not user-visible and connectable. The usb hub port can be power-off.
So usb/acpi binding should consider those usb ports without plugging device.
Does this make sense? :)

Quoted 3 lines

I agree that this woud be useful, but right now we don't have port objects so there's nowhere to expose this. Greg, do you have any feelings about how this coud be handled?

If you wanted to do something like this, you are right, you would need to create a "port" device and put it on every hub. Odds are that's probably not worth it as you will be adding more indirection on every USB device, yet only ACPI based systems would be able to do anything with them.

Is there really a power savings to turn off a port if nothing is present in it? If so, how do we know to wake it up? What if we really wanted it on just to "charge" something, and it never was showing up as a real device? Messing with that could get very tricky very quickly.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#7 lore raw

Re: [PATCH V2 3/4] usb: Bind devices to ACPI devices when possible

Quoted 20 lines · Greg KH
Quoted 15 lines · Matthew Garrett
Quoted 4 lines · Lan Tianyu
Quoted 3 lines · Matthew Garrett

Built-in USB devices will typically have a representation in the system ACPI tables. Add support for binding the two together so the USB code can make use of the associated methods.

Quoted 9 lines

hi Matthew:
acpi glue framework only can cover situation that the port has been
connected with some device. so without device, no acpi handle can be used to access "UPC" and "PLD".
Whether the usb port is user-visible or not is also useful when there
is no device. For example, if it is known that the usb port is not user-visible and connectable. The usb hub port can be power-off.
So usb/acpi binding should consider those usb ports without plugging device.
Does this make sense? :)

Quoted 3 lines

I agree that this woud be useful, but right now we don't have port objects so there's nowhere to expose this. Greg, do you have any feelings about how this coud be handled?

Quoted 5 lines

If you wanted to do something like this, you are right, you would need to create a "port" device and put it on every hub. Odds are that's probably not worth it as you will be adding more indirection on every USB device, yet only ACPI based systems would be able to do anything with them.

Even on ACPI systems, most host controllers are not able to power off individual ports.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#13 lore raw
In reply to a message not in the archive

The new version of the patch has been merged in 3.4

	http://marc.info/?l=linux-acpi&m=133311010407354&w=2

Best Regards
Tianyu Lan

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Greg KH
Sent: Wednesday, March 14, 2012 5:50 AM
To: Matthew Garrett
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH V2 1/4] ACPI: Fix up _PLD methods

Quoted 5 lines · Matthew Garrett
Quoted 4 lines · Greg KH
Quoted 3 lines · Matthew Garrett

_PLD is defined as returning a package of buffers, but many implementations simply return a buffer. Fix this up.

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

(Original patch by Bob Moore <[email protected]>)

Does that mean the "From:" line should be set to Bob?

Any objection from the ACPI developers for me to apply this series?

Bob's asked me to hold off on this - he has a better patch for acpica that he'll post later this month.

Ok, so I'll drop the whole series, I guess this will miss 3.4 then :(

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#15 lore raw
In reply to a message not in the archive

The final version of this patch has been integrated into ACPICA and released as:

6a99b1c94d053b3420eaa4a4bc8b2883dd90a2f9
ACPICA: Object repair code: Support to add Package wrappers

Thus, this patch (ACPI: Fix up _PLD methods) is no longer necessary.

Bob

Quoted 39 lines

-----Original Message-----
From: [email protected] [mailto:linux-acpi- [email protected]] On Behalf Of Lan, Tianyu
Sent: Tuesday, April 10, 2012 12:57 AM
To: Greg KH; Matthew Garrett
Cc: [email protected]; [email protected]; [email protected]
Subject: RE: [PATCH V2 1/4] ACPI: Fix up _PLD methods

The new version of the patch has been merged in 3.4

	http://marc.info/?l=linux-acpi&m=133311010407354&w=2

Best Regards
Tianyu Lan

-----Original Message-----
From: [email protected] [mailto:linux-acpi- [email protected]] On Behalf Of Greg KH
Sent: Wednesday, March 14, 2012 5:50 AM
To: Matthew Garrett
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH V2 1/4] ACPI: Fix up _PLD methods

Quoted 5 lines · Matthew Garrett
Quoted 4 lines · Greg KH
Quoted 3 lines · Matthew Garrett

_PLD is defined as returning a package of buffers, but many implementations simply return a buffer. Fix this up.

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

(Original patch by Bob Moore <[email protected]>)

Does that mean the "From:" line should be set to Bob?

Any objection from the ACPI developers for me to apply this series?

Bob's asked me to hold off on this - he has a better patch for acpica that he'll post later this month.

Ok, so I'll drop the whole series, I guess this will miss 3.4 then :(

Quoted 9 lines

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html