From: Vladimir Zapolskiy <vz@mleia.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/4] nand: lpc32xx: add SLC NAND controller support
Date: Thu, 16 Jul 2015 23:18:20 +0300 [thread overview]
Message-ID: <55A8118C.9090205@mleia.com> (raw)
In-Reply-To: <1437077687.2993.111.camel@freescale.com>
Hello Scott,
On 16.07.2015 23:14, Scott Wood wrote:
> On Thu, 2015-07-16 at 14:53 +0200, Albert ARIBAUD wrote:
>> Hello Vladimir,
>>
>> On Thu, 16 Jul 2015 02:33:46 +0300, Vladimir Zapolskiy <vz@mleia.com>
>> wrote:
>>
>>> diff --git a/drivers/mtd/nand/lpc32xx_nand_slc.c
>>> b/drivers/mtd/nand/lpc32xx_nand_slc.c
>>> new file mode 100644
>>
>>> +int board_nand_init(struct nand_chip *lpc32xx_chip)
>>> +{
>>> + lpc32xx_chip->IO_ADDR_R = &lpc32xx_nand_slc_registers->data;
>>> + lpc32xx_chip->IO_ADDR_W = &lpc32xx_nand_slc_registers->data;
>>
>> Consistent with my comment re nand_simpl.c, I think that the two
>> assignments above are incorrect since the data register may not provide
>> general access to the NAND's I/O lines, and is not 8-bit accessible
>> even though the NAND is 8-bit wide.
>>
>> If Scott give his go, though, disregard my comment.
>
> I agree with Albert -- if you need custom accessors, there's no benefit to
> using IO_ADDR_R/W, and it could make it harder to debug if some user of
> IO_ADDR_R/W is missed.
No objections from my side regarding this notice, I'll remove these two
lines in v2. Please let me know, if you notice something else, what can
be improved.
--
With best wishes,
Vladimir
next prev parent reply other threads:[~2015-07-16 20:18 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-15 23:33 [U-Boot] [PATCH 0/4] lpc32xx: devkit3250 board update Vladimir Zapolskiy
2015-07-15 23:33 ` [U-Boot] [PATCH 1/4] spl: nand: simple: replace readb() with chip specific read_buf() Vladimir Zapolskiy
2015-07-16 8:02 ` Albert ARIBAUD
2015-07-16 11:31 ` Vladimir Zapolskiy
2015-07-16 12:43 ` Albert ARIBAUD
2015-07-16 13:48 ` Vladimir Zapolskiy
2015-07-16 14:12 ` Albert ARIBAUD
2015-07-16 19:30 ` Scott Wood
2015-07-15 23:33 ` [U-Boot] [PATCH 2/4] nand: lpc32xx: add SLC NAND controller support Vladimir Zapolskiy
2015-07-16 12:53 ` Albert ARIBAUD
2015-07-16 20:14 ` Scott Wood
2015-07-16 20:18 ` Vladimir Zapolskiy [this message]
2015-07-16 20:20 ` Scott Wood
2015-07-16 20:29 ` Vladimir Zapolskiy
2015-07-15 23:33 ` [U-Boot] [PATCH 3/4] lpc32xx: devkit3250: update of board configuration Vladimir Zapolskiy
2015-07-16 7:27 ` Albert ARIBAUD
2015-07-16 12:05 ` Vladimir Zapolskiy
2015-07-16 12:45 ` Albert ARIBAUD
2015-07-15 23:33 ` [U-Boot] [PATCH 4/4] lpc32xx: devkit3250: add spl build support Vladimir Zapolskiy
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=55A8118C.9090205@mleia.com \
--to=vz@mleia.com \
--cc=u-boot@lists.denx.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.