linux/drivers/thunderbolt
Lukas Wunner 02b17a41ad thunderbolt: Refactor and fix parsing of port drom entries
Currently tb_drom_parse_entry() is only able to parse drom entries of
type TB_DROM_ENTRY_PORT. Rename it to tb_drom_parse_entry_port().
Fold tb_drom_parse_port_entry() into it.

Its return value is currently ignored. Evaluate it and abort parsing on
error.

Change tb_drom_parse_entries() to accommodate for parsing of other entry
types than TB_DROM_ENTRY_PORT.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.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:42 +02:00
..
cap.c thunderbolt: Rework capability handling 2017-06-09 11:42:41 +02:00
ctl.c thunderbolt: Allow passing NULL to tb_ctl_free() 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
domain.c thunderbolt: Introduce thunderbolt bus and connection manager 2017-06-09 11:42:41 +02:00
eeprom.c thunderbolt: Refactor and fix parsing of port drom entries 2017-06-09 11:42:42 +02:00
Kconfig thunderbolt: Compile on x86 only 2016-11-18 09:42:59 +01:00
Makefile thunderbolt: Introduce thunderbolt bus and connection manager 2017-06-09 11:42:41 +02:00
nhi_regs.h thunderbolt: Add MSI-X support 2017-06-09 11:42:41 +02:00
nhi.c thunderbolt: Introduce thunderbolt bus and connection manager 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: Fail switch adding operation if reading DROM fails 2017-06-09 11:42:42 +02:00
tb_regs.h thunderbolt: Rework capability handling 2017-06-09 11:42:41 +02:00
tb.c thunderbolt: Convert switch to a device 2017-06-09 11:42:42 +02:00
tb.h thunderbolt: Convert switch to a device 2017-06-09 11:42:42 +02:00
tunnel_pci.c thunderbolt: Introduce thunderbolt bus and connection manager 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