[PATCH] mtd: nand: raw: qcom_nandc: Don't clear_bam_transaction on READID

Miquel Raynal miquel.raynal at bootlin.com
Wed Jan 26 02:16:13 PST 2022


Hello,

miquel.raynal at bootlin.com wrote on Fri, 14 Jan 2022 08:27:18 +0100:

> Hi Konrad,
> 
> konrad.dybcio at somainline.org wrote on Thu, 13 Jan 2022 19:44:26 +0100:
> 
> > While I have absolutely 0 idea why and how, running clear_bam_transaction
> > when READID is issued makes the DMA totally clog up and refuse to function
> > at all on mdm9607. In fact, it is so bad that all the data gets garbled
> > and after a short while in the nand probe flow, the CPU decides that
> > sepuku is the only option.
> > 
> > Removing _READID from the if condition makes it work like a charm, I can
> > read data and mount partitions without a problem.
> > 
> > Signed-off-by: Konrad Dybcio <konrad.dybcio at somainline.org>
> > ---
> > This is totally just an observation which took me an inhumane amount of
> > debug prints to find.. perhaps there's a better reason behind this, but
> > I can't seem to find any answers.. Therefore, this is a BIG RFC!  
> 
> I'm adding two people from codeaurora who worked a lot on this driver.
> Hopefully they will have an idea :)

Sadre, I've spent a significant amount of time reviewing your patches,
now it's your turn to not take a month to answer to your peers
proposals.

Please help reviewing this patch.

BTW why is this driver still using cmdfund? It should have been
migrated to ->exec_op() a long time ago.

Thanks,
Miquèl



More information about the linux-mtd mailing list