Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

phy: renesas: rcar-gen3-usb2: Move debug print after register value is updated

Relocate the debug print in rcar_gen3_enable_vbus_ctrl() to appear after
the `val` variable is assigned and updated based on the VBUS state. This
ensures that the debug log reflects the actual register value being
written, improving debugging accuracy.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20250808215209.3692744-6-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Lad Prabhakar and committed by
Vinod Koul
5f541344 b725741f

+1 -1
+1 -1
drivers/phy/renesas/phy-rcar-gen3-usb2.c
··· 211 211 u32 vbus_ctrl_val = USB2_ADPCTRL_DRVVBUS; 212 212 u32 val; 213 213 214 - dev_vdbg(ch->dev, "%s: %08x, %d\n", __func__, val, vbus); 215 214 if (ch->phy_data->no_adp_ctrl || ch->phy_data->vblvl_ctrl) { 216 215 if (ch->vbus) 217 216 regulator_hardware_enable(ch->vbus, vbus); ··· 224 225 val |= vbus_ctrl_val; 225 226 else 226 227 val &= ~vbus_ctrl_val; 228 + dev_vdbg(ch->dev, "%s: %08x, %d\n", __func__, val, vbus); 227 229 writel(val, usb2_base + vbus_ctrl_reg); 228 230 } 229 231