android_kernel_samsung_sm8650/include/linux/phy
Ram Kumar Dwivedi b0b23bcbfd ufs: ufs-qcom: Defer ufs probe if phy drvdata is not initialized
During ufs probe, the phy drvdata is read to get
the phy version information. But in some rare cases,
the ufs driver tries to read it before the phy parameters
are fully initialized, which causes kernel panic.

So, defer the ufs probe if phy drvdata is not fully
initialized.

Call trace:
  ufs_qcom_phy_save_controller_version+0x4/0x18 [phy_qcom_ufs]
  ufshcd_variant_hba_init+0x40/0x98
  ufshcd_init+0x388/0xc64
  ufshcd_pltfrm_init+0x324/0x42c
  ufs_qcom_probe+0x108/0x248 [ufs_qcom]
  platform_probe+0xc0/0xec
  really_probe+0x190/0x384
  __driver_probe_device+0xa0/0x12c
  driver_probe_device+0x44/0x210
  __driver_attach+0x108/0x1d4
  bus_for_each_dev+0x98/0xe8
  driver_attach+0x24/0x34
  bus_add_driver+0x10c/0x1fc
  driver_register+0x78/0x118
  __platform_driver_register+0x24/0x34
  init_module+0x20/0xfe4 [ufs_qcom]
  do_one_initcall+0xdc/0x314
  do_init_module+0x48/0x1dc
  load_module+0x1348/0x152c
  __arm64_sys_finit_module+0xc0/0x110
  invoke_syscall+0x58/0x11c
  el0_svc_common+0xb4/0xf4
  do_el0_svc+0x2c/0xb0
  el0_svc+0x2c/0xa4
  el0t_64_sync_handler+0x68/0xb4
  el0t_64_sync+0x1a4/0x1a8
---[ end trace 0000000000000000 ]---.

Change-Id: Ia5783cdfed68d54a38340ca2234b6273c43b2b06
Signed-off-by: Ram Kumar Dwivedi <quic_rdwivedi@quicinc.com>
2024-04-15 12:33:40 +05:30
..
tegra phy: tegra: xusb: add utmi pad power on/down ops 2022-08-19 11:10:08 +02:00
omap_control_phy.h
omap_usb.h
pcie.h phy: rockchip: Support PCIe v3 2022-09-04 20:35:48 +05:30
phy-dp.h
phy-lvds.h phy: Add LVDS configuration options 2022-04-20 12:59:50 +05:30
phy-mipi-dphy.h
phy-qcom-ufs.h ufs: ufs-qcom: Defer ufs probe if phy drvdata is not initialized 2024-04-15 12:33:40 +05:30
phy-sun4i-usb.h
phy.h phy: Add LVDS configuration options 2022-04-20 12:59:50 +05:30
ulpi_phy.h