linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Handle probe defer properly in MTD core
@ 2021-03-02 13:27 Manivannan Sadhasivam
  2021-03-02 13:27 ` [PATCH 1/2] mtd: Handle possible -EPROBE_DEFER from parse_mtd_partitions() Manivannan Sadhasivam
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Manivannan Sadhasivam @ 2021-03-02 13:27 UTC (permalink / raw)
  To: miquel.raynal, richard, vigneshr
  Cc: linux-arm-msm, linux-mtd, linux-kernel, boris.brezillon,
	Daniele.Palmas, bjorn.andersson, Manivannan Sadhasivam

Hello,

These two patches aims at fixing the -EPROBE_DEFER handling in the MTD
core and also in the Qcom nand driver. The "qcomsmem" parser depends on
the QCOM_SMEM driver to parse the partitions defined in the shared
memory. Due to the DT layout, the SMEM driver might probe after the NAND
driver. In that case, the -EPROBE_DEFER returned by qcom_smem_get() in
the parser will fail to propagate till the driver core. So this will
result in the partitions not getting parsed even after the SMEM driver is
available.

So fix this issue by handling the -EPROBE_DEFER error properly in both
MTD core and in the Qcom nand driver. This issue is observed on Qcom SDX55
based Telit FN980 EVB and in SDX55-MTP.

Thanks,
Mani

Manivannan Sadhasivam (2):
  mtd: Handle possible -EPROBE_DEFER from parse_mtd_partitions()
  mtd: rawnand: qcom: Return actual error code instead of -ENODEV

 drivers/mtd/mtdcore.c             | 3 +++
 drivers/mtd/nand/raw/qcom_nandc.c | 7 ++-----
 2 files changed, 5 insertions(+), 5 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-05-26 19:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-02 13:27 [PATCH 0/2] Handle probe defer properly in MTD core Manivannan Sadhasivam
2021-03-02 13:27 ` [PATCH 1/2] mtd: Handle possible -EPROBE_DEFER from parse_mtd_partitions() Manivannan Sadhasivam
2021-03-02 13:27 ` [PATCH 2/2] mtd: rawnand: qcom: Return actual error code instead of -ENODEV Manivannan Sadhasivam
2021-03-03  8:03 ` [PATCH 0/2] Handle probe defer properly in MTD core Miquel Raynal
2021-05-26 19:03 ` patchwork-bot+linux-arm-msm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).