]> git.apps.os.sepia.ceph.com Git - ceph-client.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>
Wed, 4 Dec 2024 15:26:44 +0000 (16:26 +0100)
commitd2ec94fbc431cc77ed53d4480bdc856669c2b5aa
treeb16287b997f20e522b822940e79f48b81bad9e12
parent82937056967da052cbc04b4435c13db84192dc52
usb: core: hcd: only check primary hcd skip_phy_initialization

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