From: Sascha Hauer <s.hauer@pengutronix.de>
To: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 0/2] m25p80: re-import it againt mtd_add_host
Date: Wed, 31 Oct 2012 22:29:02 +0100 [thread overview]
Message-ID: <20121031212902.GQ1641@pengutronix.de> (raw)
In-Reply-To: <20121031120122.GF29599@game.jcrosoft.org>
On Wed, Oct 31, 2012 at 01:01:22PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
> Hi,
>
> so we now create the cdev via mtd
>
> This will also simplify sync with linux
>
> to avoid the m25p8000 or m25p00 the cdev is still named name m25p and the
> drivers m25p80
>
> sync with linux too
>
> this patch series is agianst mtd_dataflash support
>
> The following changes since commit 9428c386f876fa3a8871eeea4725a805cea5c367:
>
> mtd: add dataflash support (2012-10-31 04:48:39 +0800)
>
> are available in the git repository at:
>
> git://git.jcrosoft.org/barebox.git delivery/m25p80
Sometimes I get the feeling that you do this only to break other peoples
setup:
barebox@Sabre Lite:/ saveenv
saving environment
prefetch abort
pc : [<00000004>] lr : [<4fc099eb>]
sp : 4bbff8e0 ip : 00000000 fp : 00000000
r10: 00000000 r9 : 00000000 r8 : 00000000
r7 : 00080000 r6 : 4bbff8e0 r5 : 00080000 r4 : 4bc0bc68
r3 : 00000000 r2 : 00080000 r1 : 00000000 r0 : 4bc0bc68
Flags: nZCv IRQs off FIQs off Mode SVC_32
[<4fc099eb>] (mtd_erase+0x2b/0x60) from [<4fc157cd>] (devfs_erase+0x41/0x54)
[<4fc157cd>] (devfs_erase+0x41/0x54) from [<4fc1716f>] (erase+0x6f/0x8c)
[<4fc1716f>] (erase+0x6f/0x8c) from [<4fc0e307>] (do_saveenv+0x7b/0x100)
[<4fc0e307>] (do_saveenv+0x7b/0x100) from [<4fc0588d>] (execute_command+0x21/0x4c)
[<4fc0588d>] (execute_command+0x21/0x4c) from [<4fc0317d>] (run_list_real+0x629/0x704)
[<4fc0317d>] (run_list_real+0x629/0x704) from [<4fc03339>] (parse_stream_outer+0xe1/0x190)
[<4fc03339>] (parse_stream_outer+0xe1/0x190) from [<4fc0357b>] (run_shell+0x23/0x54)
[<4fc0357b>] (run_shell+0x23/0x54) from [<4fc0588d>] (execute_command+0x21/0x4c)
[<4fc0588d>] (execute_command+0x21/0x4c) from [<4fc0317d>] (run_list_real+0x629/0x704)
[<4fc0317d>] (run_list_real+0x629/0x704) from [<4fc02e1d>] (run_list_real+0x2c9/0x704)
[<4fc1b37d>] (unwind_backtrace+0x1/0x64) from [<4fc0f635>] (panic+0x1d/0x2c)
[<4fc0f635>] (panic+0x1d/0x2c) from [<4fc1b761>] (do_exception+0xd/0x10)
[<4fc1b761>] (do_exception+0xd/0x10) from [<4fc1b7a5>] (do_prefetch_abort+0x11/0x14)
[<4fc1b7a5>] (do_prefetch_abort+0x11/0x14) from [<4fc1b510>] (prefetch_abort+0x50/0x60)
This is because you haven't provided a mtd->block_isbad callback. Instead
we have an empty m25p_oob0 device for a flash which cannot have bad blocks
at all. Have you ever done basic tests with this driver? This really
does not motivate me to take a 40k patch.
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
next prev parent reply other threads:[~2012-10-31 21:29 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-31 12:01 [PATCH 0/2] m25p80: re-import it againt mtd_add_host Jean-Christophe PLAGNIOL-VILLARD
2012-10-31 12:04 ` [PATCH 1/2] " Jean-Christophe PLAGNIOL-VILLARD
2012-10-31 12:04 ` [PATCH 2/2] m25p80: sync flash support with the kernel Jean-Christophe PLAGNIOL-VILLARD
2012-10-31 21:29 ` Sascha Hauer [this message]
2012-11-01 9:32 ` [PATCH 0/2] m25p80: re-import it againt mtd_add_host Jean-Christophe PLAGNIOL-VILLARD
2012-11-01 9:33 ` [PATCH 1/1] mtd: introduce mtd_block_isbad Jean-Christophe PLAGNIOL-VILLARD
2012-11-15 10:11 ` [PATCH 0/2] m25p80: re-import it againt mtd_add_host Jean-Christophe PLAGNIOL-VILLARD
2012-11-16 20:16 ` Jean-Christophe PLAGNIOL-VILLARD
2012-11-20 8:41 ` Sascha Hauer
2012-11-20 12:37 ` Jean-Christophe PLAGNIOL-VILLARD
2012-11-20 14:34 ` Jean-Christophe PLAGNIOL-VILLARD
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=20121031212902.GQ1641@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=plagnioj@jcrosoft.com \
/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.