]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: core: hcd: only check primary hcd skip_phy_initialization
authorXu Yang <xu.yang_2@nxp.com>
Tue, 5 Nov 2024 09:01:20 +0000 (17:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Dec 2024 17:13:03 +0000 (18:13 +0100)
commit2588c29afdc87dd0258d10ab1aba281ca87529d4
tree22ac4ae25f6d6d57b275020f79524728308f9025
parentd7a7e501fb720e5f50313cdc5a7919a4a2fa9d1f
usb: core: hcd: only check primary hcd skip_phy_initialization

commit d2ec94fbc431cc77ed53d4480bdc856669c2b5aa upstream.

Before commit 53a2d95df836 ("usb: core: add phy notify connect and
disconnect"), phy initialization will be skipped even when shared hcd
doesn't set skip_phy_initialization flag. However, the situation is
changed after the commit. The hcd.c will initialize phy when add shared
hcd. This behavior is unexpected for some platforms which will handle phy
initialization by themselves. To avoid the issue, this will only check
skip_phy_initialization flag of primary hcd since shared hcd normally
follow primary hcd setting.

Fixes: 53a2d95df836 ("usb: core: add phy notify connect and disconnect")
Cc: stable@vger.kernel.org
Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Link: https://lore.kernel.org/r/20241105090120.2438366-1-xu.yang_2@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hcd.c