changes the size/offset to unsigned long long type,
and replaces the UINT_MAX with ULLONG_MAX for macros SIZE_REMAINING and
OFFSET_CONTINUOUS.
Signed-off-by: Huang Shijie b32...@freescale.com
---
drivers/mtd/cmdlinepart.c | 10 +-
1 files changed, 5 insertions(+), 5 deletions(-)
diff
ping.
On Sun, Oct 14, 2012 at 1:03 AM, Huang Shijie shij...@gmail.com wrote:
The whole gpmi-nand driver has turned to pure devicetree supported.
So the linux/mtd/gpmi-nand.h is not neccessary now. Just remove it,
and move some macros to the gpmi-nand driver itself.
Signed-off-by: Huang
ping
On Mon, Oct 15, 2012 at 11:47 AM, Huang Shijie shij...@gmail.com wrote:
Use the NAND_STATUS_FAIL to replace the hardcode 0x01,
which make the code more readable.
Signed-off-by: Huang Shijie shij...@gmail.com
---
drivers/mtd/nand/nand_base.c |4 ++--
1 files changed, 2 insertions
The whole gpmi-nand driver has turned to pure devicetree supported.
So the linux/mtd/gpmi-nand.h is not neccessary now. Just remove it,
and move some macros to the gpmi-nand driver itself.
Signed-off-by: Huang Shijie shij...@gmail.com
---
drivers/mtd/nand/gpmi-nand/gpmi-lib.c |1 -
drivers
.
To make the logic clear, we'd better de-select the chip when it is not used.
This patch de-select the nand chip if it is not used any more.
Signed-off-by: Huang Shijie b32...@freescale.com
---
drivers/mtd/nand/nand_base.c | 10 ++
1 files changed, 6 insertions(+), 4 deletions(-)
diff
On Fri, Nov 9, 2012 at 10:10 AM, Artem Bityutskiy dedeki...@gmail.com wrote:
On Sat, 2012-10-27 at 10:23 +0800, Huang Shijie wrote:
于 2012年10月26日 21:41, Artem Bityutskiy 写道:
On Sat, 2012-10-13 at 13:03 -0400, Huang Shijie wrote:
The whole gpmi-nand driver has turned to pure devicetree
Use the NAND_STATUS_FAIL to replace the hardcode 0x01,
which make the code more readable.
Signed-off-by: Huang Shijie shij...@gmail.com
---
drivers/mtd/nand/nand_base.c |4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand
From: Huang Shijie shij...@gmail.com
[1] Why add these new DMA control commands?
In mx6q, the gpmi-nand driver is the only user of the APBH-DMA. The dma
clock
is enabled when we have successfully requested a DMA channel. So even when
the gpmi-nand driver does not work, the dma clock
,
the system has to enable the clock chain and it's parents ...
But with this patch, we only need to enable/disable dma clock one time,
just at we select the nand chip.
thanks
Huang Shijie
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord
于 2012年10月18日 15:14, Marek Vasut 写道:
Dear Huang Shijie,
Why such massive CC ?
于 2012年10月18日 14:18, Vinod Koul 写道:
Why cant you do start (prepare clock etc) when you submit the descriptor
to dmaengine. Can be done in tx_submit callback.
Similarly remove the clock when dma transaction gets
于 2012年10月18日 16:16, Marek Vasut 写道:
So we can't stream data from the chip? About time to adjust the MTD framework to
allow that. Maybe implement a command queue?
to Artem David:
is this possible to stream the data out with a command queue?
thanks
Huang Shijie
--
To unsubscribe from
in the middle, so we can not chain the all
the read-pages DMA commands.
thanks
Huang Shijie
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read
于 2012年10月18日 16:52, Russell King - ARM Linux 写道:
On Thu, Oct 18, 2012 at 02:45:41PM +0800, Huang Shijie wrote:
于 2012年10月18日 14:18, Vinod Koul 写道:
Why cant you do start (prepare clock etc) when you submit the descriptor
to dmaengine. Can be done in tx_submit callback.
Similarly remove
于 2012年10月18日 16:49, Marek Vasut 写道:
Dear Huang Shijie,
于 2012年10月18日 16:16, Marek Vasut 写道:
So we can't stream data from the chip? About time to adjust the MTD
framework to allow that. Maybe implement a command queue?
IMHO, it's not possible. Because the READ-PAGE(00h-30h) command needs
On Thu, Oct 18, 2012 at 6:51 AM, Marek Vasut ma...@denx.de wrote:
Dear Huang Shijie,
于 2012年10月18日 16:49, Marek Vasut 写道:
Dear Huang Shijie,
于 2012年10月18日 16:16, Marek Vasut 写道:
So we can't stream data from the chip? About time to adjust the MTD
framework to allow that. Maybe
On Thu, Oct 18, 2012 at 5:29 AM, Jassi Brar jaswinder.si...@linaro.org wrote:
On 18 October 2012 12:15, Huang Shijie b32...@freescale.com wrote:
于 2012年10月18日 14:18, Vinod Koul 写道:
Why cant you do start (prepare clock etc) when you submit the descriptor
to dmaengine. Can be done in tx_submit
] I re-test this patch set again.
Huang Shijie (8):
mtd: add data structures for Extended Parameter Page
mtd: add a helper to get the supported features for ONFI nand
mtd: get the ECC info from the Extended Parameter Page
mtd: replace the hardcode with the onfi_get_feature()
mtd: add a new
From: Huang Shijie shij...@gmail.com
add a helper to get the supported features for ONFI nand.
Also add the neccessary macros.
Signed-off-by: Huang Shijie b32...@freescale.com
---
include/linux/mtd/nand.h | 13 +
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git
Add the ecc info for TC58NVG2S0F, TC58NVG3S0F, TC58NVG5D2 and TC58NVG6D2.
From these chips' datasheets, we know that:
The TC58NVG2S0F and TC58NVG3S0F require 4bit ECC for per 512byte.
The TC58NVG5D2 and TC58NVG6D2 require 40bits ECC for per 1024byte.
Signed-off-by: Huang Shijie b32
info case.
Signed-off-by: Huang Shijie b32...@freescale.com
Signed-off-by: Huang Shijie shij...@gmail.com
---
drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 128 +++-
1 files changed, 127 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
b
The current code uses the hardcode to detect the 16-bit bus width.
Use the onfi_get_feature() to replace it.
Signed-off-by: Huang Shijie b32...@freescale.com
---
drivers/mtd/nand/nand_base.c |6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/nand
Add the @ecc_info in the nand_flash_dev{}.
The lower 16 bits are used to store the ECC bits, while the upper 16 bits
are used to store the ECC data chunk size.
Signed-off-by: Huang Shijie b32...@freescale.com
---
include/linux/mtd/nand.h | 10 ++
1 files changed, 10 insertions(+), 0
Parse out the ECC information for the full-id nand chips.
Signed-off-by: Huang Shijie b32...@freescale.com
---
drivers/mtd/nand/nand_base.c |2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index ba87e43..1611b7a
of the extended parameter
page to retrieve the ECC requirements for this device.
This patch implement the reading of the Extended Parameter Page, and parses
the sections for ECC type, and get the ECC info from the ECC section.
Tested this patch with Micron MT29F64G08CBABAWP.
Signed-off-by: Huang Shijie b32
-id nand in the nand_flash_lds.
v2 -- v3:
[1] remove the duplicated header.
[2] remove the field ecc_len in nand_flash_dev{}.
[3] fix some coding style warnings.
[4] add more comments
Huang Shijie (3):
mtd: add a new field for nand_flash_dev{}
mtd: add
for the nand_flash_dev{} to store the oob size for
these nands.
Signed-off-by: Huang Shijie b32...@freescale.com
---
include/linux/mtd/nand.h |2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index e2c7173..42862e9 100644
--- a/include
to parse other
non-full-id nand types, else it will continue to parse the non-full-id nands.
Signed-off-by: Huang Shijie b32...@freescale.com
---
drivers/mtd/nand/nand_ids.c | 22 ++
1 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/drivers/mtd/nand/nand_ids.c b
When we meet a full-id nand type which @mfr_id is true, we can use
the find_full_id_nand() to parse out the neccessary information for a
nand chip.
If we meet a non full-id nand type, we can handle it in the lagacy way.
Signed-off-by: Huang Shijie b32...@freescale.com
---
drivers/mtd/nand
for my poor english.
Some incompatible NAND chips share device ID's and so must be listed
by full ID. We list them first so that we can easily identify the most
specific match.
thanks. I will use this description.
Huang Shijie
--
To unsubscribe from this list: send the line unsubscribe linux
] remove the field ecc_len in nand_flash_dev{}.
[3] fix some coding style warnings.
[4] add more comments
Huang Shijie (3):
mtd: add new fields to nand_flash_dev{}
mtd: add the support to parse out the full-id nand type
mtd: add 4 Toshiba nand chips for the full-id case
When we meet a full-id nand type whose @id_len is not zero, we can use
the find_full_id_nand() to parse out the necessary information for a
nand chip.
If we meet a non full-id nand type, we can handle it in the legacy way.
Signed-off-by: Huang Shijie b32...@freescale.com
---
drivers/mtd/nand
to the nand_flash_dev{}:
@id_len: the valid length of the id data. See the comments in
nand_id_has_period()
@oobsize: the oob size.
Signed-off-by: Huang Shijie b32...@freescale.com
---
include/linux/mtd/nand.h |4
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/include
I have 4 Toshiba nand chips which can not be parsed out by the
id data. We can not get the oob size from the id data. So add them
as the full-id nand chips in the first of nand_flash_ids.
The comment for the full-id items is from Brian.
Signed-off-by: Huang Shijie b32...@freescale.com
On Wed, Mar 13, 2013 at 6:54 PM, Artem Bityutskiy
artem.bityuts...@linux.intel.com wrote:
On Thu, 2013-03-07 at 18:49 +0800, Huang Shijie wrote:
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index 591eeeb..f0a9d93 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux
于 2013年03月02日 22:19, Artem Bityutskiy 写道:
On Mon, 2013-01-28 at 12:57 +0800, Huang Shijie wrote:
As time goes on, we begin to meet the situation that we can not get enough
information from some nand chips's id data. Take some Toshiba's nand chips
for example. I have 4 Toshiba's nand chips in my
于 2013年03月02日 22:21, Artem Bityutskiy 写道:
On Sat, 2013-02-16 at 11:56 +0800, Huang Shijie wrote:
On Tue, Feb 12, 2013 at 11:47 PM, Artem Bityutskiydedeki...@gmail.com wrote:
On Mon, 2013-01-28 at 12:57 +0800, Huang Shijie wrote:
+ {SmartMedia 256MiB 3,3V, {0, 0x71}, 512, 256
于 2013年03月04日 15:50, Artem Bityutskiy 写道:
On Mon, 2013-03-04 at 13:57 +0800, Huang Shijie wrote:
The current code uses the @id to store the device id(byte 1).
But if we use the 8 bytes id data as the keyword, and expand the @id
field to 8byte array,
the device id is the second byte now. All
于 2013年03月04日 16:24, Artem Bityutskiy 写道:
On Mon, 2013-03-04 at 16:08 +0800, Huang Shijie wrote:
于 2013年03月04日 15:50, Artem Bityutskiy 写道:
On Mon, 2013-03-04 at 13:57 +0800, Huang Shijie wrote:
The current code uses the @id to store the device id(byte 1).
But if we use the 8 bytes id data
于 2013年03月04日 16:37, Artem Bityutskiy 写道:
On Mon, 2013-03-04 at 16:08 +0800, Huang Shijie wrote:
于 2013年03月04日 15:50, Artem Bityutskiy 写道:
On Mon, 2013-03-04 at 13:57 +0800, Huang Shijie wrote:
The current code uses the @id to store the device id(byte 1).
But if we use the 8 bytes id data
Huang Shijie
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
{}.
[3] fix some coding style warnings.
[4] add more comments
Huang Shijie (3):
mtd: add new fields to nand_flash_dev{}
mtd: add 4 Toshiba nand chips for the full-id case
mtd: add the support to parse out the full-id nand type
drivers/mtd/nand/nand_base.c | 36
to the nand_flash_dev{}:
@id_len: the valid length of the id data. See the comments in
nand_id_has_period()
@oobsize: the oob size.
Signed-off-by: Huang Shijie b32...@freescale.com
---
include/linux/mtd/nand.h |4
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/include
I have 4 Toshiba nand chips which can not be parsed out by the
id data. We can not get the oob size from the id data. So add them
as the full-id nand chips in the first of nand_flash_ids.
Signed-off-by: Huang Shijie b32...@freescale.com
---
drivers/mtd/nand/nand_ids.c | 15 +++
1
When we meet a full-id nand type which @mfr_id is true, we can use
the find_full_id_nand() to parse out the neccessary information for a
nand chip.
If we meet a non full-id nand type, we can handle it in the lagacy way.
Signed-off-by: Huang Shijie b32...@freescale.com
---
drivers/mtd/nand
于 2013年02月04日 16:42, Artem Bityutskiy 写道:
On Mon, 2013-01-28 at 10:06 +0800, Huang Shijie wrote:
+ unsigned int id_len;
+ unsigned long oobsize;
+ unsigned long ecc_len;
I think it's better to submit another patch set to solve the ECC
problem.
Would you please strip the cited text
Add a new module parameter 'pattern'. If it is set to zero,
we will use the 55/AA pattern to torture the nand blocks; if it is set
to a non-zero value, we will use the random data pattern.
Signed-off-by: Huang Shijie b32...@freescale.com
---
drivers/mtd/tests/mtd_torturetest.c | 72
Rewrite the torture cycle, do the erase-write-verify process in
one block unit, not in several blocks unit.
This patch makes preparations for adding the rand data pattern support.
Signed-off-by: Huang Shijie b32...@freescale.com
---
drivers/mtd/tests/mtd_torturetest.c | 29
There are many places we should get the offset(in PAGE_SIZE unit) of
an address within a non-hugetlb vma.
In order to simplify the code, add a new helper __linear_page_index()
to do the work.
Signed-off-by: Huang Shijie b32...@freescale.com
---
This patch is based on linux-next tree.
---
arch
于 2013年02月05日 16:05, Ricard Wanderlof 写道:
On Tue, 5 Feb 2013, Huang Shijie wrote:
Add a new module parameter 'pattern'. If it is set to zero, we will
use the 55/AA pattern to torture the nand blocks; if it is set to a
non-zero value, we will use the random data pattern.
Not a big issue
于 2013年01月30日 05:00, Florian Fainelli 写道:
Hello Huang,
Le mardi 22 janvier 2013 02:30:30, Huang Shijie a écrit :
In nand_wait(), the timeo for panic_nand_wait() is assigned with
wrong value(jiffies + some delay). The timeo should be set like the
panic_nand_write() does.
This patch fixes
also passes timeo in jiffies(converted by msecs_to_jiffies)
to time_before() which makes the code more readable.
Signed-off-by: Huang Shijie b32...@freescale.com
---
v1 -- v2:
fixed a compiler error.
v2 -- v3:
add more comments.
---
drivers/mtd/nand/nand_base.c |8 ++--
1
于 2013年02月12日 23:47, Artem Bityutskiy 写道:
On Mon, 2013-01-28 at 12:57 +0800, Huang Shijie wrote:
+ {SmartMedia 256MiB 3,3V, {0, 0x71}, 512, 256, 0x4000 },
+ {SmartMedia 256MiB 3,3V ROM, {0, 0x5b}, 512, 256, 0x4000,
NAND_ROM},
Sorry for a possibly stupid question, but what
于 2013年01月24日 14:11, Huang Shijie 写道:
We have 4 Toshiba nand chips which can not be parsed out by the
id data. Add a new table for the unparsable nand chips.
It makes mess if we add these entries to the nand_flash_ids table.
The entries in the nand_flash_ids stands for a class of nand chips
于 2013年01月24日 14:11, Huang Shijie 写道:
As time goes on, we begin to meet the situation that we can not get enough
information from some nand chips's id data. Take some Toshiba's nand chips
for example. I have 4 Toshiba's nand chips in my hand:
TC58NVG2S0F, TC58NVG3S0F, TC58NVG5D2
From: Huang Shijie b32...@freescale.com
I ever submitted a patch to use the full-id as the keyword for
some unparsable nand chips. This is the second tries.
As time goes on, we begin to meet the situation that we can not
get enough information from some nand chips's id data.
Take some Toshiba's
some singular chips.
Signed-off-by: Huang Shijie b32...@freescale.com
---
drivers/mtd/nand/nand_ids.c | 21 +
include/linux/mtd/nand.h|1 +
2 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/drivers/mtd/nand/nand_ids.c b/drivers/mtd/nand/nand_ids.c
index
Add the new detection method find_nand_type_by_fullid() for the
unparsable nand chips. The new detection method is called firstly
before all the other detection methods.
Signed-off-by: Huang Shijie b32...@freescale.com
---
drivers/mtd/nand/nand_base.c | 33 -
1
to the nand_flash_dev{}, and update the
detection mechanisms.
This patch just adds some new fields to the nand_flash_dev{}:
@id[8] : the 8 bytes id data.
@id_len: the valid length of the id data.
@oobsize: the oob size.
Signed-off-by: Huang Shijie b32...@freescale.com
---
drivers/mtd/devices
In nand_wait(), the timeo for panic_nand_wait() is assigned with
wrong value(jiffies + some delay).
This patch fixes it, and also uses the msecs_to_jiffies() to make the
code more readable.
Signed-off-by: Huang Shijie shij...@gmail.com
---
drivers/mtd/nand/nand_base.c |8 ++--
1 files
in panic_nand_write().
thanks
Huang Shijie
Huang Shijie a écrit :
In nand_wait(), the timeo for panic_nand_wait() is assigned with
wrong value(jiffies + some delay).
This patch fixes it, and also uses the msecs_to_jiffies() to make the
code more readable.
Signed-off-by: Huang Shijie shij
In nand_wait(), the timeo for panic_nand_wait() is assigned with
wrong value(jiffies + some delay). The timeo should be set like the
panic_nand_write() does.
This patch fixes it, and also uses the msecs_to_jiffies() to make the
code more readable.
Signed-off-by: Huang Shijie b32...@freescale.com
But we can not parse out the correct oob size for these chips from the id data.
So it is time to add some new fields to the nand_flash_dev{}, and update the
detection mechanisms.
Huang Shijie (3):
mtd: add new fields to nand_flash_dev{}
mtd: add a new table for the unparsable nand chips
mtd: add
to the nand_flash_dev{}, and update the
detection mechanisms.
This patch just adds some new fields to the nand_flash_dev{}.
Signed-off-by: Huang Shijie b32...@freescale.com
---
drivers/mtd/devices/doc2000.c |2 +-
drivers/mtd/devices/doc2001.c |2 +-
drivers/mtd/devices/doc2001plus.c
some singular chips.
Signed-off-by: Huang Shijie b32...@freescale.com
---
drivers/mtd/nand/nand_ids.c | 22 ++
include/linux/mtd/nand.h|1 +
2 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/drivers/mtd/nand/nand_ids.c b/drivers/mtd/nand/nand_ids.c
index
Add the new detection method find_nand_type_by_fullid() for the
unparsable nand chips. The new detection method is called firstly
before all the other detection methods.
Signed-off-by: Huang Shijie b32...@freescale.com
---
drivers/mtd/nand/nand_base.c | 33 -
1
On Tue, Feb 12, 2013 at 11:47 PM, Artem Bityutskiy dedeki...@gmail.com wrote:
On Mon, 2013-01-28 at 12:57 +0800, Huang Shijie wrote:
+ {SmartMedia 256MiB 3,3V, {0, 0x71}, 512, 256, 0x4000 },
+ {SmartMedia 256MiB 3,3V ROM, {0, 0x5b}, 512, 256, 0x4000,
NAND_ROM},
Sorry
you agree?
thanks
Huang Shijie
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
+ AUART_INTR_CLR);
To fix this issue, the patch moves this gate-off line to
the end of setting registers.
Signed-off-by: Huang Shijie shij...@gmail.com
---
drivers/tty/serial/mxs-auart.c |4 ++--
1 files changed, 2
We call the get_device() in the mxs_auart_probe().
For the balance of the reference count, we should put the
device in the mxs_auart_remove().
Signed-off-by: Huang Shijie shij...@gmail.com
---
drivers/tty/serial/mxs-auart.c |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git
于 2012年09月07日 10:38, Shawn Guo 写道:
On Thu, Sep 06, 2012 at 10:38:40PM -0400, Huang Shijie wrote:
After set the AUART_CTRL0_CLKGATE, the UART will gate all the clocks off.
So the following line will not take effect
于 2012年09月07日 10:43, Shawn Guo 写道:
On Thu, Sep 06, 2012 at 10:38:41PM -0400, Huang Shijie wrote:
We call the get_device() in the mxs_auart_probe().
For the balance of the reference count, we should put the
device in the mxs_auart_remove().
Signed-off-by: Huang Shijieshij...@gmail.com
We call the get_device() in the mxs_auart_probe().
For the balance of the reference count, we should put the
device in the mxs_auart_remove() or in the error path of
probe.
Signed-off-by: Huang Shijie b32...@freescale.com
---
drivers/tty/serial/mxs-auart.c |2 ++
1 files changed, 2
add onfi_get_async_timing_mode() to get the supportted asynchronous
timing mode.
add onfi_get_sync_timing_mode() to get the supportted synchronous
timing mode.
Also add the neccessary macros : the timing modes.
Signed-off-by: Huang Shijie b32...@freescale.com
---
include/linux/mtd/nand.h
Add the set-features(0xef)/get-features(0xee) helpers for ONFI nand.
Also add the necessary macros.
Signed-off-by: Huang Shijie b32...@freescale.com
---
drivers/mtd/nand/nand_base.c | 50 ++
include/linux/mtd/nand.h | 14 +++
2 files
thanks.
Acked-by: Huang Shijie shij...@gmail.com
On Thu, Jul 26, 2012 at 3:41 AM, Tim Gardner tim.gard...@canonical.com wrote:
Cc: Huang Shijie shij...@gmail.com
Cc: Kang Yong kangy...@telegent.com
Cc: Zhang Xiaobing xbzh...@telegent.com
Cc: Mauro Carvalho Chehab mche...@infradead.org
Cc
于 2012年08月29日 16:24, Artem Bityutskiy 写道:
While appreciating Shmulik's attention to details, I vote this way:
On Sun, 2012-08-26 at 02:47 -0400, Huang Shijie wrote:
Could Artem or David point us a direction about this?
[1] Should the unsorted partitions be supported?
No, it is asking
On Thu, Aug 30, 2012 at 2:43 PM, Artem Bityutskiy dedeki...@gmail.com wrote:
On Sun, 2012-08-26 at 13:21 -0400, Huang Shijie wrote:
This patch is based on the assumption that all the partitions are
in the right offset order.
Assume we have a 1GB(8Gb) nand chip, and we set the partitions
On Fri, Aug 31, 2012 at 7:45 AM, Artem Bityutskiy dedeki...@gmail.com wrote:
On Sun, 2012-08-26 at 13:21 -0400, Huang Shijie wrote:
There are typically two types to set the mtd partitions:
1 set with the `size`, such as
gpmi-nand:100m(boot),100m(kernel),1g(rootfs)
2 set with the `offset
On Fri, Aug 31, 2012 at 9:59 AM, Artem Bityutskiy dedeki...@gmail.com wrote:
On Sun, 2012-08-26 at 13:21 -0400, Huang Shijie wrote:
Assume we have a 1GB(8Gb) nand chip.
It is legit if we set the partitions as the following:
gpmi-nand:1g@200m(rootfs),100m@0(boot),100m@100m(kernel
On Fri, Aug 31, 2012 at 7:45 AM, Artem Bityutskiy dedeki...@gmail.com wrote:
On Sun, 2012-08-26 at 13:21 -0400, Huang Shijie wrote:
There are typically two types to set the mtd partitions:
1 set with the `size`, such as
gpmi-nand:100m(boot),100m(kernel),1g(rootfs)
2 set with the `offset
On Mon, Sep 3, 2012 at 3:18 AM, Artem Bityutskiy dedeki...@gmail.com wrote:
On Sun, 2012-08-26 at 13:21 -0400, Huang Shijie wrote:
+ *
+ * Note:
+ * If you choose to set the @offset for the partdef, please set all
+ * the partitions with the same syntax, such as:
+ * gpmi-nand:100m@0
MTD_NAND_VERIFY_WRITE entirely.
Signed-off-by: Huang Shijie shij...@gmail.com
---
drivers/mtd/nand/Kconfig |9 -
drivers/mtd/nand/ams-delta.c | 13
drivers/mtd/nand/au1550nd.c | 46 ---
drivers/mtd/nand/bcm_umi_nand.c | 22 -
drivers/mtd
patch that removes
CONFIG_MTD_NAND_VERIFY_WRITE from all defconfig files.
thanks a lot.
I will send out a separate patch to fix it.
Huang Shijie
(also, trimmed the CC list for this specific discussion, seems unrelated
to all of the parties)
Regards,
Shmulik
MTD_NAND_VERIFY_WRITE entirely. Please see the patch:
http://lists.infradead.org/pipermail/linux-mtd/2012-August/043189.html
This patch removes the CONFIG_MTD_NAND_VERIFY_WRITE in the defconfigs.
Signed-off-by: Huang Shijie b32...@freescale.com
---
arch/arm/configs/bcmring_defconfig |1 -
arch
于 2012年08月15日 20:09, Marek Vasut 写道:
I'd still prefer for this to be rather fixed. It seems to be able to find some
obvious mistakes etc.
could you please point out the mistakes?
thanks
Huang Shijie
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body
(DCE).
This patch also replaces the AUART_CTRL2_RTS with AUART_CTRL2_RTSEN.
We should use the real the hardware flow control, not the software-controled
hardware flow control.
Signed-off-by: Huang Shijie b32...@freescale.com
---
drivers/tty/serial/mxs-auart.c | 14 +-
1 files changed
(DCE).
This patch also replaces the AUART_CTRL2_RTS with AUART_CTRL2_RTSEN.
We should use the real the hardware flow control, not the software-controled
hardware flow control.
Signed-off-by: Huang Shijie b32...@freescale.com
---
v1 -- v2:
The ASYNC_CTS_FLOW is set in the `flags` field
change my patch based on it.
thanks
Huang Shijie
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
In most of the time, the driver needs to check if the cts flow control
is enabled. But now, the driver checks the ASYNC_CTS_FLOW flag manually,
which is not a grace way. So add a new wraper function to make the code
tidy and clean.
Signed-off-by: Huang Shijie shij...@gmail.com
---
v2 -- v3
mtd0: 0640 0004 boot
mtd1: 0640 0004 kernel
mtd2: 3380 0004 rootfs
--
We get the right result.
Signed-off-by: Huang Shijie shij...@gmail.com
---
v1 -- v2:
[1] add more commit info.
---
drivers/mtd/cmdlinepart.c
parses out several mtd partitions right now.
This is obviously wrong. We even do not enable the gpmi-nand in
this case.
The patch comes from Artem's suggestion code which is better then mine.
Signed-off-by: Huang Shijie shij...@gmail.com
---
drivers/mtd/cmdlinepart.c |5 -
1 files
On Sat, Aug 25, 2012 at 5:02 AM, Shmulik Ladkani
shmulik.ladk...@gmail.com wrote:
Hi Huang,
On Sat, 25 Aug 2012 10:26:07 -0400 Huang Shijie shij...@gmail.com wrote:
diff --git a/drivers/mtd/cmdlinepart.c b/drivers/mtd/cmdlinepart.c
index 4558e0f..fc960a3 100644
--- a/drivers/mtd
On Sat, Aug 25, 2012 at 5:42 AM, Shmulik Ladkani
shmulik.ladk...@gmail.com wrote:
On Sat, 25 Aug 2012 05:26:51 -0400 Huang Shijie shij...@gmail.com wrote:
The specified cmdline partitions might not be ordered (according to
start offset), so next partition specified after the truncated one
-by: Huang Shijie shij...@gmail.com
---
drivers/mtd/cmdlinepart.c |9 +
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/drivers/mtd/cmdlinepart.c b/drivers/mtd/cmdlinepart.c
index fe7e3a5..0b7b2ad 100644
--- a/drivers/mtd/cmdlinepart.c
+++ b/drivers/mtd/cmdlinepart.c
:
--
root@freescale ~$ cat /proc/mtd
dev:size erasesize name
mtd0: 0640 0004 boot
mtd1: 0640 0004 kernel
mtd2: 3380 0004 rootfs
--
We get the right result.
Signed-off-by: Huang Shijie
.
For there are maybe only several partitions, i use the simple
Bubble sort algorithm.
Signed-off-by: Huang Shijie shij...@gmail.com
---
drivers/mtd/cmdlinepart.c | 29 +
1 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/drivers/mtd/cmdlinepart.c b/drivers/mtd
On Sun, Aug 26, 2012 at 2:06 AM, Shmulik Ladkani
shmulik.ladk...@gmail.com wrote:
Hi,
On Sat, 25 Aug 2012 05:26:51 -0400 Huang Shijie shij...@gmail.com wrote:
On Sat, Aug 25, 2012 at 5:02 AM, Shmulik Ladkani
shmulik.ladk...@gmail.com wrote:
Your analysis seems right, but let me offer
On Sat, Aug 25, 2012 at 5:31 AM, Shmulik Ladkani
shmulik.ladk...@gmail.com wrote:
Hi Huang, Artem,
On Sat, 25 Aug 2012 16:06:50 -0400 Huang Shijie shij...@gmail.com wrote:
diff --git a/drivers/mtd/cmdlinepart.c b/drivers/mtd/cmdlinepart.c
index fc960a3..216d751 100644
--- a/drivers/mtd
In most of the time, the driver needs to check if the cts flow control
is enabled. But now, the driver checks the ASYNC_CTS_FLOW flag manually,
which is not a grace way. So add a new wraper function to make the code
tidy and clean.
Signed-off-by: Huang Shijie shij...@gmail.com
---
drivers/char
On Sun, Aug 19, 2012 at 2:44 AM, Greg KH gre...@linuxfoundation.org wrote:
On Sun, Aug 19, 2012 at 02:27:12PM -0400, Huang Shijie wrote:
--- a/include/linux/tty.h
+++ b/include/linux/tty.h
@@ -43,6 +43,7 @@
#include linux/tty_driver.h
#include linux/tty_ldisc.h
#include linux/mutex.h
1 - 100 of 832 matches
Mail list logo