Re: [OpenWrt-Devel] [PATCH] Add support for PMC PM25LQ032 SPI Flash in m25p80.c

2013-04-09 Thread Florian Fainelli

Le 04/04/13 12:56, Michel Stempin a écrit :



Le 27/02/2013 13:46, Jonas Gorski a écrit :

On 27 February 2013 13:25, Florian Fainelli flor...@openwrt.org wrote:

Hello,


On 01/31/2013 11:25 AM, Michel Stempin wrote:


Hi John,

Le 31/01/2013 09:07, John Crispin a écrit :


Hi,

please also send this patch upstream to the mtd list



Ok, but I can't find any upstream patch for the surrounding PMC devices
(pm25lv512 and pm25lv010) commited by jogo in revision 29986 (originally
introduced by nbd in

trunk/target/linux/generic/patches-2.6.39/084-mtd_m25p80_add_pm25lv_flash_support.patch
revision 26615).

How do you want to proceed?



Send these PMC IDs as well with your Signed-off-by and Jonas's Signed-off-by
tag as well.


The patch is not from me, but from Gabor, added in r11894 (see
https://dev.openwrt.org/changeset/11894/).


Jonas


I had to integrate the original patch from Gabor, added in r11894 as described above, 
but also another one from Gabor too, added in r22861 (see 
https://dev.openwrt.org/changeset/22861/) to fix erase operation on the 
pm25lv flash chips, as in these chips, PMC is using a vendor-specific sector erase 
command.

Although it has been verified on many devices it wasn't the same case for the newer 
pm25lq032 chip, it was not until yesterday that I was able to find the corresponding 
device datasheet (http://www.issi.com/pdf/Pm25LQ032C.pdf) to confirm that the 
standard sector erase command was supported indeed. Actually, both the standard (20h) 
and the proprietary (D7h) sector erase commands are supported, see datasheet page 12.

This datasheet wasn't easy to find, since PMC has been renamed to Chingis Technology Corporation 
after a trademark dispute with PMC-Sierra (http://www.chingistek.com/tw/news_02.asp?seq=6), 
then acquired by ISSI 
(http://phx.corporate-ir.net/phoenix.zhtml?c=68026p=irol-newsArticleID=1716323).

The patch has been sent upstream to the mtd list with my Signed-off-by and 
Gabor's Signed-off-by tag as well:

http://lists.infradead.org/pipermail/linux-mtd/2013-April/046410.html

In the meantime, can someone apply the one-line patch to add support for the pm25lq032 to 
trunk in the different kernel versions, since it is commonly used as the default SPI 
Flash device in the small 3G RT5350F-based routers like the Hame MPR-A1, 
Poray M3, etc.?


Applied in r36296, thanks!
--
Florian
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] Add support for PMC PM25LQ032 SPI Flash in m25p80.c

2013-04-04 Thread Michel Stempin


Le 27/02/2013 13:46, Jonas Gorski a écrit :
 On 27 February 2013 13:25, Florian Fainelli flor...@openwrt.org wrote:
 Hello,


 On 01/31/2013 11:25 AM, Michel Stempin wrote:

 Hi John,

 Le 31/01/2013 09:07, John Crispin a écrit :

 Hi,

 please also send this patch upstream to the mtd list


 Ok, but I can't find any upstream patch for the surrounding PMC devices
 (pm25lv512 and pm25lv010) commited by jogo in revision 29986 (originally
 introduced by nbd in

 trunk/target/linux/generic/patches-2.6.39/084-mtd_m25p80_add_pm25lv_flash_support.patch
 revision 26615).

 How do you want to proceed?


 Send these PMC IDs as well with your Signed-off-by and Jonas's Signed-off-by
 tag as well.
 
 The patch is not from me, but from Gabor, added in r11894 (see
 https://dev.openwrt.org/changeset/11894/).
 
 
 Jonas

I had to integrate the original patch from Gabor, added in r11894 as described 
above, but also another one from Gabor too, added in r22861 (see 
https://dev.openwrt.org/changeset/22861/) to fix erase operation on the 
pm25lv flash chips, as in these chips, PMC is using a vendor-specific sector 
erase command.

Although it has been verified on many devices it wasn't the same case for the 
newer pm25lq032 chip, it was not until yesterday that I was able to find the 
corresponding device datasheet (http://www.issi.com/pdf/Pm25LQ032C.pdf) to 
confirm that the standard sector erase command was supported indeed. Actually, 
both the standard (20h) and the proprietary (D7h) sector erase commands are 
supported, see datasheet page 12.

This datasheet wasn't easy to find, since PMC has been renamed to Chingis 
Technology Corporation after a trademark dispute with PMC-Sierra 
(http://www.chingistek.com/tw/news_02.asp?seq=6), then acquired by ISSI 
(http://phx.corporate-ir.net/phoenix.zhtml?c=68026p=irol-newsArticleID=1716323).

The patch has been sent upstream to the mtd list with my Signed-off-by and 
Gabor's Signed-off-by tag as well:

http://lists.infradead.org/pipermail/linux-mtd/2013-April/046410.html

In the meantime, can someone apply the one-line patch to add support for the 
pm25lq032 to trunk in the different kernel versions, since it is commonly used 
as the default SPI Flash device in the small 3G RT5350F-based routers like 
the Hame MPR-A1, Poray M3, etc.?

- Michel
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] Add support for PMC PM25LQ032 SPI Flash in m25p80.c

2013-02-27 Thread Florian Fainelli

Hello,

On 01/31/2013 11:25 AM, Michel Stempin wrote:

Hi John,

Le 31/01/2013 09:07, John Crispin a écrit :

Hi,

please also send this patch upstream to the mtd list


Ok, but I can't find any upstream patch for the surrounding PMC devices
(pm25lv512 and pm25lv010) commited by jogo in revision 29986 (originally
introduced by nbd in
trunk/target/linux/generic/patches-2.6.39/084-mtd_m25p80_add_pm25lv_flash_support.patch
revision 26615).

How do you want to proceed?


Send these PMC IDs as well with your Signed-off-by and Jonas's 
Signed-off-by tag as well.

--
Florian
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] Add support for PMC PM25LQ032 SPI Flash in m25p80.c

2013-02-27 Thread Jonas Gorski
On 27 February 2013 13:25, Florian Fainelli flor...@openwrt.org wrote:
 Hello,


 On 01/31/2013 11:25 AM, Michel Stempin wrote:

 Hi John,

 Le 31/01/2013 09:07, John Crispin a écrit :

 Hi,

 please also send this patch upstream to the mtd list


 Ok, but I can't find any upstream patch for the surrounding PMC devices
 (pm25lv512 and pm25lv010) commited by jogo in revision 29986 (originally
 introduced by nbd in

 trunk/target/linux/generic/patches-2.6.39/084-mtd_m25p80_add_pm25lv_flash_support.patch
 revision 26615).

 How do you want to proceed?


 Send these PMC IDs as well with your Signed-off-by and Jonas's Signed-off-by
 tag as well.

The patch is not from me, but from Gabor, added in r11894 (see
https://dev.openwrt.org/changeset/11894/).


Jonas
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] Add support for PMC PM25LQ032 SPI Flash in m25p80.c

2013-01-31 Thread John Crispin

Hi,

please also send this patch upstream to the mtd list

-- MTD Maling List linux-...@lists.infradead.org

John

On 30/01/13 22:19, Michel Stempin wrote:

Add support for PMC PM25LQ032 (4MB) SPI Flash used in Hame MPR-A1 and clones.

Signed-off-by: Michel Stempinmichel.stem...@wanadoo.fr
---

Index: target/linux/generic/patches-3.8/474-mtd_mp25p80_add_pm25lq032.patch
===
--- target/linux/generic/patches-3.8/474-mtd_mp25p80_add_pm25lq032.patch
(revision 0)
+++ target/linux/generic/patches-3.8/474-mtd_mp25p80_add_pm25lq032.patch
(working copy)
@@ -0,0 +1,10 @@
+--- a/drivers/mtd/devices/m25p80.c
 b/drivers/mtd/devices/m25p80.c
+@@ -682,6 +682,7 @@
+   /* PMC -- pm25x blocks are 32K, sectors are 4K */
+   { pm25lv512, INFO(0, 0, 32 * 1024, 2, SECT_4K_PMC) },
+   { pm25lv010, INFO(0, 0, 32 * 1024, 4, SECT_4K_PMC) },
++  { pm25lq032, INFO(0x7F9D46, 0, 64 * 1024,  64, SECT_4K) },
+
+   /* Spansion -- single (large) sector size only, at least
+* for the chips listed here (without boot sectors).
Index: target/linux/generic/patches-3.6/474-mtd_mp25p80_add_pm25lq032.patch
===
--- target/linux/generic/patches-3.6/474-mtd_mp25p80_add_pm25lq032.patch
(revision 0)
+++ target/linux/generic/patches-3.6/474-mtd_mp25p80_add_pm25lq032.patch
(working copy)
@@ -0,0 +1,10 @@
+--- a/drivers/mtd/devices/m25p80.c
 b/drivers/mtd/devices/m25p80.c
+@@ -682,6 +682,7 @@
+   /* PMC -- pm25x blocks are 32K, sectors are 4K */
+   { pm25lv512, INFO(0, 0, 32 * 1024, 2, SECT_4K_PMC) },
+   { pm25lv010, INFO(0, 0, 32 * 1024, 4, SECT_4K_PMC) },
++  { pm25lq032, INFO(0x7F9D46, 0, 64 * 1024,  64, SECT_4K) },
+
+   /* Spansion -- single (large) sector size only, at least
+* for the chips listed here (without boot sectors).
Index: target/linux/generic/patches-3.7/474-mtd_mp25p80_add_pm25lq032.patch
===
--- target/linux/generic/patches-3.7/474-mtd_mp25p80_add_pm25lq032.patch
(revision 0)
+++ target/linux/generic/patches-3.7/474-mtd_mp25p80_add_pm25lq032.patch
(working copy)
@@ -0,0 +1,10 @@
+--- a/drivers/mtd/devices/m25p80.c
 b/drivers/mtd/devices/m25p80.c
+@@ -682,6 +682,7 @@
+   /* PMC -- pm25x blocks are 32K, sectors are 4K */
+   { pm25lv512, INFO(0, 0, 32 * 1024, 2, SECT_4K_PMC) },
+   { pm25lv010, INFO(0, 0, 32 * 1024, 4, SECT_4K_PMC) },
++  { pm25lq032, INFO(0x7F9D46, 0, 64 * 1024,  64, SECT_4K) },
+
+   /* Spansion -- single (large) sector size only, at least
+* for the chips listed here (without boot sectors).

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Add support for PMC PM25LQ032 SPI Flash in m25p80.c

2013-01-30 Thread Michel Stempin
Add support for PMC PM25LQ032 (4MB) SPI Flash used in Hame MPR-A1 and clones.

Signed-off-by: Michel Stempin michel.stem...@wanadoo.fr
---

Index: target/linux/generic/patches-3.8/474-mtd_mp25p80_add_pm25lq032.patch
===
--- target/linux/generic/patches-3.8/474-mtd_mp25p80_add_pm25lq032.patch
(revision 0)
+++ target/linux/generic/patches-3.8/474-mtd_mp25p80_add_pm25lq032.patch
(working copy)
@@ -0,0 +1,10 @@
+--- a/drivers/mtd/devices/m25p80.c
 b/drivers/mtd/devices/m25p80.c
+@@ -682,6 +682,7 @@
+   /* PMC -- pm25x blocks are 32K, sectors are 4K */
+   { pm25lv512, INFO(0, 0, 32 * 1024, 2, SECT_4K_PMC) },
+   { pm25lv010, INFO(0, 0, 32 * 1024, 4, SECT_4K_PMC) },
++  { pm25lq032, INFO(0x7F9D46, 0, 64 * 1024,  64, SECT_4K) },
+ 
+   /* Spansion -- single (large) sector size only, at least
+* for the chips listed here (without boot sectors).
Index: target/linux/generic/patches-3.6/474-mtd_mp25p80_add_pm25lq032.patch
===
--- target/linux/generic/patches-3.6/474-mtd_mp25p80_add_pm25lq032.patch
(revision 0)
+++ target/linux/generic/patches-3.6/474-mtd_mp25p80_add_pm25lq032.patch
(working copy)
@@ -0,0 +1,10 @@
+--- a/drivers/mtd/devices/m25p80.c
 b/drivers/mtd/devices/m25p80.c
+@@ -682,6 +682,7 @@
+   /* PMC -- pm25x blocks are 32K, sectors are 4K */
+   { pm25lv512, INFO(0, 0, 32 * 1024, 2, SECT_4K_PMC) },
+   { pm25lv010, INFO(0, 0, 32 * 1024, 4, SECT_4K_PMC) },
++  { pm25lq032, INFO(0x7F9D46, 0, 64 * 1024,  64, SECT_4K) },
+ 
+   /* Spansion -- single (large) sector size only, at least
+* for the chips listed here (without boot sectors).
Index: target/linux/generic/patches-3.7/474-mtd_mp25p80_add_pm25lq032.patch
===
--- target/linux/generic/patches-3.7/474-mtd_mp25p80_add_pm25lq032.patch
(revision 0)
+++ target/linux/generic/patches-3.7/474-mtd_mp25p80_add_pm25lq032.patch
(working copy)
@@ -0,0 +1,10 @@
+--- a/drivers/mtd/devices/m25p80.c
 b/drivers/mtd/devices/m25p80.c
+@@ -682,6 +682,7 @@
+   /* PMC -- pm25x blocks are 32K, sectors are 4K */
+   { pm25lv512, INFO(0, 0, 32 * 1024, 2, SECT_4K_PMC) },
+   { pm25lv010, INFO(0, 0, 32 * 1024, 4, SECT_4K_PMC) },
++  { pm25lq032, INFO(0x7F9D46, 0, 64 * 1024,  64, SECT_4K) },
+ 
+   /* Spansion -- single (large) sector size only, at least
+* for the chips listed here (without boot sectors).

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel