- May 24, 2011
-
-
Tadashi Abe authored
This is a trivial patch which removes unnecessary assignment of chip->state in put_chip(). It's duplicated. Signed-off-by:
Tadashi Abe <tabe@mvista.com> Acked-by:
Joakim Tjernlund <joakim.tjernlund@transmode.se> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
Tadashi Abe authored
cfi erase command hangs up when erase and read contention occurs. If read runs at the same address as erase operation, read issues Erase-Suspend via get_chip() and the erase goes into sleep in wait queue. But in this case, read operation exits by time-out without waking it up. I think the other variants (0001, 0020 and lpddr) have the same problem too. Tested and verified the patch only on CFI-0002 flash, though. Signed-off-by:
Tadashi Abe <tabe@mvista.com> Acked-by:
Joakim Tjernlund <joakim.tjernlund@transmode.se> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
Gernot Hoyler authored
This patch adds CFI 1.5 support for the new Spansion S29GL-S device family. For details, see the data sheet on the Spansion web site: http://www.spansion.com/Support/Datasheets/S29GL_128S_01GS_00_02_e.pdf Signed-off-by:
Gernot Hoyler <Gernot.Hoyler@spansion.com> Acked-by:
Guillaume LECERF <glecerf@gmail.com> Signed-off-by:
Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
- Mar 31, 2011
-
-
Lucas De Marchi authored
Fixes generated by 'codespell' and manually reviewed. Signed-off-by:
Lucas De Marchi <lucas.demarchi@profusion.mobi>
-
- Mar 11, 2011
-
-
Steffen Sledz authored
Signed-off-by:
Steffen Sledz <sledz@dresearch.de> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
Anatolij Gustschin authored
When initializing mtd->writebufsize, we must take into account possible flash chip interleaving. Wrong writebufsize initialization caused UBIFS recovery issues resulting in unmountable UBIFS file system on NOR flash partitions. Signed-off-by:
Anatolij Gustschin <agust@denx.de> Acked-by:
Guillaume LECERF <glecerf@gmail.com> Signed-off-by:
Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
Joakim Tjernlund authored
As inval_cache_and_wait_for_operation() drop and reclaim the lock to invalidate the cache, some other thread may suspend the operation before reaching the for(;;) loop. Therefore the loop must start with checking the chip->state before reading status from the chip. Signed-off-by:
Joakim Tjernlund <Joakim.Tjernlund@transmode.se> Acked-by:
Michael Cashwell <mboards@prograde.net> Acked-by:
Stefan Bigler <stefan.bigler@keymile.com> Signed-off-by:
Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com> Cc: stable@kernel.org
-
Antony Pavlov authored
In the commit 08968041 (mtd: cfi_cmdset_0002: make sector erase command variable) introdused a field sector_erase_cmd. In the same commit initialisation of cfi->sector_erase_cmd made in cfi_chip_setup() (file drivers/mtd/chips/cfi_probe.c), so the CFI chip has no problem: ... cfi->cfi_mode = CFI_MODE_CFI; cfi->sector_erase_cmd = CMD(0x30); ... But for the JEDEC chips this initialisation is not carried out, so the JEDEC chips have sector_erase_cmd == 0. This patch adds the missing initialisation. Signed-off-by:
Antony Pavlov <antony@niisi.msk.ru> Acked-by:
Guillaume LECERF <glecerf@gmail.com> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com> CC: stable@kernel.org
-
Antony Pavlov authored
In the following commit, we'll need to use the CMD() macro in order to fix the initialisation of the sector_erase_cmd field. That requires the local variable to be called 'cfi', so change it first in a simple patch. Signed-off-by:
Antony Pavlov <antony@niisi.msk.ru> Acked-by:
Guillaume LECERF <glecerf@gmail.com> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com> CC: stable@kernel.org
-
- Jan 06, 2011
-
-
Anatolij Gustschin authored
Initialize mtd->writebufsize to the value obtained by CFI query command at probe time. Signed-off-by:
Anatolij Gustschin <agust@denx.de> Signed-off-by:
Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
Guillaume LECERF authored
These chips report CFI v3.3 [1], so patch them on the fly to the more correct v1.3. Discussed and tested by the OpenWRT people [2]. [1] http://www.samsung.com/global/system/business/semiconductor/product/2007/6/11/NORFlash/32Mbit/K8D3216UBC/ds_K8D3x16UxC_rev17.pdf [2] https://dev.openwrt.org/ticket/866 Signed-off-by:
Guillaume LECERF <glecerf@gmail.com> Acked-by:
Wolfram Sang <w.sang@pengutronix.de> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
Guillaume LECERF authored
These chips report CFI v0.0 [1], so extend cfi_fixup_major_minor() to patch all Samsung chips from 0.0 to 1.0. Discussed and tested by the OpenWRT people [2]. [1] http://www.samsung.com/global/system/business/semiconductor/product/2007/6/11/NORFlash/64Mbit/K8D6316UTM/ds_K8D6x16UxM_rev16.pdf [2] https://dev.openwrt.org/ticket/7348 Signed-off-by:
Guillaume LECERF <glecerf@gmail.com> Acked-by:
Wolfram Sang <w.sang@pengutronix.de> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
- Dec 03, 2010
-
-
Guillaume LECERF authored
The 'param' parameter has never been used since its introduction, so simply remove it. Signed-off-by:
Guillaume LECERF <glecerf@gmail.com> Signed-off-by:
Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
- Oct 26, 2010
-
-
David Woodhouse authored
This reverts commit 432dc821. The individual CFI geometry options were carefully set up to get sane default values if the CFI_ADV_OPTIONS wasn't set, and it wasn't appropriate to move them into an if/endif block. Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
Guillaume LECERF authored
Some old SST chips use 0x50 as sector erase command, instead of 0x30. Make this value variable to handle such chips. Signed-off-by:
Guillaume LECERF <glecerf@gmail.com> Acked-by:
Wolfram Sang <w.sang@pengutronix.de> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
Guillaume LECERF authored
Add support for SST38VF640x chips in CFI mode. Signed-off-by:
Guillaume LECERF <glecerf@gmail.com> Signed-off-by:
yidong zhang <zhangyd6@gmail.com> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
Guillaume LECERF authored
Signed-off-by:
Guillaume LECERF <glecerf@gmail.com> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
Guillaume LECERF authored
Signed-off-by:
Guillaume LECERF <glecerf@gmail.com> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
- Oct 24, 2010
-
-
Wolfram Sang authored
- remove disabled code (hasn't been touched since the beginning of git and should be reimplemented if really needed) - convert remaining c++-comments to plain c-style Signed-off-by:
Wolfram Sang <w.sang@pengutronix.de> Acked-by:
Guillaume LECERF <glecerf@gmail.com> Signed-off-by:
Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
H Hartley Sweeten authored
Remove the MTD!=n dependency since that is handled by drivers/mtd/Kconfig. Simplify the dependency checks for mtd/chips by using if/endif blocks. Remove all default n since that is the Kconfig default. Signed-off-by:
H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by:
Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
- Oct 18, 2010
-
-
Justin P. Mattock authored
The patch below updates broken web addresses in the kernel Signed-off-by:
Justin P. Mattock <justinmattock@gmail.com> Cc: Maciej W. Rozycki <macro@linux-mips.org> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Finn Thain <fthain@telegraphics.com.au> Cc: Randy Dunlap <rdunlap@xenotime.net> Cc: Matt Turner <mattst88@gmail.com> Cc: Dimitry Torokhov <dmitry.torokhov@gmail.com> Cc: Mike Frysinger <vapier.adi@gmail.com> Acked-by:
Ben Pfaff <blp@cs.stanford.edu> Acked-by:
Hans J. Koch <hjk@linutronix.de> Reviewed-by:
Finn Thain <fthain@telegraphics.com.au> Signed-off-by:
Jiri Kosina <jkosina@suse.cz>
-
- Aug 08, 2010
-
-
David Woodhouse authored
Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
- Aug 06, 2010
-
-
Guillaume LECERF authored
The Spansion S29WS-P device family uses CFI version 1.4 [1]. Consider it as a valid version. [1] http://www.spansion.com/Support/Datasheets/s29ws-p_00_a12_e.pdf Signed-off-by:
Guillaume LECERF <glecerf@gmail.com> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
Stefani Seibold authored
This patch prevent to schedule while atomic by changing the flchip_shared spinlock into a mutex. This should be save since no atomic path will use this lock. It was suggested by Arnd Bergmann and Vasiliy Kulikov. Signed-off-by:
Stefani Seibold <stefani@seibold.net> Signed-off-by:
Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
- Aug 04, 2010
-
-
Guillaume LECERF authored
Valid primary extension versions are: 1.0, 1.1, 1.2, 1.3 [1][2]. Fix the check in cfi_cmdset_0002 accordingly. [1] http://www.amd.com/us-en/assets/content_type/DownloadableAssets/cfi_r20.pdf, page 19 [2] http://www.amd.com/us-en/assets/content_type/DownloadableAssets/cfi_100_20011201.pdf Signed-off-by:
Florian Fainelli <florian@openwrt.org> Signed-off-by:
Guillaume LECERF <glecerf@gmail.com> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
- Aug 02, 2010
-
-
Guillaume LECERF authored
Signed-off-by:
Guillaume LECERF <glecerf@gmail.com> Signed-off-by:
Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
Richard Cochran authored
This patchs adds a way for user space programs to find out whether a flash sector is locked. An optional driver method in the mtd_info struct provides the information. Signed-off-by:
Richard Cochran <richard.cochran@omicron.at> Signed-off-by:
Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
- May 20, 2010
-
-
Guillaume LECERF authored
Tested with W19L320SBT9C [1]. [1] http://www.datasheetarchive.com/pdf-datasheets/Datasheets-40/DSA-795343.pdf [dwmw2: Fix MODULE_ALIAS and linkage] Signed-off-by:
Obinou <obconseil@gmail.com> Signed-off-by:
Guillaume LECERF <glecerf@gmail.com> Acked-by:
Florian Fainelli <florian@openwrt.org> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
David Woodhouse authored
Signed-off-by:
Guillaume LECERF <glecerf@gmail.com> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
- May 14, 2010
-
-
David Woodhouse authored
Doh. Pointed out by Guillaume LECERF <glecerf@gmail.com> since I managed to miss it in my test builds. S'what I get for hacking at 2am, I suppose. Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
- May 13, 2010
-
-
Wolfram Sang authored
Due to a broken CFI, they have to be added to jedec_probe. Signed-off-by:
Wolfram Sang <w.sang@pengutronix.de> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
Artem Bityutskiy authored
Nothing very important, this just makes git am stop producing warnings. Signed-off-by:
Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
Wolfram Sang authored
Factor out old manufacturers and use the generic ones from cfi.h Signed-off-by:
Wolfram Sang <w.sang@pengutronix.de> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
Guillaume LECERF authored
Signed-off-by:
Guillaume LECERF <glecerf@gmail.com> Reviewed-by:
Wolfram Sang <w.sang@pengutronix.de> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
Guillaume LECERF authored
This patch adds support for detecting SST 39VF32xxB and 39VF64xxB chips in CFI mode. Signed-off-by:
Guillaume LECERF <glecerf@gmail.com> Reviewed-by:
Wolfram Sang <w.sang@pengutronix.de> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
Guillaume LECERF authored
SST 39VF{16,32}xx chips use the 0x0701 command set, fully compatible with the AMD one. This patch adds support for detecting them in CFI mode. Signed-off-by:
Guillaume LECERF <glecerf@gmail.com> Reviewed-by:
Wolfram Sang <w.sang@pengutronix.de> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
David Woodhouse authored
Accept values of 2-5 for TopBottom, where the newly-added 4 and 5 values mean a uniform layout. It does indicate WP layout but we don't handle that. Also don't say "broken" when swapping erase regions in a top-boot chip. That got retrospectively documented in the spec. Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
Guillaume LECERF authored
After looking at AMD's CFI specification [1], both of the extended query tables are optional. Thus, it looks like relying that at least one of those tables exist is a bug in cfi_cmdset_0002. This patch inverts the logic and checks for unlock function pointers before exiting on error. This approach leaves place to add a call to a fixup function to try to handle chips compatible with the early AMD specification from 1995 [2]. [1] http://www.amd.com/us-en/assets/content_type/DownloadableAssets/cfi_r20.pdf [2] http://noel.feld.cvut.cz/hw/amd/20158a.pdf Signed-off-by:
Guillaume LECERF <glecerf@gmail.com> Reviewed-by:
Wolfram Sang <w.sang@pengutronix.de> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
Guillaume LECERF authored
Use P_ID_* definitions already in include/linux/mtd/cfi.h instead of the hardcoded values. Make the code more readable. Signed-off-by:
Guillaume LECERF <glecerf@gmail.com> Reviewed-by:
Wolfram Sang <w.sang@pengutronix.de> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-
Guillaume LECERF authored
SST 39VF160x and 39VF320x chips use vendorname id 0x0701 and alternative unlock addresses. Add support for them in cfi_probe.c. Signed-off-by:
Guillaume LECERF <glecerf@gmail.com> Reviewed-by:
Wolfram Sang <w.sang@pengutronix.de> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
-