linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: b32955@freescale.com (Huang Shijie)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/7] ARM: add GPMI support for imx23/imx28
Date: Thu, 17 Mar 2011 10:19:15 +0800	[thread overview]
Message-ID: <4D816FA3.2080202@freescale.com> (raw)
In-Reply-To: <19840.43943.592336.854865@ipc1.ka-ro>

Hi:

> Huang Shijie writes:
>> Hi Lothar:
>>> Hi,
>>>
>>> All in all I do not like this driver in any way. I already vomitted
>>> over it, when I saw it in the Freescale BSP.
>> :)  I have already removed a lot of code.
>>
>>> There is no need for the multiple layers of abstraction that are
>>> papered over the MTD layer.
>> I think this is good. Make the code clear.
>>
> I'll comment when the remaining patch has got through.
>
thanks a lot .


>>> There is no need for spilling the driver over a dozen files.
>> I can merge some files into one. thanks.
>>
> IMO all the source code could be kept in one file (except for the
> include files of course) and the gpmi-nfc subdirectory removed.
I really can merge some files, but IMHO, it's not a good solution to 
keep all in one file.

The reasons are :
[1] The GPMI support the NAND boot mode,but the imx23 and imx28 is a 
little different in
the NAND boot procedure due the different firmwares in the chips. If I 
merge the rom-imx23.c
rom-imx28.c to one file, the code will very mess. ugly enough!

[2]The GPMI driver is just a mini version against the version in the 
FREESCALE BSP.
The original GPMI driver also support the IMX508 which is different from 
the imx23 and imx28.
The imx508 supports the ONFI NAND and TOGGLE NAND which are DDR mode 
NAND.So the implement of
ECC read_page/write_page is much different from the IMX23/IMX28. Because 
I want to support the
IMX508 in future, this is why the hal-imx23.c and hal-imx28.c share most 
the same code,but i still
remain them in separate, the reason is simple : I will add a 
hal-imx508.c in future.

[3]The GPMI driver is a little complicated. The GPMI controller needs 
other two hardware module to
work :the BCH module, and the DMA mode.
      Yes, i can merge the DMA code into other files, but the BCH module 
should occupy a separate file to
make the logic clear.

[4] If i packet all the code in one, the gentlemen of MTD mailist, such 
as David Woodhouse, Artem Bityutskiy ,
will kill me, :).  what's more the big boy even can not be emailed to 
arm-kernel maillist.


> I've been working on this too, but had to abandone it for other tasks
> several times. :(
>
I really apreciate for your review and comments. I just want to make the 
drive tidy and grace.

Please point out the ugly part that you regards in free.

I am very glad you had ever tried to work on this. :)


Best Regards
Huang Shijie

  parent reply	other threads:[~2011-03-17  2:19 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-16  1:42 [PATCH 0/7] add the GPMI controller driver for IMX23/IMX28 Huang Shijie
2011-03-16  1:42 ` [PATCH 1/7] ARM: add GPMI support for imx23/imx28 Huang Shijie
2011-03-16 10:13   ` Lothar Waßmann
     [not found]     ` <4D809453.4090603@freescale.com>
     [not found]       ` <19840.43943.592336.854865@ipc1.ka-ro>
2011-03-17  2:19         ` Huang Shijie [this message]
2011-03-17 10:36           ` Lothar Waßmann
2011-03-18  2:06             ` Huang Shijie
2011-03-16  1:42 ` [PATCH 2/7] add the common code for GPMI driver Huang Shijie
2011-03-22 12:36   ` =?utf-8?Q?Lothar_Wa=C3=9Fmann?=
2011-03-23  3:41     ` Huang Shijie
2011-03-16  1:42 ` [PATCH 3/7] add the database for the NANDs Huang Shijie
2011-03-16  1:42 ` [PATCH 4/7] add GPMI support for imx23 Huang Shijie
2011-03-16  1:42 ` [PATCH 5/7] add GPMI support for imx28 Huang Shijie
2011-03-22 12:46   ` Lothar Waßmann
2011-03-23  3:11     ` Huang Shijie
2011-03-23 14:56       ` Lothar Waßmann
2011-03-23 15:16         ` Florian Fainelli
2011-03-24  3:07           ` Huang Shijie
2011-03-24  3:03         ` Huang Shijie
2011-03-24  7:34           ` Lothar Waßmann
2011-03-24  8:26             ` Jason Liu
2011-03-24  8:32               ` Wolfram Sang
2011-03-24  8:33               ` Lothar Waßmann
2011-03-24  8:51             ` Huang Shijie
2011-03-24 13:54               ` Florian Fainelli
2011-03-25  2:50                 ` Huang Shijie
2011-03-16  1:42 ` [PATCH 6/7] dmaengine: change the flags of request_irq() Huang Shijie
2011-03-16 10:13   ` Lothar Waßmann
2011-03-16 12:31     ` 答复: " Huang Shijie-B32955
2011-03-18  6:12     ` Huang Shijie
2011-03-16  1:42 ` [PATCH 7/7] MTD : add GPMI driver in the config and Makefile Huang Shijie
  -- strict thread matches above, loose matches on Subject: below --
2011-03-16  1:55 [PATCH 0/7] add the GPMI controller driver for IMX23/IMX28 Huang Shijie
2011-03-16  1:55 ` [PATCH 1/7] ARM: add GPMI support for imx23/imx28 Huang Shijie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D816FA3.2080202@freescale.com \
    --to=b32955@freescale.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).