Rafael J. Wysocki
53540098b2
ACPI / glue: Add .match() callback to struct acpi_bus_type
...
USB uses the .find_bridge() callback from struct acpi_bus_type
incorrectly, because as a result of the way it is used by USB every
device in the system that doesn't have a bus type or parent is
passed to usb_acpi_find_device() for inspection.
What USB actually needs, though, is to call usb_acpi_find_device()
for USB ports that don't have a bus type defined, but have
usb_port_device_type as their device type, as well as for USB
devices.
To fix that replace the struct bus_type pointer in struct
acpi_bus_type used for matching devices to specific subsystems
with a .match() callback to be used for this purpose and update
the users of struct acpi_bus_type, including USB, accordingly.
Define the .match() callback routine for USB, usb_acpi_bus_match(),
in such a way that it will cover both USB devices and USB ports
and remove the now redundant .find_bridge() callback pointer from
usb_acpi_bus.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Yinghai Lu <yinghai@kernel.org>
Acked-by: Jeff Garzik <jgarzik@pobox.com>
2013-03-04 14:23:40 +01:00
..
2013-02-24 09:38:10 +00:00
2012-09-01 08:24:35 -07:00
2011-03-31 11:26:23 -03:00
2013-01-03 15:57:01 -08:00
2012-08-20 14:51:24 -07:00
2013-01-21 14:52:45 -08:00
2013-01-03 15:57:01 -08:00
2013-02-28 12:43:43 -08:00
2013-03-01 09:10:08 +00:00
2013-01-29 14:15:34 +11:00
2013-02-28 12:43:43 -08:00
2013-01-30 11:58:06 +11:00
2013-01-21 14:52:45 -08:00
2011-07-26 16:49:47 -07:00
2013-03-01 09:10:08 +00:00
2013-02-22 17:32:07 +00:00
2013-01-03 15:57:01 -08:00
2013-01-30 11:51:59 -08:00
2013-02-15 09:33:27 -08:00
2012-11-19 14:16:09 +01:00
2013-03-02 11:42:16 -08:00
2013-02-22 15:37:15 +00:00
2013-02-24 08:48:15 +00:00
2013-01-29 14:15:35 +11:00
2013-02-22 11:18:33 +00:00
2013-03-02 11:42:16 -08:00
2012-01-13 09:32:20 +10:30
2013-02-22 15:44:40 +00:00
2013-02-22 15:06:24 +00:00
2013-02-22 11:24:22 +00:00
2013-01-03 15:57:01 -08:00
2013-02-25 16:56:32 +00:00
2013-02-22 23:31:31 -05:00
2011-03-31 11:26:23 -03:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2012-03-28 18:30:03 +01:00
2011-03-31 11:26:23 -03:00
2013-01-03 15:57:01 -08:00
2013-01-03 15:57:01 -08:00
2010-05-26 19:51:07 +02:00
2011-10-31 19:31:24 -04:00
2010-05-26 19:51:07 +02:00
2010-05-26 19:51:09 +02:00
2013-01-03 15:57:01 -08:00
2013-01-03 15:57:01 -08:00
2012-06-28 11:44:36 +02:00
2010-11-16 13:33:23 -08:00
2013-01-03 15:57:01 -08:00
2011-03-31 11:26:23 -03:00
2011-06-29 15:11:21 -05:00
2012-04-22 20:16:49 +02:00
2012-04-22 20:16:49 +02:00
2013-01-03 15:57:01 -08:00
2013-01-03 15:57:01 -08:00
2010-11-16 13:33:23 -08:00
2013-01-03 15:57:01 -08:00
2013-02-27 19:10:18 -08:00
2012-09-14 11:58:53 +01:00
2013-02-24 09:29:34 +00:00
2011-03-31 11:26:23 -03:00
2013-01-03 15:57:01 -08:00
2013-02-22 23:31:31 -05:00
2010-11-16 13:33:23 -08:00
2012-03-28 18:30:03 +01:00
2010-11-16 13:33:23 -08:00
2011-05-01 10:22:40 -05:00
2011-05-01 10:22:40 -05:00
2012-04-05 17:09:40 -07:00
2013-01-03 15:57:01 -08:00
2011-03-31 11:26:23 -03:00
2013-01-03 15:57:01 -08:00
2010-11-16 13:33:23 -08:00
2010-12-31 09:50:09 -06:00
2013-01-29 13:55:06 +11:00
2012-09-01 08:43:34 -07:00
2013-01-03 15:57:01 -08:00
2010-05-26 19:51:08 +02:00
2013-02-06 12:18:56 -08:00
2012-05-10 09:19:39 +01:00
2013-02-24 09:36:58 +00:00
2012-05-10 09:19:39 +01:00
2013-01-03 15:57:01 -08:00
2012-11-27 08:59:43 +04:00
2011-03-31 11:26:23 -03:00
2012-03-28 18:30:03 +01:00
2010-11-16 13:33:23 -08:00
2013-01-03 15:57:01 -08:00
2011-03-31 11:26:23 -03:00
2013-02-24 08:24:48 +00:00
2013-02-24 08:24:48 +00:00
2013-01-03 15:57:01 -08:00
2011-03-31 11:26:23 -03:00
2012-01-03 22:54:55 -05:00
2012-09-24 12:10:55 +04:00
2011-02-24 12:41:10 -05:00
2013-01-03 15:57:01 -08:00
2013-02-21 17:40:58 -08:00
2013-01-03 15:57:01 -08:00
2012-03-22 12:55:29 -07:00
2012-02-19 08:09:00 -06:00
2011-10-31 19:31:24 -04:00
2012-03-28 18:30:03 +01:00
2013-01-03 15:57:01 -08:00
2012-03-28 18:30:03 +01:00
2012-12-01 10:09:17 +00:00
2013-01-03 15:57:01 -08:00
2012-09-01 08:42:43 -07:00
2012-03-28 18:30:03 +01:00
2013-01-03 15:57:01 -08:00
2010-05-26 19:51:07 +02:00
2010-05-02 15:55:03 -04:00
2013-01-03 15:57:01 -08:00
2012-10-07 11:34:36 +01:00
2012-03-28 18:30:03 +01:00
2010-11-16 13:33:23 -08:00
2013-01-03 15:57:01 -08:00
2010-11-16 13:33:23 -08:00
2013-01-03 15:57:01 -08:00
2013-01-03 15:57:01 -08:00
2011-05-10 10:16:21 +02:00
2013-01-03 15:57:01 -08:00
2011-03-31 11:26:23 -03:00
2012-03-28 18:30:03 +01:00
2011-03-31 11:26:23 -03:00
2012-03-28 18:30:03 +01:00
2010-11-16 13:33:23 -08:00
2013-01-03 15:57:01 -08:00
2012-02-21 11:40:37 +01:00
2010-11-16 13:33:23 -08:00
2013-01-03 15:57:01 -08:00
2013-01-03 15:57:01 -08:00
2010-11-16 13:33:23 -08:00
2010-11-16 13:33:23 -08:00
2013-01-03 15:57:01 -08:00
2013-01-03 15:57:01 -08:00
2010-08-06 09:25:50 -06:00
2012-10-09 12:23:11 +01:00
2012-09-24 12:11:00 +04:00
2012-10-09 12:04:42 +01:00
2011-10-31 19:31:23 -04:00
2013-03-04 14:23:40 +01:00
2012-09-13 16:26:39 -04:00
2012-11-30 09:26:48 +00:00
2012-07-20 09:05:54 +01:00
2011-05-28 23:12:11 -07:00
2012-10-02 08:55:12 +01:00
2012-11-30 09:08:16 +00:00
2011-10-31 19:31:23 -04:00
2011-05-01 10:20:10 -05:00
2011-05-24 12:38:36 -04:00
2012-08-01 09:02:41 -07:00
2013-02-28 12:43:43 -08:00
2012-12-01 10:08:41 +00:00
2012-05-10 09:06:12 +01:00
2012-11-30 17:40:33 -08:00
2012-11-13 21:11:31 -08:00
2012-01-03 22:54:07 -05:00
2012-09-24 12:10:59 +04:00
2012-11-30 09:28:34 +00:00
2012-11-13 22:45:42 -08:00
2011-06-29 12:14:25 -05:00
2013-02-27 19:10:18 -08:00
2013-01-03 15:57:01 -08:00
2013-01-03 15:57:01 -08:00
2013-01-03 15:57:01 -08:00
2011-10-31 19:31:24 -04:00
2010-03-30 22:02:32 +09:00
2013-01-25 15:36:43 -05:00
2011-07-21 14:15:58 -07:00
2013-02-27 19:10:18 -08:00
2012-09-14 17:59:29 +01:00
2013-01-03 15:57:01 -08:00
2013-03-02 11:42:16 -08:00
2011-06-29 15:15:05 -05:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2010-11-16 13:33:23 -08:00
2013-01-03 15:57:01 -08:00
2013-01-03 15:57:01 -08:00
2013-01-03 15:57:01 -08:00
2010-11-16 13:33:23 -08:00
2012-03-28 18:30:03 +01:00
2010-11-16 13:33:23 -08:00
2013-01-03 15:57:01 -08:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2010-11-16 13:33:23 -08:00
2013-01-03 15:57:01 -08:00
2013-01-03 15:57:01 -08:00
2012-03-27 08:26:36 +01:00
2011-05-26 13:19:00 -07:00
2010-11-16 13:33:23 -08:00
2012-03-28 18:30:03 +01:00
2013-01-03 15:57:01 -08:00
2013-01-03 15:57:01 -08:00