Re: [PATCH] soc: qcom: pmic_glink_altmode: Fix printing of a fwnode with %pOFn

From: Bjorn Andersson

Date: Wed Dec 02 2026 - 22:04:46 EST



On Mon, 02 Nov 2026 02:33:24 +0200, Asdlerto Korry wrote:
> pmic_glink_altmode_probe() walks the child nodes with
> device_for_each_child_node(), which yields a struct fwnode_handle, but
> prints it with %pOFn, which expects a struct device_node. vsprintf then
> treats the fwnode_handle as a device_node and passes &dn->fwnode to
> fwnode_get_name(), i.e. a pointer into the middle of the handle, and
> calls through a garbage fwnode->ops. The error path ("missing reg
> property") therefore oopses instead of printing the message:
>
> [...]

Applied, thanks!

[1/1] soc: qcom: pmic_glink_altmode: Fix printing of a fwnode with %pOFn
commit: b02aa179b26fefd5fc6bbe2fa41751f3e12621af

Best regards,
--
Bjorn Andersson <andersson@xxxxxxxxxx>