Skip to contentSkip to conversation

New driver

DISCUSSION Ian Molton 2 participants 3 messages Aug 24, 2004 – Aug 26, 2004 Memory technology devices (MTD)

lore
Share & tools
lore

Ian Molton

author
#0 lore raw

Hi.

Here is my first run at the TC6393XB NAND/Smartmedia controller driver.

Currently the chip init is nonexistant - its done by wince on my board and I have no way of booting without wince on it yet, so I have no plan to implement it until I can test it (this will be soon, probably).

Hardware ECC seems to be broken. the code is present but disabled, for educational purposes.

this driver requires the read_id override patch (which I will post shortly).

author
#1 lore raw
Quoted 3 lines · On Tue, 24 Aug 2004 01:09:27 +0100 Ian Molton <[email protected]> wrote:

Hi.

Here is my first run at the TC6393XB NAND/Smartmedia controller driver.

No comments ?

#2 lore raw
Quoted 8 lines · Ian Molton
Quoted 3 lines · On Tue, 24 Aug 2004 01:09:27 +0100 Ian Molton <[email protected]> wrote:

Hi.

Here is my first run at the TC6393XB NAND/Smartmedia controller driver.

No comments ?

You forgot to iounmap in your tmio_cleanup function.

Also, you could put:

if(len & 0x3)

	BUG();

into a macro. Later, if you can ever guarantee that will never be true, you can just define the macro to be a no-op. Just a coding style thing though.

josh