aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/thunderbolt/switch.c
AgeCommit message (Expand)AuthorFilesLines
2025-11-17thunderbolt: Fix typos in switch.cAlan Borzeszkowski1-3/+3
2025-09-17thunderbolt: Update switch.c function documentationAlan Borzeszkowski1-38/+102
2025-07-21Merge tag 'v6.16-rc7' into usb-nextGreg Kroah-Hartman1-5/+5
2025-06-23thunderbolt: Fix typos in documentation commentsAlok Tiwari1-1/+1
2025-06-23thunderbolt: Fix bit masking in tb_dp_port_set_hops()Alok Tiwari1-1/+1
2025-06-23thunderbolt: Fix wake on connect at runtimeMario Limonciello1-4/+4
2025-04-11thunderbolt: Use wake on connect and disconnect over suspendMario Limonciello1-0/+1
2024-08-06thunderbolt: Mark XDomain as unplugged when router is removedMika Westerberg1-0/+1
2024-04-10thunderbolt: Avoid notify PM core about runtime PM resumeGil Fine1-2/+25
2024-04-10thunderbolt: Fix wake configurations after device unplugGil Fine1-7/+14
2024-03-21Merge tag 'usb-6.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/greg...Linus Torvalds1-19/+121
2024-02-26thunderbolt: Constify the struct device_type usageRicardo B. Marliere1-1/+1
2024-02-16thunderbolt: Fix NULL pointer dereference in tb_port_update_credits()Mika Westerberg1-0/+3
2024-01-23thunderbolt: Remove usage of the deprecated ida_simple_xx() APIChristophe JAILLET1-3/+3
2024-01-22thunderbolt: Fix rollback in tb_port_lane_bonding_enable() for lane 1Mohammad Rahimi1-1/+1
2024-01-22thunderbolt: Make tb_switch_reset() support Thunderbolt 2, 3 and USB4 routersSanath S1-14/+109
2024-01-22thunderbolt: Introduce tb_port_reset()Sanath S1-0/+7
2024-01-02Merge tag 'thunderbolt-for-v6.8-rc1' of git://git.kernel.org/pub/scm/linux/ke...Greg Kroah-Hartman1-18/+15
2023-12-22thunderbolt: Keep link as asymmetric if preferred by hardwareGil Fine1-0/+13
2023-12-14thunderbolt: Move width_name() helper to tb.hGil Fine1-18/+2
2023-11-17thunderbolt: Send uevent after asymmetric/symmetric switchMika Westerberg1-2/+2
2023-11-17thunderbolt: Set lane bonding bit only for downstream portGil Fine1-1/+1
2023-10-27Merge tag 'thunderbolt-for-v6.7-rc1' of git://git.kernel.org/pub/scm/linux/ke...Greg Kroah-Hartman1-52/+285
2023-10-20thunderbolt: Add support for asymmetric linkGil Fine1-42/+252
2023-10-20thunderbolt: Make is_gen4_link() available to the rest of the driverGil Fine1-7/+29
2023-10-13thunderbolt: Log NVM version of routers and retimersGil Fine1-0/+1
2023-10-13thunderbolt: Fix typo of HPD bit for Hot Plug DetectGil Fine1-4/+4
2023-09-15thunderbolt: Check that lane 1 is in CL0 before enabling lane bondingMika Westerberg1-0/+7
2023-08-08thunderbolt: Check Intel vendor ID in tb_switch_get_generation()Mika Westerberg1-37/+38
2023-06-16thunderbolt: Add support for enhanced uni-directional TMU modeMika Westerberg1-0/+16
2023-06-16thunderbolt: Announce USB4 v2 connection manager supportGil Fine1-2/+6
2023-06-16thunderbolt: Add support for USB4 v2 80 Gb/s linkGil Fine1-57/+128
2023-06-16thunderbolt: Identify USB4 v2 routersGil Fine1-2/+3
2023-06-16thunderbolt: Do not touch lane 1 adapter path config spaceMika Westerberg1-1/+1
2023-06-09thunderbolt: Initialize CL states from the hardwareMika Westerberg1-0/+4
2023-06-09thunderbolt: Switch CL states from enum to a bitmaskMika Westerberg1-6/+1
2023-06-09thunderbolt: Move CLx support functions into clx.cMika Westerberg1-360/+2
2023-06-09thunderbolt: Introduce tb_switch_downstream_port()Gil Fine1-12/+7
2023-04-19Merge tag 'thunderbolt-for-v6.4-rc1' of git://git.kernel.org/pub/scm/linux/ke...Greg Kroah-Hartman1-2/+2
2023-03-29thunderbolt: Get rid of redundant 'else'Andy Shevchenko1-2/+2
2023-03-13thunderbolt: Call tb_check_quirks() after initializing adaptersMika Westerberg1-2/+2
2023-02-24Merge tag 'driver-core-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-2/+2
2023-01-27driver core: make struct device_type.uevent() take a const *Greg Kroah-Hartman1-2/+2
2023-01-17thunderbolt: Take CL states into account when waiting for link to come upMika Westerberg1-17/+25
2022-10-23thunderbolt: Use str_enabled_disabled() helperAndy Shevchenko1-2/+3
2022-10-07Merge tag 'usb-6.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/greg...Linus Torvalds1-226/+223
2022-09-30Merge tag 'thunderbolt-for-v6.1-rc1' of git://git.kernel.org/pub/scm/linux/ke...Greg Kroah-Hartman1-226/+223
2022-09-26thunderbolt: Explicitly enable lane adapter hotplug events at startupMario Limonciello1-0/+24
2022-09-24thunderbolt: Convert to use sysfs_emit()/sysfs_emit_at() APIsAndy Shevchenko1-14/+14
2022-09-22thunderbolt: Explicitly reset plug events delay back to USB4 spec valueMario Limonciello1-0/+1
2022-09-07thunderbolt: Move vendor specific NVM handling into nvm.cSzuying Chen1-92/+34
2022-09-07thunderbolt: Rename and make nvm_read() available for other filesSzuying Chen1-18/+26
2022-09-07thunderbolt: Extend NVM version fields to 32-bitsSzuying Chen1-2/+2
2022-09-05thunderbolt: Add helper to check if CL states are enabled on portMika Westerberg1-0/+28
2022-09-05thunderbolt: Pass CL state bitmask to tb_port_clx_supported()Mika Westerberg1-11/+6
2022-09-05thunderbolt: Move port CL state functions into correct place in switch.cMika Westerberg1-106/+106
2022-08-18thunderbolt: Check router generation before connecting xHCIMika Westerberg1-1/+5
2022-06-06thunderbolt: Add CL1 support for USB4 and Titan Ridge routersGil Fine1-43/+46
2022-06-06thunderbolt: Fix typos in CLx enablingGil Fine1-1/+1
2022-06-06thunderbolt: CLx disable before system suspend only if previously enabledGil Fine1-2/+4
2022-05-05thunderbolt: Ignore port locked error in tb_port_wait_for_link_width()Mika Westerberg1-3/+10
2022-05-05thunderbolt: Split setting link width and lane bonding into own functionsMika Westerberg1-14/+72
2022-05-05thunderbolt: Add debug logging when lane is enabled/disabledMika Westerberg1-2/+8
2022-03-04thunderbolt: Do not make DROM read success compulsoryMario Limonciello1-4/+2
2022-03-04thunderbolt: Do not resume routers if UID is not setMario Limonciello1-0/+4
2022-02-02thunderbolt: Add internal xHCI connect flows for Thunderbolt 3 devicesMika Westerberg1-1/+70
2021-12-28thunderbolt: Add module parameter for CLx disablingGil Fine1-0/+11
2021-12-28thunderbolt: Enable CL0s for Intel Titan RidgeGil Fine1-3/+157
2021-12-22thunderbolt: Implement TMU time disruption for Intel Titan RidgeGil Fine1-0/+4
2021-12-22thunderbolt: Move usb4_switch_wait_for_bit() to switch.cGil Fine1-0/+34
2021-12-22thunderbolt: Add CL0s support for USB4 routersGil Fine1-0/+263
2021-12-07thunderbolt: Add debug logging of DisplayPort resource allocationMika Westerberg1-2/+15
2021-12-07thunderbolt: Do not program path HopIDs for USB4 routersMika Westerberg1-1/+6
2021-12-07thunderbolt: Do not allow subtracting more NFC credits than configuredMika Westerberg1-0/+3
2021-08-24Merge tag 'thunderbolt-for-v5.15-rc1' of git://git.kernel.org/pub/scm/linux/k...Greg Kroah-Hartman1-9/+19
2021-08-09thunderbolt: Fix port linking by checking all adaptersSanjay R Mehta1-1/+1
2021-08-09thunderbolt: Do not read control adapter config spaceSanjay R Mehta1-5/+8
2021-08-02thunderbolt: Add authorized value to the KOBJ_CHANGE ueventRajat Jain1-3/+10
2021-07-27Revert "thunderbolt: Hide authorized attribute if router does not support PCI...Mika Westerberg1-14/+1
2021-06-01thunderbolt: Allow router NVM authenticate separatelyMika Westerberg1-18/+32
2021-06-01thunderbolt: Move nvm_write_ops to tb.hRajmohan Mani1-5/+0
2021-06-01thunderbolt: Add support for retimer NVM upgrade when there is no linkRajmohan Mani1-16/+32
2021-06-01thunderbolt: Add USB4 port devicesMika Westerberg1-2/+15
2021-06-01thunderbolt: Update port credits after bonding is enabled/disabledMika Westerberg1-0/+48
2021-06-01thunderbolt: Read router preferred credit allocation informationMika Westerberg1-8/+43
2021-06-01thunderbolt: Wait for the lanes to actually bondMika Westerberg1-2/+48
2021-06-01thunderbolt: Make tb_port_type() take const parameterMika Westerberg1-1/+1
2021-05-31thunderbolt: Add wake from DisplayPortMika Westerberg1-1/+2
2021-04-13Merge tag 'thunderbolt-for-v5.13-rc1' of git://git.kernel.org/pub/scm/linux/k...Greg Kroah-Hartman1-24/+51
2021-04-09thunderbolt: Hide authorized attribute if router does not support PCIe tunnelsMika Westerberg1-1/+14
2021-04-09thunderbolt: Add details to router ueventMika Westerberg1-0/+34
2021-03-18thunderbolt: Check quirks in tb_switch_add()Mika Westerberg1-0/+2
2021-03-18thunderbolt: Drop unused tb_port_set_initial_credits()Mika Westerberg1-22/+0
2021-03-18thunderbolt: Do not pass timeout for tb_cfg_reset()Mika Westerberg1-1/+1
2021-03-08thunderbolt: Initialize HopID IDAs in tb_switch_alloc()Mika Westerberg1-10/+8
2021-02-04thunderbolt: Add support for PCIe tunneling disabled (SL5)Mika Westerberg1-1/+5
2021-02-04thunderbolt: switch: Fix kernel-doc descriptions of non-static functionsMika Westerberg1-0/+7
2021-01-28thunderbolt: switch: Fix function name in the headerLee Jones1-1/+1
2021-01-28thunderbolt: switch: Demote a bunch of non-conformant kernel-doc headersLee Jones1-2/+2
2021-01-15thunderbolt: Add support for de-authorizing devicesMika Westerberg1-1/+33
2021-01-11thunderbolt: Start lane initialization after sleepMika Westerberg1-1/+26
2021-01-11thunderbolt: Constify static attribute_group structsRikard Falkeborn1-1/+1
2020-11-30thunderbolt: Perform USB4 router NVM upgrade in two phasesMika Westerberg1-3/+17
2020-11-11thunderbolt: Add functions for enabling and disabling lane bonding on XDomainIsaac Hazan1-3/+21
2020-11-11thunderbolt: Add link_speed and link_width to XDomainIsaac Hazan1-1/+8
2020-09-30Merge tag 'thunderbolt-for-v5.10-rc1' of git://git.kernel.org/pub/scm/linux/k...Greg Kroah-Hartman1-33/+183
2020-09-03thunderbolt: Add debugfs interfaceGil Fine1-0/+3
2020-09-03thunderbolt: Introduce tb_port_is_nhi()Mika Westerberg1-1/+1
2020-09-03thunderbolt: Add runtime PM for Software CMMika Westerberg1-4/+21
2020-09-03thunderbolt: Enable wakes from system suspendMika Westerberg1-1/+29
2020-09-03thunderbolt: Disable lane 1 for XDomain connectionMika Westerberg1-0/+44
2020-09-03thunderbolt: Set port configured for both ends of the linkMika Westerberg1-6/+27
2020-09-03thunderbolt: Configure link after lane bonding is enabledMika Westerberg1-13/+42
2020-09-03thunderbolt: Do not change default USB4 router notification timeoutMika Westerberg1-5/+1
2020-09-03thunderbolt: Initialize TMU again on resumeMika Westerberg1-0/+4
2020-09-03thunderbolt: Send reset only to first generation routersMika Westerberg1-10/+11
2020-09-03thunderbolt: Do not program NFC buffers for USB4 router protocol adaptersMika Westerberg1-0/+7
2020-09-01thunderbolt: Use kobj_to_dev() instead of container_of()Tian Tao1-1/+1
2020-09-01Merge tag 'thunderbolt-for-v5.9-rc4' of git://git.kernel.org/pub/scm/linux/ke...Greg Kroah-Hartman1-0/+1
2020-08-25thunderbolt: Disable ports that are not implementedNikunj A. Dadhania1-0/+1
2020-08-23treewide: Use fallthrough pseudo-keywordGustavo A. R. Silva1-1/+1
2020-07-01thunderbolt: Add support for authenticate on disconnectMario Limonciello1-4/+36
2020-07-01thunderbolt: Add support for separating the flush to SPI and authenticateMario Limonciello1-15/+27
2020-06-22thunderbolt: Add support for on-board retimersKranthi Kuntala1-0/+3
2020-06-22thunderbolt: Split common NVM functionality into a separate fileMika Westerberg1-93/+23
2020-06-22thunderbolt: Add Intel USB-IF ID to the NVM upgrade supported listMika Westerberg1-1/+2
2020-06-22thunderbolt: Make tb_port_get_link_speed() available to other filesMika Westerberg1-1/+7
2020-06-22thunderbolt: Make tb_next_port_on_path() work with tree topologiesMika Westerberg1-5/+12
2020-06-22thunderbolt: NHI can use HopIDs 1-7Mika Westerberg1-2/+5
2020-06-07Merge tag 'usb-5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/greg...Linus Torvalds1-7/+0
2020-05-14PCI: Unify pcie_find_root_port() and pci_find_pcie_root_port()Yicong Yang1-2/+2
2020-04-16Revert "thunderbolt: Prevent crash if non-active NVMem file is read"Nicholas Johnson1-7/+0
2020-03-04thunderbolt: Fix error code in tb_port_is_width_supported()Dan Carpenter1-1/+1
2020-02-13thunderbolt: Prevent crash if non-active NVMem file is readMika Westerberg1-0/+7
2020-01-14thunderbolt: fix memory leak of object swColin Ian King1-2/+4
2019-12-18thunderbolt: Add support for USB 3.x tunnelsRajmohan Mani1-0/+35
2019-12-18thunderbolt: Add support for Time Management UnitRajmohan Mani1-0/+4
2019-12-18thunderbolt: Add initial support for USB4Mika Westerberg1-101/+281
2019-12-18thunderbolt: Make tb_find_port() available to other filesMika Westerberg1-0/+18
2019-11-19thunderbolt: Power cycle the router if NVM authentication failsMika Westerberg1-12/+42
2019-11-02thunderbolt: Add Display Port adapter pairing and resource managementMika Westerberg1-0/+44
2019-11-02thunderbolt: Add default linking between lane adapters if not provided by DROMMika Westerberg1-0/+32
2019-11-02thunderbolt: Add support for lane bondingMika Westerberg1-0/+288
2019-11-01thunderbolt: Add helper macro to iterate over switch portsMika Westerberg1-27/+30
2019-11-01thunderbolt: Convert DP adapter register names to follow the USB4 specMika Westerberg1-22/+28
2019-11-01thunderbolt: Convert PCIe adapter register names to follow the USB4 specMika Westerberg1-4/+6
2019-11-01thunderbolt: Convert basic adapter register names to follow the USB4 specMika Westerberg1-9/+9
2019-11-01thunderbolt: Log error if adding switch failsMika Westerberg1-5/+14
2019-11-01thunderbolt: Introduce tb_switch_is_icm()Mika Westerberg1-2/+2
2019-11-01Merge branch 'thunderbolt/fixes' into thunderbolt/nextMika Westerberg1-17/+11
2019-10-09thunderbolt: Add 'generation' attribute for devicesChristian Kellner1-0/+10
2019-10-08thunderbolt: Fix lockdep circular locking depedency warningMika Westerberg1-9/+0
2019-10-08thunderbolt: Read DP IN adapter first two dwords in one goMika Westerberg1-8/+11
2019-08-26thunderbolt: Add support for Intel Ice LakeMika Westerberg1-0/+2
2019-08-26thunderbolt: Expose active parts of NVM even if upgrade is not supportedMika Westerberg1-9/+19
2019-08-26thunderbolt: Hide switch attributes that are not setMika Westerberg1-1/+13
2019-08-26thunderbolt: Do not fail adding switch if some port is not implementedMika Westerberg1-1/+7
2019-07-12Merge tag 'driver-core-5.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-2/+2
2019-06-24bus_find_device: Unify the match callback with class_find_deviceSuzuki K Poulose1-2/+2
2019-06-12thunderbolt: Make sure device runtime resume completes before taking domain lockMika Westerberg1-12/+33
2019-04-18thunderbolt: Make rest of the logging to happen at debug levelMika Westerberg1-10/+9
2019-04-18thunderbolt: Add support for XDomain connectionsMika Westerberg1-4/+25
2019-04-18thunderbolt: Make tb_switch_alloc() return ERR_PTR()Mika Westerberg1-16/+20
2019-04-18thunderbolt: Add support for DMA tunnelsMika Westerberg1-0/+22
2019-04-18thunderbolt: Add support for Display Port tunnelsMika Westerberg1-0/+111
2019-04-18thunderbolt: Rework NFC credits handlingMika Westerberg1-7/+13
2019-04-18thunderbolt: Generalize port finding routines to support all port typesMika Westerberg1-0/+16
2019-04-18thunderbolt: Discover preboot PCIe paths the boot firmware establishedMika Westerberg1-0/+14
2019-04-18thunderbolt: Add helper function to iterate from one port to anotherMika Westerberg1-0/+54
2019-04-18thunderbolt: Assign remote for both ports in case of dual linkMika Westerberg1-11/+10
2019-04-18thunderbolt: Add functions for allocating and releasing HopIDsMika Westerberg1-1/+86
2019-04-18thunderbolt: Generalize tunnel creation functionalityMika Westerberg1-0/+13
2019-04-18thunderbolt: Cache adapter specific capability offset into struct portMika Westerberg1-0/+4
2019-04-18thunderbolt: Set sleep bit when suspending switchMika Westerberg1-4/+2
2019-04-18thunderbolt: Configure lanes when switch is initializedMika Westerberg1-0/+9
2019-04-18thunderbolt: Move LC specific functionality into a separate fileMika Westerberg1-11/+10
2019-04-18thunderbolt: Do not allocate switch if depth is greater than 6Mika Westerberg1-6/+12
2019-04-18thunderbolt: Take domain lock in switch sysfs attribute callbacksMika Westerberg1-26/+19
2019-04-18thunderbolt: Drop duplicated get_switch_at_route()Mika Westerberg1-18/+0
2019-03-22thunderbolt: Fix to check for kmemdup failureAditya Pakki1-6/+16
2018-11-26thunderbolt: Prevent root port runtime suspend during NVM upgradeMika Westerberg1-2/+38
2018-10-02thunderbolt: Add Intel as copyright holderMika Westerberg1-1/+2
2018-10-02thunderbolt: Print connected devicesMika Westerberg1-0/+11
2018-10-02thunderbolt: Make the driver less verboseMika Westerberg1-30/+27
2018-07-25thunderbolt: Add support for runtime PMMika Westerberg1-4/+61
2018-03-09thunderbolt: Add support for Intel Titan RidgeRadion Mirchevsky1-0/+3
2018-03-09thunderbolt: Add 'boot' attribute for devicesYehezkel Bernat1-0/+14
2018-03-09thunderbolt: Add tb_switch_find_by_route()Radion Mirchevsky1-0/+33
2018-03-09thunderbolt: Correct function name in kernel-doc commentRadion Mirchevsky1-1/+1
2018-03-09thunderbolt: Serialize PCIe tunnel creation with PCI rescanMika Westerberg1-0/+9
2017-11-04Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-0/+1
2017-11-02License cleanup: add SPDX GPL-2.0 license identifier to files with no licenseGreg Kroah-Hartman1-0/+1
2017-10-02thunderbolt: Add support for XDomain discovery protocolMika Westerberg1-2/+5
2017-08-28thunderbolt: Allow clearing the keyBernat, Yehezkel1-4/+11
2017-08-28thunderbolt: Make key root-only accessibleBernat, Yehezkel1-1/+1
2017-08-28thunderbolt: Remove superfluous checkBernat, Yehezkel1-3/+0
2017-07-25Merge tag 'uuid-for-4.13-2' of git://git.infradead.org/users/hch/uuidLinus Torvalds1-4/+4
2017-07-24thunderbolt: use uuid_t instead of uuid_beChristoph Hellwig1-4/+4
2017-07-17thunderbolt: Correct access permissions for active NVM contentsMika Westerberg1-1/+2
2017-06-09thunderbolt: Add support for host and device NVM firmware upgradeMika Westerberg1-21/+582