Re: [OpenWrt-Devel] [PATCH] Updated kernel patch in trunk to support brcm47xx BCMA NAND flash

2012-03-15 Thread Tathagata Das
Hi Hauke, Thanks for adding that patch. I tested it and it worked on my device. Regards, Tatha -Original Message- From: Hauke Mehrtens [mailto:ha...@hauke-m.de] Sent: 15 March 2012 05:02 To: Tathagata Das Cc: 'OpenWrt Development List'; 'Florian Fainelli' Subject: Re: [PATCH] Updated

Re: [OpenWrt-Devel] [PATCH] Updated kernel patch in trunk to support brcm47xx BCMA NAND flash

2012-03-14 Thread Hauke Mehrtens
On 03/12/2012 08:31 AM, Tathagata Das wrote: Hi Hauke, That code works on my device as well. Attached is the updated kernel patch to support brcm47xx BCMA NAND flash. Regards, Tatha -Original Message- From: Hauke Mehrtens [mailto:ha...@hauke-m.de] Sent: 10 March 2012 05:01

Re: [OpenWrt-Devel] [PATCH] Updated kernel patch in trunk to support brcm47xx BCMA NAND flash

2012-03-09 Thread Hauke Mehrtens
Hi Tatha, sorry for answering so late I am currently very busy. If I set CONFIG_BCMA_SFLASH=y and CONFIG_BCMA_NFLASH=y in the kernel config, which I want to do for the default image in OpenWrt the image will not work on by device with serial flash any more because bus-drv_cc.flash_type will

[OpenWrt-Devel] [PATCH] Updated kernel patch in trunk to support brcm47xx BCMA NAND flash

2012-02-29 Thread Tathagata Das
Hi, Attached is the updated kernel patch to support brcm47xx BCMA NAND flash. It contains fix of issue in write small length. I have used latest trunk source code to create this patch. I have tested it on Netgear WNR3500Lv2. Thanks all who gave comments. Regards, Tathagata

Re: [OpenWrt-Devel] [PATCH] Updated kernel patch in trunk to support brcm47xx BCMA NAND flash

2012-02-28 Thread Tathagata Das
Hi Florian, Please find my inline comments. Regards, Tatha -Original Message- From: Florian Fainelli [mailto:f.faine...@gmail.com] On Behalf Of Florian Fainelli Sent: 28 February 2012 14:54 To: Tathagata Das Cc: 'OpenWrt Development List'; 'Hauke Mehrtens' Subject: Re: [PATCH] Updated

Re: [OpenWrt-Devel] [PATCH] Updated kernel patch in trunk to support brcm47xx BCMA NAND flash

2012-02-28 Thread Tathagata Das
I have found one issue in write function. If the length of writing data is smaller than pagesize then it fails to write. I am now solving this issue. Regards, Tathagata -Original Message- From: Tathagata Das [mailto:tathag...@alumnux.com] Sent: 28 February 2012 12:20 To: 'OpenWrt

Re: [OpenWrt-Devel] [PATCH] Updated kernel patch in trunk to support brcm47xx BCMA NAND flash

2012-02-28 Thread Florian Fainelli
Hello Tatha, Le 02/28/12 07:50, Tathagata Das a écrit : Hi, Attached is the updated kernel patch to support brcm47xx BCMA NAND flash. I have used latest trunk source code to create this patch. I have tested it on Netgear WNR3500Lv2. Thanks to Florian and Hauke for their comments. And

Re: [OpenWrt-Devel] [PATCH] Updated kernel patch in trunk to support brcm47xx BCMA NAND flash

2012-02-27 Thread Tathagata Das
Hi Hauke, I have modified my patch according to your comments except in two cases. We want to build one image supporting devices with serial and with nand flash. This makes it just possible to support one flash type at a time. Right now flash type can be either NAND or SERIAL. If we want to

[OpenWrt-Devel] [PATCH] Updated kernel patch in trunk to support brcm47xx BCMA NAND flash

2012-02-27 Thread Tathagata Das
Hi, Attached is the updated kernel patch to support brcm47xx BCMA NAND flash. I have used latest trunk source code to create this patch. I have tested it on Netgear WNR3500Lv2. Thanks to Florian and Hauke for their comments. Regards, Tathagata tathag...@alumnux.com

Re: [OpenWrt-Devel] [PATCH] Updated kernel patch in trunk to support brcm47xx BCMA NAND flash

2012-02-25 Thread Hauke Mehrtens
Hi Tathagata Das, I had a look at bthe patch and added some comments, if bcma_nflash_init is not needed any more where is struct bcma_nflash initilized? Hauke On 02/23/2012 02:27 PM, Tathagata Das wrote: Hi, Attached is the updated kernel patch to support brcm47xx BCMA NAND flash. I have

[OpenWrt-Devel] [PATCH] Updated kernel patch in trunk to support brcm47xx BCMA NAND flash

2012-02-23 Thread Tathagata Das
Hi, Attached is the updated kernel patch to support brcm47xx BCMA NAND flash. I have used latest trunk source code to create this patch. Thanks to Florian and Hauke for their comments. Regards, Tathagata tathag...@alumnux.com 9991-bcm47xx-bcma-nandflash.patch Description: Binary data

Re: [OpenWrt-Devel] [PATCH] Updated kernel patch in trunk to support brcm47xx BCMA NAND flash

2012-02-15 Thread Tathagata Das
] Sent: 14 February 2012 15:16 To: tathag...@alumnux.com; OpenWrt Development List Cc: Florian Fainelli Subject: Re: [OpenWrt-Devel] [PATCH] Updated kernel patch in trunk to support brcm47xx BCMA NAND flash On 01/12/2012 02:48 PM, Tathagata Das wrote: Hi Florian, Thanks a lot for your comment

Re: [OpenWrt-Devel] [PATCH] Updated kernel patch in trunk to support brcm47xx BCMA NAND flash

2012-01-13 Thread Hauke Mehrtens
Hi Tathagata, My device uses serial flash and not nand flash. From the Broadcom SDK I got the following code to detect a device using nflash. When using this code in drivers/bcma/driver_mips.c instead of the detection you had in it before bcma do not want to initialize nflash for my device and it

Re: [OpenWrt-Devel] [PATCH] Updated kernel patch in trunk to support brcm47xx BCMA NAND flash

2012-01-12 Thread Hauke Mehrtens
On 01/12/2012 04:13 AM, tathagata wrote: Hi Hauke, I will modify it and send updated patch. Which hardware are you using ? Regards, Tathagata Hi Tathagata, I am using a Netgear WNDR3400 with an BCM4716 with Serial flash. In the evening I will look where exactly it fails. Hauke On

Re: [OpenWrt-Devel] [PATCH] Updated kernel patch in trunk to support brcm47xx BCMA NAND flash

2012-01-12 Thread Tathagata Das
Hi Hauke, I guess some NAND flash specific code are not under NAND flash tag. Regards, Tatha On 01/12/2012 04:51 PM, Hauke Mehrtens wrote: On 01/12/2012 04:13 AM, tathagata wrote: Hi Hauke, I will modify it and send updated patch. Which hardware are you using ? Regards, Tathagata Hi

Re: [OpenWrt-Devel] [PATCH] Updated kernel patch in trunk to support brcm47xx BCMA NAND flash

2012-01-12 Thread Florian Fainelli
Hello Tathagata, On 01/10/12 13:00, Tathagata Das wrote: Hi, Attached is the updated kernel patch to support brcm47xx BCMA NAND flash. This patch uses driver/mtd/nand/nand_base.c. I have used latest trunk source code to create this patch. I have inlined some comments, how much throughput do

Re: [OpenWrt-Devel] [PATCH] Updated kernel patch in trunk to support brcm47xx BCMA NAND flash

2012-01-12 Thread Tathagata Das
Hi Florian, Thanks a lot for your comment. I will update the patch accordingly. Regards, Tathagata On 01/12/2012 06:40 PM, Florian Fainelli wrote: Hello Tathagata, On 01/10/12 13:00, Tathagata Das wrote: Hi, Attached is the updated kernel patch to support brcm47xx BCMA NAND flash. This

Re: [OpenWrt-Devel] [PATCH] Updated kernel patch in trunk to support brcm47xx BCMA NAND flash

2012-01-11 Thread Hauke Mehrtens
On 01/10/2012 01:00 PM, Tathagata Das wrote: Hi, Attached is the updated kernel patch to support brcm47xx BCMA NAND flash. This patch uses driver/mtd/nand/nand_base.c. I have used latest trunk source code to create this patch. Regards, Tathagata tathag...@alumnux.com Hi Tathagata, your

Re: [OpenWrt-Devel] [PATCH] Updated kernel patch in trunk to support brcm47xx BCMA NAND flash

2012-01-11 Thread tathagata
Hi Hauke, I will modify it and send updated patch. Which hardware are you using ? Regards, Tathagata On 12.01.2012 03:41, Hauke Mehrtens wrote: On 01/10/2012 01:00 PM, Tathagata Das wrote: Hi, Attached is the updated kernel patch to support brcm47xx BCMA NAND flash. This patch uses

Re: [OpenWrt-Devel] [PATCH] Updated kernel patch in trunk to support brcm47xx BCMA NAND flash

2011-12-22 Thread Tathagata Das
Hi, Thanks for your feedback. I will modify the patch. Also I am trying to use driver/mtd/nand/nand_base.c as much as possible. I will submit modify patch quickly. Regards, Tathagata On 12/23/2011 03:28 AM, Hauke Mehrtens wrote: On 12/14/2011 05:51 AM, Tathagata Das wrote: Hi, Attached

[OpenWrt-Devel] [PATCH] Updated kernel patch in trunk to support brcm47xx BCMA NAND flash

2011-12-13 Thread Tathagata Das
Hi, Attached is the updated kernel patch to support brcm47xx BCMA NAND flash. I have removed SSB related code from this patch and I have used latest trunk source code to create this patch. Regards, Tathagatatathag...@alumnux.com diff -Naur a/arch/mips/bcm47xx/bus.c b/arch/mips/bcm47xx/bus.c