History log of /linux-master/drivers/thunderbolt/quirks.c
Revision Date Author Comments
# a75e0684 26-Jan-2024 Mika Westerberg <mika.westerberg@linux.intel.com>

thunderbolt: Keep the domain powered when USB4 port is in redrive mode

If a DiplayPort cable is directly connected to the host routers USB4
port, there is no tunnel involved but the port is in "redrive" mode
meaning that it is re-driving the DisplayPort signals from its
DisplayPort source. In this case we need to keep the domain powered on
otherwise once the domain enters D3cold the connected monitor blanks
too.

Since this happens only on Intel Barlow Ridge add a quirk that takes
runtime PM reference if we detect that the USB4 port entered redrive
mode (and release it once it exits the mode).

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>


# 0c35ac18 25-Aug-2023 Mika Westerberg <mika.westerberg@linux.intel.com>

thunderbolt: Apply USB 3.x bandwidth quirk only in software connection manager

This is not needed when firmware connection manager is run so limit this
to software connection manager.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>


# f2bfa944 17-May-2023 Mika Westerberg <mika.westerberg@linux.intel.com>

thunderbolt: Limit Intel Barlow Ridge USB3 bandwidth

Intel Barlow Ridge discrete USB4 host router has the same limitation as
the previous generations so make sure the USB3 bandwidth limitation
quirk is applied to Barlow Ridge too.

Signed-off-by: Gil Fine <gil.fine@linux.intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>


# ccdb0900 26-Feb-2023 Mika Westerberg <mika.westerberg@linux.intel.com>

thunderbolt: Add debug log for link controller power quirk

Add a debug log to this quirk as well so we can see what quirks have
been applied when debugging.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>


# f14d177e 03-Feb-2023 Mika Westerberg <mika.westerberg@linux.intel.com>

thunderbolt: Log function name of the called quirk

This is useful when debugging whether a quirk has been matched or not.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>


# f0a57dd3 31-Jan-2023 Gil Fine <gil.fine@linux.intel.com>

thunderbolt: Limit USB3 bandwidth of certain Intel USB4 host routers

Current Intel USB4 host routers have hardware limitation that the USB3
bandwidth cannot go higher than 16376 Mb/s. Work this around by adding a
new quirk that limits the bandwidth for the affected host routers.

Cc: stable@vger.kernel.org
Signed-off-by: Gil Fine <gil.fine@linux.intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>


# 7af9da8c 14-Feb-2023 Sanjay R Mehta <sanju.mehta@amd.com>

thunderbolt: Add quirk to disable CLx

Add QUIRK_NO_CLX to disable the CLx state for hardware which
doesn't supports it.

AMD Yellow Carp and Pink Sardine don't support CLx state,
hence disabling it using QUIRK_NO_CLX.

Cc: stable@vger.kernel.org
Signed-off-by: Sanjay R Mehta <sanju.mehta@amd.com>
Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
[mw: added debug log when the quirk is run]
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>


# 7c37bb30 23-Mar-2021 Mika Westerberg <mika.westerberg@linux.intel.com>

thunderbolt: Add quirk for Intel Goshen Ridge DP credits

Intel Goshen Ridge reports wrong DP main credits in NVM 27 and earlier,
so add a quirk that fixes it. We also need to expand the quirk table to
match on hardware vendor/device IDs too.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>


# fe6f6f95 27-May-2021 Crag Wang <crag.wang@dell.com>

thunderbolt: Add self-authenticate support for new dock

Add new device known to support self-authenticate on disconnect.

Signed-off-by: Crag Wang <crag.wang@dell.com>
Reviewed-by: Mario Limonciello <mario.limonciello@outlook.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>


# 9c8cac6a 25-Aug-2020 Mika Westerberg <mika.westerberg@linux.intel.com>

thunderbolt: Correct tb_check_quirks() kernel-doc

Remove extra white space and make the sentence end with a period.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>


# ef7e1207 02-Jul-2020 Wei Yongjun <weiyongjun1@huawei.com>

thunderbolt: Fix old style declaration warning

Fix gcc build warning:

drivers/thunderbolt/quirks.c:21:1: warning:
'static' is not at beginning of declaration [-Wold-style-declaration]
21 | const static struct tb_quirk tb_quirks[] = {
| ^~~~~

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>


# 1cb36293 23-Jun-2020 Mario Limonciello <mario.limonciello@dell.com>

thunderbolt: Add support for authenticate on disconnect

Some external devices can support completing thunderbolt authentication
when they are unplugged. For this to work though, the link controller must
remain operational.

The only device known to support this right now is the Dell WD19TB, so add
a quirk for this.

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