mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 14:23:49 +01:00
usb: typec: tipd: Don't block probing of consumer of "connector" nodes
Similar as with tcpm this patch lets fw_devlink know not to wait on the
fwnode to be populated as a struct device.
Without this patch, USB functionality can be broken on some previously
supported boards.
Fixes: 28ec344bb8 ("usb: typec: tcpm: Don't block probing of consumers of "connector" nodes")
Cc: stable <[email protected]>
Acked-by: Heikki Krogerus <[email protected]>
Signed-off-by: Martin Kepplinger <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
1 parent
72f68bf5c7
commit
57560ee95c
1 file changed
+9
@@ -629,6 +629,15 @@ static int tps6598x_probe(struct i2c_client *client)
|
||||
if (!fwnode)
|
||||
return -ENODEV;
|
||||
|
||||
/*
|
||||
* This fwnode has a "compatible" property, but is never populated as a
|
||||
* struct device. Instead we simply parse it to read the properties.
|
||||
* This breaks fw_devlink=on. To maintain backward compatibility
|
||||
* with existing DT files, we work around this by deleting any
|
||||
* fwnode_links to/from this fwnode.
|
||||
*/
|
||||
fw_devlink_purge_absent_suppliers(fwnode);
|
||||
|
||||
tps->role_sw = fwnode_usb_role_switch_get(fwnode);
|
||||
if (IS_ERR(tps->role_sw)) {
|
||||
ret = PTR_ERR(tps->role_sw);
|
||||
|
||||
Reference in new issue
Block a user