android_kernel_msm-6.1_noth.../include
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
..
acpi ACPI: sleep: Avoid breaking S3 wakeup due to might_sleep() 2023-06-28 11:12:22 +02:00
asm-generic Merge 6.1.45 into android14-6.1-lts 2023-09-13 19:32:45 +00:00
clocksource
crypto Revert "crypto: api - Use work queue in crypto_destroy_instance" 2023-10-12 12:03:37 +00:00
drm Revert "drm/aperture: Remove primary argument" 2023-11-01 14:38:16 +00:00
dt-bindings Merge "icc: dt-bindings: Add qhm_gic and cnoc_data master IDs for NIOBE" 2024-04-07 21:39:26 -07:00
keys
kunit
kvm Merge 6.1.47 into android14-6.1-lts 2023-09-13 19:35:46 +00:00
linux ufs: ufs-qcom: Defer ufs probe if phy drvdata is not initialized 2024-04-15 12:33:40 +05:30
math-emu
media Revert "media: cec: core: add adap_nb_transmit_canceled() callback" 2023-10-12 14:10:23 +00:00
memory
misc
net Merge tag 'android14-6.1.57_r00' into branch 'android14-6.1' 2023-11-27 16:18:59 +00:00
pcmcia
ras
rdma RDMA/cma: Always set static rate to 0 for RoCE 2023-06-21 16:00:59 +02:00
rv
scsi Revert "ata,scsi: do not issue START STOP UNIT on resume" 2023-11-02 07:06:05 +00:00
soc soc: qcom: qcom_stats: Add support for deep sleep exit time 2024-02-18 20:38:11 -08:00
sound BACKPORT: ASoC: add snd_soc_card_mutex_lock/unlock() 2023-11-30 18:09:27 +00:00
target
trace Merge keystone/android14-6.1-keystone-qcom-release.6.1.57 (97abf17) into qcom-6.1 2024-01-03 21:55:56 -08:00
uapi q2spi-msm-geni: unmap rx response buffers during port_close 2024-04-02 02:41:56 -07:00
ufs Merge keystone/android14-6.1-keystone-qcom-release.6.1.25 (8f361f1) into qcom-6.1 2023-07-26 00:03:05 -07:00
vdso
video
xen