[PATCH v2] phy: renesas: rcar-gen3-usb2: Simplify ID/VBUS detection logic
Vinod Koul
vkoul at kernel.org
Sun May 3 10:16:36 PDT 2026
On Wed, 25 Mar 2026 11:20:39 +0000, Prabhakar wrote:
> Read USB2_ADPCTRL once in rcar_gen3_check_id() instead of issuing
> multiple MMIO reads, and derive both IDDIG and VBUSVALID from the same
> value.
>
> Drop the redundant !! operator, as assigning a masked u32 value to a
> bool already performs the required normalization. Simplify the logic by
> comparing the ID and VBUS status directly, which is equivalent to the
> previous conditional but easier to follow.
>
> [...]
Applied, thanks!
[1/1] phy: renesas: rcar-gen3-usb2: Simplify ID/VBUS detection logic
commit: f67ab4706ab72af29c331b21f431c463b00d447a
Best regards,
--
~Vinod
More information about the linux-phy
mailing list