Re: [PATCH] usb: typec: tcpm: qcom: Release connector fwnode after regulator lookup

From: Bryan O'Donoghue

Date: Fri Nov 13 2026 - 10:17:43 EST


On 12/11/2026 02:18, Xiangwu Lai wrote:
pmic_typec_port_probe() looks up the "connector" child node with
device_get_named_child_node(), which takes a reference on the
returned fwnode. The node is only used for the VBUS regulator lookup
from the connector node and the reference is never dropped, so every
probe leaks one fwnode reference.

Release the reference right after the regulator lookup, mirroring
the parent driver which already manages its own reference on the
same node.

Fixes: 506927b6bf29 ("usb: typec: tcpm: qcom: prefer VBUS supply from the connector node")
Signed-off-by: Xiangwu Lai <laixiangwu@xxxxxxxxxxxxxxxxxxxx>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@xxxxxxxxxx>