Lines Matching +full:can +full:- +full:secondary
1 // SPDX-License-Identifier: GPL-2.0-only
33 * onboard_hub_create_pdevs -- create platform devices for onboard USB hubs
39 * hub (enable regulators, take the hub out of reset, ...) and can optionally
45 * Some background about the logic in this function, which can be a bit hard
49 * HCD. The primary and secondary HCD are usually represented by a single DT
50 * node. That means the root hubs of the primary and secondary HCD share the
51 * same device tree node (the HCD node). As a result this function can be called
56 * connected to the root hub of the secondary HCD if needed.
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()