thunderbolt: Read port configuration from eeprom.
authorAndreas Noever <andreas.noever@gmail.com>
Thu, 12 Jun 2014 21:11:46 +0000 (23:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 21:14:35 +0000 (14:14 -0700)
commitcd22e73bdf5eff7e68a0f8bdfbce123ad43651f6
tree0455e24a7e283483f52c5adb4d4e1056bb6c745c
parent23dd5bb49d986f37977ed80dd2ca65040ead4392
thunderbolt: Read port configuration from eeprom.

All Thunderbolt switches (except the root switch) contain a drom which
contains information about the device. Right now we only read the UID.

Add code to read and parse this drom. For now we are only interested in
which ports are disabled and which ports are "dual link ports" (a
physical thunderbolt port/socket contains two such ports).

Signed-off-by: Andreas Noever <andreas.noever@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/eeprom.c
drivers/thunderbolt/switch.c
drivers/thunderbolt/tb.h