domain.c (6bde8ef51c917a657476310728d6cb3de6bac9e4) | domain.c (b2911a593a705e54adde6d06d4657c1ff2f16583) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Thunderbolt bus support 4 * 5 * Copyright (C) 2017, Intel Corporation 6 * Author: Mika Westerberg <mika.westerberg@linux.intel.com> 7 */ 8 --- 261 unchanged lines hidden (view full) --- 270 &dev_attr_iommu_dma_protection.attr, 271 &dev_attr_security.attr, 272 NULL, 273}; 274 275static umode_t domain_attr_is_visible(struct kobject *kobj, 276 struct attribute *attr, int n) 277{ | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Thunderbolt bus support 4 * 5 * Copyright (C) 2017, Intel Corporation 6 * Author: Mika Westerberg <mika.westerberg@linux.intel.com> 7 */ 8 --- 261 unchanged lines hidden (view full) --- 270 &dev_attr_iommu_dma_protection.attr, 271 &dev_attr_security.attr, 272 NULL, 273}; 274 275static umode_t domain_attr_is_visible(struct kobject *kobj, 276 struct attribute *attr, int n) 277{ |
278 struct device *dev = container_of(kobj, struct device, kobj); | 278 struct device *dev = kobj_to_dev(kobj); |
279 struct tb *tb = container_of(dev, struct tb, dev); 280 281 if (attr == &dev_attr_boot_acl.attr) { 282 if (tb->nboot_acl && 283 tb->cm_ops->get_boot_acl && 284 tb->cm_ops->set_boot_acl) 285 return attr->mode; 286 return 0; --- 163 unchanged lines hidden (view full) --- 450 ret = tb->cm_ops->start(tb); 451 if (ret) 452 goto err_domain_del; 453 } 454 455 /* This starts event processing */ 456 mutex_unlock(&tb->lock); 457 | 279 struct tb *tb = container_of(dev, struct tb, dev); 280 281 if (attr == &dev_attr_boot_acl.attr) { 282 if (tb->nboot_acl && 283 tb->cm_ops->get_boot_acl && 284 tb->cm_ops->set_boot_acl) 285 return attr->mode; 286 return 0; --- 163 unchanged lines hidden (view full) --- 450 ret = tb->cm_ops->start(tb); 451 if (ret) 452 goto err_domain_del; 453 } 454 455 /* This starts event processing */ 456 mutex_unlock(&tb->lock); 457 |
458 device_init_wakeup(&tb->dev, true); 459 |
|
458 pm_runtime_no_callbacks(&tb->dev); 459 pm_runtime_set_active(&tb->dev); 460 pm_runtime_enable(&tb->dev); 461 pm_runtime_set_autosuspend_delay(&tb->dev, TB_AUTOSUSPEND_DELAY); 462 pm_runtime_mark_last_busy(&tb->dev); 463 pm_runtime_use_autosuspend(&tb->dev); 464 465 return 0; --- 352 unchanged lines hidden --- | 460 pm_runtime_no_callbacks(&tb->dev); 461 pm_runtime_set_active(&tb->dev); 462 pm_runtime_enable(&tb->dev); 463 pm_runtime_set_autosuspend_delay(&tb->dev, TB_AUTOSUSPEND_DELAY); 464 pm_runtime_mark_last_busy(&tb->dev); 465 pm_runtime_use_autosuspend(&tb->dev); 466 467 return 0; --- 352 unchanged lines hidden --- |