Lines Matching +full:loop +full:- +full:powered
1 // SPDX-License-Identifier: GPL-2.0-only
33 * onboard_hub_create_pdevs -- create platform devices for onboard USB hubs
40 * control whether the hub remains powered during system suspend or not.
53 * platform device for each physical onboard hub, hence for root hubs the loop
69 struct usb_hcd *hcd = bus_to_hcd(parent_hub->bus); in onboard_hub_create_pdevs()
74 if (!parent_hub->dev.of_node) in onboard_hub_create_pdevs()
77 if (!parent_hub->parent && !usb_hcd_is_primary_hcd(hcd)) in onboard_hub_create_pdevs()
80 for (i = 1; i <= parent_hub->maxchild; i++) { in onboard_hub_create_pdevs()
88 npc = of_parse_phandle(np, "peer-hub", 0); in onboard_hub_create_pdevs()
99 put_device(&pdev->dev); in onboard_hub_create_pdevs()
104 pdev = of_platform_device_create(np, NULL, &parent_hub->dev); in onboard_hub_create_pdevs()
106 dev_err(&parent_hub->dev, in onboard_hub_create_pdevs()
113 of_platform_device_destroy(&pdev->dev, NULL); in onboard_hub_create_pdevs()
117 pdle->pdev = pdev; in onboard_hub_create_pdevs()
118 list_add(&pdle->node, pdev_list); in onboard_hub_create_pdevs()
127 * onboard_hub_destroy_pdevs -- free resources of onboard hub platform devices
138 list_del(&pdle->node); in onboard_hub_destroy_pdevs()
139 of_platform_device_destroy(&pdle->pdev->dev, NULL); in onboard_hub_destroy_pdevs()