From: Sascha Hauer <s.hauer@pengutronix.de>
To: Stefan Christ <s.christ@phytec.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] ARM: i.MX6: use generic calculation in nand bbu handler
Date: Wed, 28 Jan 2015 10:11:05 +0100 [thread overview]
Message-ID: <20150128091105.GE12209@pengutronix.de> (raw)
In-Reply-To: <1422364459-31395-1-git-send-email-s.christ@phytec.de>
On Tue, Jan 27, 2015 at 02:14:19PM +0100, Stefan Christ wrote:
> The parameters ECC Strength, BadBlockMarkerByte and BadBlockMarkerStartBit in
> the FCB structure depends on the nand chip's pagesize and oobsize. Instead of
> hardcoding these values into the imx6 bbu handler calculate these values on the
> fly. Therefore we export the necessary functions from the nand_mxs driver to
> use them in the bbu handler.
>
> Signed-off-by: Stefan Christ <s.christ@phytec.de>
> ---
> arch/arm/mach-imx/Kconfig | 1 +
> arch/arm/mach-imx/imx6-bbu-nand.c | 28 +++++------------------
> arch/arm/mach-imx/include/mach/nand_mxs.h | 37 +++++++++++++++++++++++++++++++
> drivers/mtd/nand/nand_mxs.c | 7 +++---
> 4 files changed, 48 insertions(+), 25 deletions(-)
> create mode 100644 arch/arm/mach-imx/include/mach/nand_mxs.h
>
> diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
> index 9ac36e1..42074a2 100644
> --- a/arch/arm/mach-imx/Kconfig
> +++ b/arch/arm/mach-imx/Kconfig
> @@ -119,6 +119,7 @@ config BAREBOX_UPDATE_IMX6_NAND
> depends on BAREBOX_UPDATE
> depends on MTD
> depends on MTD_WRITE
> + select NAND_MXS
Please use depends here instead of select. Selecting stuff which has
other dependencies often leads to trouble.
> diff --git a/drivers/mtd/nand/nand_mxs.c b/drivers/mtd/nand/nand_mxs.c
> index 94101a3..4c5bdfa 100644
> --- a/drivers/mtd/nand/nand_mxs.c
> +++ b/drivers/mtd/nand/nand_mxs.c
> @@ -34,6 +34,7 @@
> #include <stmp-device.h>
> #include <asm/mmu.h>
> #include <mach/generic.h>
> +#include <mach/nand_mxs.h>
This breaks compilation on MXS which does not have this file. Choose a
location under include/
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
prev parent reply other threads:[~2015-01-28 9:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-27 13:14 Stefan Christ
2015-01-28 9:11 ` Sascha Hauer [this message]
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=20150128091105.GE12209@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=s.christ@phytec.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox