10 Jan, 2012
2 commits
-
Signed-off-by: Artem Bityutskiy
Signed-off-by: David Woodhouse -
This patch allows each CFI device map to use its own endianness. The
globally defined CFI endianness (CONFIG_MTD_CFI_NOSWAP,
CONFIG_MTD_CFI_BE_BYTE_SWAP or CONFIG_MTD_CFI_LE_BYTE_SWAP) becomes the
default value which can be overridden by a driver for a particular device.Signed-off-by: Aaron Sierra
Signed-off-by: Artem Bityutskiy
Signed-off-by: David Woodhouse
11 Sep, 2011
3 commits
-
Signed-off-by: Brian Norris
Signed-off-by: Artem Bityutskiy -
Start moving away from the MTD_DEBUG_LEVEL messages. The dynamic
debugging feature is a generic kernel feature that provides more
flexibility.(See Documentation/dynamic-debug-howto.txt)
Also fix some punctuation, indentation, and capitalization that went
along with the affected lines.Signed-off-by: Brian Norris
Signed-off-by: Artem Bityutskiy -
Therefor -> Therefore
[Intern], [Internal] -> [INTERN]
[REPLACABLE] -> [REPLACEABLE]
syndrom, syndom -> syndrome
ecc -> ECC
buswith -> buswidth
endianess -> endianness
dont -> don't
occures -> occurs
independend -> independent
wihin -> within
erease -> erase
blockes -> blocks
...Signed-off-by: Brian Norris
Signed-off-by: Artem Bityutskiy
25 May, 2011
3 commits
-
This is a trivial patch which removes unnecessary assignment of chip->state
in put_chip(). It's duplicated.Signed-off-by: Tadashi Abe
Acked-by: Joakim Tjernlund
Signed-off-by: David Woodhouse -
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
Acked-by: Joakim Tjernlund
Signed-off-by: David Woodhouse -
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.pdfSigned-off-by: Gernot Hoyler
Acked-by: Guillaume LECERF
Signed-off-by: Artem Bityutskiy
Signed-off-by: David Woodhouse
31 Mar, 2011
1 commit
-
Fixes generated by 'codespell' and manually reviewed.
Signed-off-by: Lucas De Marchi
11 Mar, 2011
5 commits
-
Signed-off-by: Steffen Sledz
Signed-off-by: David Woodhouse -
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
Acked-by: Guillaume LECERF
Signed-off-by: Artem Bityutskiy
Signed-off-by: David Woodhouse -
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
Acked-by: Michael Cashwell
Acked-by: Stefan Bigler
Signed-off-by: Artem Bityutskiy
Signed-off-by: David Woodhouse
Cc: stable@kernel.org -
In the commit 08968041bef437ec363623cd3218c2b083537ada
(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
Acked-by: Guillaume LECERF
Signed-off-by: David Woodhouse
CC: stable@kernel.org -
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
Acked-by: Guillaume LECERF
Signed-off-by: David Woodhouse
CC: stable@kernel.org
06 Jan, 2011
3 commits
-
Initialize mtd->writebufsize to the value obtained
by CFI query command at probe time.Signed-off-by: Anatolij Gustschin
Signed-off-by: Artem Bityutskiy
Signed-off-by: David Woodhouse -
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/866Signed-off-by: Guillaume LECERF
Acked-by: Wolfram Sang
Signed-off-by: David Woodhouse -
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/7348Signed-off-by: Guillaume LECERF
Acked-by: Wolfram Sang
Signed-off-by: David Woodhouse
04 Dec, 2010
1 commit
-
The 'param' parameter has never been used since its introduction, so
simply remove it.Signed-off-by: Guillaume LECERF
Signed-off-by: Artem Bityutskiy
Signed-off-by: David Woodhouse
30 Oct, 2010
1 commit
-
Conflicts:
drivers/mtd/mtd_blkdevs.cMerge Grant's device-tree bits so that we can apply the subsequent fixes.
Signed-off-by: David Woodhouse
26 Oct, 2010
5 commits
-
This reverts commit 432dc821c90114f9b0e00f6752a700e937516ade.
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
-
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
Acked-by: Wolfram Sang
Signed-off-by: David Woodhouse -
Add support for SST38VF640x chips in CFI mode.
Signed-off-by: Guillaume LECERF
Signed-off-by: yidong zhang
Signed-off-by: David Woodhouse -
Signed-off-by: Guillaume LECERF
Signed-off-by: David Woodhouse -
Signed-off-by: Guillaume LECERF
Signed-off-by: David Woodhouse
25 Oct, 2010
2 commits
-
- 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-styleSigned-off-by: Wolfram Sang
Acked-by: Guillaume LECERF
Signed-off-by: Artem Bityutskiy
Signed-off-by: David Woodhouse -
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
Signed-off-by: Artem Bityutskiy
Signed-off-by: David Woodhouse
18 Oct, 2010
1 commit
-
The patch below updates broken web addresses in the kernel
Signed-off-by: Justin P. Mattock
Cc: Maciej W. Rozycki
Cc: Geert Uytterhoeven
Cc: Finn Thain
Cc: Randy Dunlap
Cc: Matt Turner
Cc: Dimitry Torokhov
Cc: Mike Frysinger
Acked-by: Ben Pfaff
Acked-by: Hans J. Koch
Reviewed-by: Finn Thain
Signed-off-by: Jiri Kosina
09 Aug, 2010
1 commit
-
Signed-off-by: David Woodhouse
06 Aug, 2010
2 commits
-
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
Signed-off-by: David Woodhouse -
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
Signed-off-by: Artem Bityutskiy
Signed-off-by: David Woodhouse
04 Aug, 2010
1 commit
-
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.pdfSigned-off-by: Florian Fainelli
Signed-off-by: Guillaume LECERF
Signed-off-by: David Woodhouse
02 Aug, 2010
2 commits
-
Signed-off-by: Guillaume LECERF
Signed-off-by: Artem Bityutskiy
Signed-off-by: David Woodhouse -
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
Signed-off-by: Artem Bityutskiy
Signed-off-by: David Woodhouse
20 May, 2010
2 commits
-
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
Signed-off-by: Guillaume LECERF
Acked-by: Florian Fainelli
Signed-off-by: David Woodhouse -
Signed-off-by: Guillaume LECERF
Signed-off-by: David Woodhouse
14 May, 2010
5 commits
-
Doh. Pointed out by Guillaume LECERF 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
-
Due to a broken CFI, they have to be added to jedec_probe.
Signed-off-by: Wolfram Sang
Signed-off-by: David Woodhouse -
Nothing very important, this just makes git am stop producing warnings.
Signed-off-by: Artem Bityutskiy
Signed-off-by: David Woodhouse -
Factor out old manufacturers and use the generic ones from cfi.h
Signed-off-by: Wolfram Sang
Signed-off-by: David Woodhouse -
Signed-off-by: Guillaume LECERF
Reviewed-by: Wolfram Sang
Signed-off-by: David Woodhouse