Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

thunderbolt: Do not make DROM read success compulsory

The USB4 specification doesn't make any requirements that reading
a device router's DROM is needed for the operation of the device.

Other connection manager solutions don't necessarily read it or gate
the usability of the device on whether it was read.

So make failures when reading the DROM show warnings but not
fail the initialization of the router.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>

authored by

Mario Limonciello and committed by
Mika Westerberg
6915812b a283de3e

+2 -4
+2 -4
drivers/thunderbolt/switch.c
··· 2784 2784 2785 2785 /* read drom */ 2786 2786 ret = tb_drom_read(sw); 2787 - if (ret) { 2788 - dev_err(&sw->dev, "reading DROM failed\n"); 2789 - return ret; 2790 - } 2787 + if (ret) 2788 + dev_warn(&sw->dev, "reading DROM failed: %d\n", ret); 2791 2789 tb_sw_dbg(sw, "uid: %#llx\n", sw->uid); 2792 2790 2793 2791 tb_check_quirks(sw);