Commit e23a5afd authored by Mika Westerberg's avatar Mika Westerberg
Browse files

thunderbolt: Check quirks in tb_switch_add()



This makes it more visible on the main path of adding router.

Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
parent 5adab6cc
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -610,7 +610,6 @@ int tb_drom_read(struct tb_switch *sw)
		sw->uid = header->uid;
	sw->vendor = header->vendor_id;
	sw->device = header->model_id;
	tb_check_quirks(sw);

	crc = tb_crc32(sw->drom + TB_DROM_DATA_START, header->data_len);
	if (crc != header->data_crc32) {
+2 −0
Original line number Diff line number Diff line
@@ -2522,6 +2522,8 @@ int tb_switch_add(struct tb_switch *sw)
		}
		tb_sw_dbg(sw, "uid: %#llx\n", sw->uid);

		tb_check_quirks(sw);

		ret = tb_switch_set_uuid(sw);
		if (ret) {
			dev_err(&sw->dev, "failed to set UUID\n");