OpenCloudOS-Kernel/drivers/thunderbolt
Mika Westerberg 7a7ebfa85f thunderbolt: Power cycle the router if NVM authentication fails
On zang's Dell XPS 13 9370 after Thunderbolt NVM firmware upgrade the
Thunderbolt controller did not come back as expected. Only after the
system was rebooted it became available again. It is not entirely clear
what happened but I suspect the new NVM firmware image authentication
failed for some reason. Regardless of this the router needs to be power
cycled if NVM authentication fails in order to get it fully functional
again.

This modifies the driver to issue a power cycle in case the NVM
authentication fails immediately when dma_port_flash_update_auth()
returns. We also need to call tb_switch_set_uuid() earlier to be able to
fetch possible NVM authentication failure when DMA port is added.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=205457
Reported-by: zang <dump@tzib.net>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-11-19 17:35:57 +01:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile thunderbolt: Add support for Intel Ice Lake 2019-08-26 12:15:06 +03:00
cap.c thunderbolt: Expand controller name in tb_switch_is_xy() 2019-11-02 12:13:31 +03:00
ctl.c thunderbolt: Log switch route string on config read/write timeout 2019-11-01 14:31:59 +03:00
ctl.h thunderbolt: Add Intel as copyright holder 2018-10-02 15:52:08 -07:00
dma_port.c thunderbolt: Convert rest of the driver files to use SPDX identifier 2018-10-02 15:52:08 -07:00
dma_port.h thunderbolt: Convert rest of the driver files to use SPDX identifier 2018-10-02 15:52:08 -07:00
domain.c crypto: shash - remove shash_desc::flags 2019-04-25 15:38:12 +08:00
eeprom.c thunderbolt: Add default linking between lane adapters if not provided by DROM 2019-11-02 12:13:31 +03:00
icm.c thunderbolt: Do not start firmware unless asked by the user 2019-11-02 12:13:31 +03:00
lc.c thunderbolt: Add Display Port adapter pairing and resource management 2019-11-02 12:13:31 +03:00
nhi.c thunderbolt: Add support for Intel Ice Lake 2019-08-26 12:15:06 +03:00
nhi.h thunderbolt: Add support for Intel Ice Lake 2019-08-26 12:15:06 +03:00
nhi_ops.c thunderbolt: Drop unnecessary read when writing LC command in Ice Lake 2019-10-08 12:08:21 +03:00
nhi_regs.h thunderbolt: Add support for Intel Ice Lake 2019-08-26 12:15:06 +03:00
path.c thunderbolt: Add bandwidth management for Display Port tunnels 2019-11-02 12:13:31 +03:00
property.c thunderbolt: property: Fix a missing check of kzalloc 2019-03-28 11:30:47 +03:00
switch.c thunderbolt: Power cycle the router if NVM authentication fails 2019-11-19 17:35:57 +01:00
tb.c thunderbolt: Do not start firmware unless asked by the user 2019-11-02 12:13:31 +03:00
tb.h thunderbolt: Add bandwidth management for Display Port tunnels 2019-11-02 12:13:31 +03:00
tb_msgs.h thunderbolt: Add support for lane bonding 2019-11-02 12:13:31 +03:00
tb_regs.h thunderbolt: Add bandwidth management for Display Port tunnels 2019-11-02 12:13:31 +03:00
tunnel.c thunderbolt: Add bandwidth management for Display Port tunnels 2019-11-02 12:13:31 +03:00
tunnel.h thunderbolt: Add bandwidth management for Display Port tunnels 2019-11-02 12:13:31 +03:00
xdomain.c thunderbolt: Add helper macro to iterate over switch ports 2019-11-01 14:32:00 +03:00