* [PATCH V3] MTD: atmel_nand: Update driver to support Programmable HW ECC controller
[not found] <1328491977-30448-1-git-send-email-hong.xu@atmel.com>
@ 2012-02-11 11:28 ` Artem Bityutskiy
2012-02-13 2:15 ` Xu, Hong
2012-02-13 2:41 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 2 replies; 3+ messages in thread
From: Artem Bityutskiy @ 2012-02-11 11:28 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, 2012-02-06 at 09:32 +0800, Hong Xu wrote:
> +static int16_t *pmecc_get_index_of(struct atmel_nand_host *host)
> +{
> + int16_t *p = (int16_t *)host->rom_base;
I did not really get into details, but you annotate rom_base with
__iomem, and then you have to cast it to int16_t in several - this does
not look very nice.
Could you please CC the arm list? There are much more people who can
give this code a review.
--
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20120211/275f8346/attachment.sig>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH V3] MTD: atmel_nand: Update driver to support Programmable HW ECC controller
2012-02-11 11:28 ` [PATCH V3] MTD: atmel_nand: Update driver to support Programmable HW ECC controller Artem Bityutskiy
@ 2012-02-13 2:15 ` Xu, Hong
2012-02-13 2:41 ` Jean-Christophe PLAGNIOL-VILLARD
1 sibling, 0 replies; 3+ messages in thread
From: Xu, Hong @ 2012-02-13 2:15 UTC (permalink / raw)
To: linux-arm-kernel
Hi Artem,
> -----Original Message-----
> From: Artem Bityutskiy [mailto:dedekind1 at gmail.com]
> Sent: Saturday, February 11, 2012 7:28 PM
> To: Xu, Hong; linux-arm-kernel
> Cc: linux-mtd at lists.infradead.org; ivan.djelic at parrot.com;
> dwmw2 at infradead.org
> Subject: Re: [PATCH V3] MTD: atmel_nand: Update driver to support
Programmable
> HW ECC controller
>
> On Mon, 2012-02-06 at 09:32 +0800, Hong Xu wrote:
> > +static int16_t *pmecc_get_index_of(struct atmel_nand_host *host)
> > +{
> > + int16_t *p = (int16_t *)host->rom_base;
>
> I did not really get into details, but you annotate rom_base with
> __iomem, and then you have to cast it to int16_t in several - this
does
> not look very nice.
>
OK, this line shall be removed actually, thanks.
The logic here is, we want to use one lookup table which sits in ROM.
ROM region is mapped into kernel space by ioremap and the VA is saved in
rom_base. The function pmecc_get_index_of and pmecc_get_alpha_to are
used to return the correct ROM offset according to SoC and PMECC
configurations.
The lookup table is of type int16.
> Could you please CC the arm list? There are much more people who can
> give this code a review.
>
OK, I'll resend the patch and CC the arm list.
Thanks and Br,
Eric
> --
> Best Regards,
> Artem Bityutskiy
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH V3] MTD: atmel_nand: Update driver to support Programmable HW ECC controller
2012-02-11 11:28 ` [PATCH V3] MTD: atmel_nand: Update driver to support Programmable HW ECC controller Artem Bityutskiy
2012-02-13 2:15 ` Xu, Hong
@ 2012-02-13 2:41 ` Jean-Christophe PLAGNIOL-VILLARD
1 sibling, 0 replies; 3+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-02-13 2:41 UTC (permalink / raw)
To: linux-arm-kernel
On 13:28 Sat 11 Feb , Artem Bityutskiy wrote:
> On Mon, 2012-02-06 at 09:32 +0800, Hong Xu wrote:
> > +static int16_t *pmecc_get_index_of(struct atmel_nand_host *host)
> > +{
> > + int16_t *p = (int16_t *)host->rom_base;
this need to be passed via resource
Best Regards,
J.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-02-13 2:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1328491977-30448-1-git-send-email-hong.xu@atmel.com>
2012-02-11 11:28 ` [PATCH V3] MTD: atmel_nand: Update driver to support Programmable HW ECC controller Artem Bityutskiy
2012-02-13 2:15 ` Xu, Hong
2012-02-13 2:41 ` Jean-Christophe PLAGNIOL-VILLARD
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).