Skip to content

Commit 74ffe43

Browse files
Saravana Kannangregkh
authored andcommitted
phy: tegra: xusb: Set fwnode for xusb port devices
fwnode needs to be set for a device for fw_devlink to be able to track/enforce its dependencies correctly. Without this, you'll see error messages like this when the supplier has probed and tries to make sure all its fwnode consumers are linked to it using device links: tegra-xusb-padctl 3520000.padctl: Failed to create device link (0x180) with 1-0008 Reported-by: Jon Hunter <[email protected]> Closes: https://lore.kernel.org/all/[email protected]/ Tested-by: Jon Hunter <[email protected]> Suggested-by: Nícolas F. R. A. Prado <[email protected]> Signed-off-by: Saravana Kannan <[email protected]> Acked-by: Thierry Reding <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent fe2e59a commit 74ffe43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/phy/tegra/xusb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ static int tegra_xusb_port_init(struct tegra_xusb_port *port,
543543

544544
device_initialize(&port->dev);
545545
port->dev.type = &tegra_xusb_port_type;
546-
port->dev.of_node = of_node_get(np);
546+
device_set_node(&port->dev, of_fwnode_handle(of_node_get(np)));
547547
port->dev.parent = padctl->dev;
548548

549549
err = dev_set_name(&port->dev, "%s-%u", name, index);

0 commit comments

Comments
 (0)