mbox series

[0/2] Handle probe defer properly in MTD core

Message ID 20210302132757.225395-1-manivannan.sadhasivam@linaro.org
Headers show
Series Handle probe defer properly in MTD core | expand

Message

Manivannan Sadhasivam March 2, 2021, 1:27 p.m. UTC
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(-)

Comments

patchwork-bot+linux-arm-msm@kernel.org May 26, 2021, 7:03 p.m. UTC | #1
Hello:

This series was applied to qcom/linux.git (refs/heads/for-next):

On Tue,  2 Mar 2021 18:57:55 +0530 you wrote:
> 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.

> 

> [...]


Here is the summary with links:
  - [1/2] mtd: Handle possible -EPROBE_DEFER from parse_mtd_partitions()
    https://git.kernel.org/qcom/c/08608adb520e
  - [2/2] mtd: rawnand: qcom: Return actual error code instead of -ENODEV
    https://git.kernel.org/qcom/c/55fbb9ba4f06

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html