nhi.c (6bde8ef51c917a657476310728d6cb3de6bac9e4) nhi.c (b2911a593a705e54adde6d06d4657c1ff2f16583)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Thunderbolt driver - NHI driver
4 *
5 * The NHI (native host interface) is the pci device that allows us to send and
6 * receive frames from the thunderbolt bus.
7 *
8 * Copyright (c) 2014 Andreas Noever <andreas.noever@gmail.com>

--- 1143 unchanged lines hidden (view full) ---

1152 * activated. Do a proper shutdown.
1153 */
1154 tb_domain_put(tb);
1155 nhi_shutdown(nhi);
1156 return res;
1157 }
1158 pci_set_drvdata(pdev, tb);
1159
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Thunderbolt driver - NHI driver
4 *
5 * The NHI (native host interface) is the pci device that allows us to send and
6 * receive frames from the thunderbolt bus.
7 *
8 * Copyright (c) 2014 Andreas Noever <andreas.noever@gmail.com>

--- 1143 unchanged lines hidden (view full) ---

1152 * activated. Do a proper shutdown.
1153 */
1154 tb_domain_put(tb);
1155 nhi_shutdown(nhi);
1156 return res;
1157 }
1158 pci_set_drvdata(pdev, tb);
1159
1160 device_wakeup_enable(&pdev->dev);
1161
1160 pm_runtime_allow(&pdev->dev);
1161 pm_runtime_set_autosuspend_delay(&pdev->dev, TB_AUTOSUSPEND_DELAY);
1162 pm_runtime_use_autosuspend(&pdev->dev);
1163 pm_runtime_put_autosuspend(&pdev->dev);
1164
1165 return 0;
1166}
1167

--- 125 unchanged lines hidden ---
1162 pm_runtime_allow(&pdev->dev);
1163 pm_runtime_set_autosuspend_delay(&pdev->dev, TB_AUTOSUSPEND_DELAY);
1164 pm_runtime_use_autosuspend(&pdev->dev);
1165 pm_runtime_put_autosuspend(&pdev->dev);
1166
1167 return 0;
1168}
1169

--- 125 unchanged lines hidden ---