thunderbolt: Read switch uid from EEPROM
authorAndreas Noever <andreas.noever@gmail.com>
Tue, 3 Jun 2014 20:04:11 +0000 (22:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 21:13:00 +0000 (14:13 -0700)
commitc90553b3c4ac2389a71a5c012b6e5bb1160d48a7
treea4374e06d030654c1dd1f076417908f2536824f4
parent1df5172c5c251ec24a1bd0f44fe38c841f384330
thunderbolt: Read switch uid from EEPROM

Add eeprom access code and read the uid during switch initialization.
The UID will be used to check device identity after suspend.

Signed-off-by: Andreas Noever <andreas.noever@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/Makefile
drivers/thunderbolt/eeprom.c [new file with mode: 0644]
drivers/thunderbolt/switch.c
drivers/thunderbolt/tb.h