linux/drivers/thunderbolt
Mika Westerberg da2da04b8d thunderbolt: Rework capability handling
Organization of the capabilities in switches and ports is not so random
after all. Rework the capability handling functionality so that it
follows how capabilities are organized and provide two new functions
(tb_switch_find_vse_cap() and tb_port_find_cap()) which can be used to
extract capabilities for ports and switches. Then convert the current
users over these.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Yehezkel Bernat <yehezkel.bernat@intel.com>
Reviewed-by: Michael Jamet <michael.jamet@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Andreas Noever <andreas.noever@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-06-09 11:42:41 +02:00
..
cap.c thunderbolt: Rework capability handling 2017-06-09 11:42:41 +02:00
ctl.c thunderbolt: Add MSI-X support 2017-06-09 11:42:41 +02:00
ctl.h thunderbolt: Use const buffer pointer in write operations 2017-06-09 11:42:40 +02:00
eeprom.c thunderbolt: Do not warn about newer DROM versions 2017-06-09 11:42:41 +02:00
Kconfig thunderbolt: Compile on x86 only 2016-11-18 09:42:59 +01:00
Makefile thunderbolt: Read switch uid from EEPROM 2014-06-19 14:13:00 -07:00
nhi_regs.h thunderbolt: Add MSI-X support 2017-06-09 11:42:41 +02:00
nhi.c thunderbolt: Add MSI-X support 2017-06-09 11:42:41 +02:00
nhi.h thunderbolt: Add MSI-X support 2017-06-09 11:42:41 +02:00
path.c thunderbolt: Clear hops before overwriting 2014-08-26 14:54:48 -07:00
switch.c thunderbolt: Rework capability handling 2017-06-09 11:42:41 +02:00
tb_regs.h thunderbolt: Rework capability handling 2017-06-09 11:42:41 +02:00
tb.c thunderbolt: Rework capability handling 2017-06-09 11:42:41 +02:00
tb.h thunderbolt: Rework capability handling 2017-06-09 11:42:41 +02:00
tunnel_pci.c thunderbolt: Rework capability handling 2017-06-09 11:42:41 +02:00
tunnel_pci.h thunderbolt: Add support for simple pci tunnels 2014-06-19 14:07:47 -07:00