[PATCH 13/17] MTD: export few functions from nand_base.c

Maxim Levitsky maximlevitsky at gmail.com
Fri Feb 5 04:30:34 EST 2010


On Fri, 2010-02-05 at 10:32 +0800, stanley.miao wrote: 
> Maxim Levitsky wrote:
> > This exports:
> >
> > nand_do_read_oob
> > nand_do_write_oob
> >   
> 
> nand_do_read_oob and nand_do_write_oob can't be exported. They are internal
> functions in NAND subsystem. If you want use them, please use mtd->read_oob
> and mtd->write_oob.

I would be happy to use these, and I tried to do so.
However this leads to deadlock, because ->block_bad can (and is) called
with controller lock (nand_get_device), thus if I call ->read_oob I will
get deadlock.

Best regards,
Maxim Levitsky




More information about the linux-mtd mailing list