Re: NAND Framework ONFI chip detection

2013-05-27 Thread Grzegorz Bernacki

From: Alexander Fedorovalexander.fedo...@rtlservice.com
Date: 24 maja 2013 03:51:58 GMT-07:00
To: curr...@freebsd.org
Subject: Re: [PATCH] NAND Framework ONFI chip detection

Hi, current!

I received a positive feedback from Grzegorz Bernacki (semihalf).
He said that my patch is ok. Can anyone commit a proposed patch?




Hi Alexander,

I've just submitted your patch. Thanks for fixing it.

regards,
grzesiek
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: [PATCH] NAND Framework ONFI chip detection

2013-05-24 Thread Alexander Fedorov
Hi, current!

I received a positive feedback from Grzegorz Bernacki (semihalf).
He said that my patch is ok. Can anyone commit a proposed patch?

2013/5/21 Alexander Fedorov alexander.fedo...@rtlservice.com:
 Hi all!

 I'm writing NAND Flash controller driver for my Hackberry board.
 And I found that NAND Framework does not properly detecting ONFI
 compiliant chips.

 First, ONFI specification says (p. 40
 http://www.onfi.org/~/media/ONFI/specs/ONFI_1_0_Gold.pdf):

The ONFI signature is the ASCII encoding of 'ONFI' where 'O' = 4Fh, 'N' = 
4Eh, 'F' = 46h, 'I' = 49h.

 But, current code check it for 'o', 'n', 'f', 'I'.

 Second, function onfi_read_parameter (nand_generic.c) read
 parameters page using this construction:
NANDBUS_READ_BUFFER(nandbus, params, sizeof(struct onfi_params));

 So, structure onfi_params must be declared as packed.

 Proposed patch solves the problem for me.
 Is this patch ok?


nand_framework_onfi_probing.patch
Description: Binary data
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

[PATCH] NAND Framework ONFI chip detection

2013-05-21 Thread Alexander Fedorov
Hi all!

I'm writing NAND Flash controller driver for my Hackberry board.
And I found that NAND Framework does not properly detecting ONFI
compiliant chips.

First, ONFI specification says (p. 40
http://www.onfi.org/~/media/ONFI/specs/ONFI_1_0_Gold.pdf):

The ONFI signature is the ASCII encoding of 'ONFI' where 'O' = 4Fh, 'N' = 4Eh, 
'F' = 46h, 'I' = 49h.

But, current code check it for 'o', 'n', 'f', 'I'.

Second, function onfi_read_parameter (nand_generic.c) read
parameters page using this construction:
NANDBUS_READ_BUFFER(nandbus, params, sizeof(struct onfi_params));

So, structure onfi_params must be declared as packed.

Proposed patch solves the problem for me.
Is this patch ok?


nand_framework_onfi_probing.patch
Description: Binary data
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org