Commit Graph

459 Commits

Author SHA1 Message Date
SPRESENSE
4b1fddec8a drivers/mtd/smart.c: Recover the missing link of directory entry
When creating the next chain of directory entries, (1) add the position
of next entry to the current sector, and then (2) update the sector of
next entry. If the power is turned off between (1) and (2), the next
entry will not be found, and the chain of directory entries will break.
It causes the SmartFS file system corruption, and we will not be able
to add files.

To avoid this issue, in checking the filesystem by smart_fsck_directory,
if the sector of next entry does not exist, update the sector of
directory entry to invalidate the field of next entry.
2021-05-19 11:02:50 +02:00
David Sidrane
8f8befaa25 mtd:ramtron Use inttypes in printing macros 2021-05-03 16:58:47 -04:00
jturnsek
f57ff30545 Removing FLexSPI NOR driver 2021-04-12 17:22:14 -03:00
jturnsek
7453e76d98 FlexSPI NOR driver 2021-04-12 11:35:44 -03:00
Alin Jerpelea
231b8518b7 NuttX: Ken Pettit: update licenses to Apache
Ken Pettit has submitted the ICLA and we can migrate the licenses
 to Apache.

Sebastien Lorquet has submitted the ICLA and we can migrate the licenses
 to Apache.

Gregory Nutt has submitted the SGA and we can migrate the licenses
 to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-04-10 06:42:19 -05:00
Xiang Xiao
f1e821833b mtd/ftl: Don't call ferr if return value equals -ENOTTY
MIRTOS4BES-22

since -ENOTTY is an expected code to indicate IOCTL isn't supported

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I62cf58c514be696327ad769ab2f35099154bcb42
2021-04-06 22:36:09 +01:00
Alin Jerpelea
b4a33b5ec0 NuttX: Uros Platise: update licenses to Apache
Uros Platise has submitted the ICLA and we can migrate the licenses
 to Apache.

David Sidrane has submitted the ICLA and we can migrate the licenses
 to Apache.

Bob Feretich has submitted the ICLA and we can migrate the licenses
 to Apache.

Gregory Nutt has submitted the SGA and we can migrate the licenses
 to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-04-01 12:13:12 -05:00
Alin Jerpelea
da7dfd06b3 drivers: Author David Sidrane: update licenses to Apache
David Sidrane has submitted the ICL and we can migrate the licenses
 to Apache.

Gregory Nutt has submitted the SGA and we can migrate the licenses
 to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-03-22 19:28:38 -07:00
Gustavo Henrique Nihei
330eff36d7 sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
Alin Jerpelea
e5b6305f4a drivers: Author Gregory Nutt: update licenses to Apache
Gregory Nutt has submitted the SGA and we can migrate the licenses
 to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-03-04 18:32:27 -08:00
Xiang Xiao
c8d4a4c76a mtd/progmem: Add up_progmem_read callback guarded by ARCH_HAVE_PROGMEM_READ
since sometime platform code need do some special action during memcpy

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Id108ef4232376feab3e37e9b3aee9a7927a03bd4
2021-03-03 13:47:59 -08:00
Xiang Xiao
0aa78ccc81 mtd/progmem: Let MTD_PROGMEM depend on ARCH_HAVE_PROGMEM
and remove the reference of CONFIG_ARCH_HAVE_PROGMEM from code

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I89a73f138d54718ee8bc9345958675d7a2a34ba8
2021-03-03 13:47:59 -08:00
Gustavo Henrique Nihei
55d66f60a3 drivers: Fix typos reported by codespell 2021-02-25 18:57:18 -08:00
Byron Ellacott
9a1b726bae fs: change geometry types from size_t to blkcnt_t and blksize_t
This change reflects that the geometry isn't related to the largest
allocatable unit on the platform.

Calls to read and write block devices are also affected and have
been updated.
2021-02-18 20:38:22 -08:00
Alexander Vasiljev
dbec1cf694 drivers:mtd:smart.c: entryname is declared and should be under ifdef 2021-02-04 10:05:59 -08:00
Alexander Vasiljev
9146878dad drivers:mtd:w25qxxxjv.c: use different protect bits and address lengths for different chips 2021-02-04 10:05:59 -08:00
Alexander Vasiljev
96cbd1d8a1 drivers: mtd: w25qxxxjv.c : W25Q256's sector count is 8192 2021-01-29 06:47:03 -08:00
Alin Jerpelea
6d786bedb5 drivers: mtd: mx35.c: mix case identifier fix
nxstyle fix for mix case identifier.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-01-27 18:40:00 -08:00
Alin Jerpelea
2d8b193df4 drivers: mtd: fix nxstyle errors
Fix nxstyle errors to pass the CI errors.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-01-27 18:40:00 -08:00
Alin Jerpelea
95adb15824 drivers: mtd: nxstyle errors fix
Fixed to pass the nxstyle CI erros

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-01-27 18:40:00 -08:00
Alin Jerpelea
822fbe5c10 drivers: mtd: mtd_nandscheme: mix case identifier fix
nxstyle fix for mix case identifier.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-01-27 18:40:00 -08:00
Xiang Xiao
0536953ded Kernel module should prefer functions with nx/kmm prefix
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-01-13 08:57:58 +01:00
Juha Niskanen
93991670af drivers/mtd/w25.c: fix finfo format warning
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2020-12-13 08:52:29 -06:00
Juha Niskanen
66bdec6754 drivers/mtd/gd25.c: fix finfo format warning
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2020-12-13 08:52:29 -06:00
YAMAMOTO Takashi
6c269e8360 drivers/mtd/mtd_onfi.c: Fix syslog formats 2020-12-06 07:41:37 -06:00
YAMAMOTO Takashi
00bc0ff6ba drivers/mtd/sst25.c: Fix a syslog format 2020-12-05 08:13:32 -06:00
YAMAMOTO Takashi
012a34aef7 drivers/mtd/sst25.c: Appease nxstyle 2020-12-05 08:13:32 -06:00
YAMAMOTO Takashi
d1b5ab99ec drivers/mtd/sector512.c: Fix syslog formats 2020-12-05 08:13:32 -06:00
YAMAMOTO Takashi
cb52176615 drivers/mtd/sector512.c: Appease nxstyle 2020-12-05 08:13:32 -06:00
yjdwbj
6aba444359 Added: MT29F2G Nand Flash block driver for sam4s-xplained-pro.
Fixed: SDIO Interface hanging after inserted SD Card.

Disabled the CONFIG_SYSTEMTICK_EXTCLK, using nxsig_usleep instead of usleep
2020-12-04 22:41:46 -08:00
YAMAMOTO Takashi
f71b44e266 drivers/mtd/n25qxxx.c: Fix syslog formats 2020-12-02 02:53:47 -06:00
YAMAMOTO Takashi
55590318a4 drivers/mtd/n25qxxx.c: Appease nxstyle 2020-12-02 02:53:47 -06:00
YAMAMOTO Takashi
5749599b0b drivers/mtd/mx25rxx.c: Fix syslog formats 2020-12-02 02:53:47 -06:00
YAMAMOTO Takashi
f97f6a6a36 drivers/mtd/mx25rxx.c: Appease nxstyle 2020-12-02 02:53:47 -06:00
YAMAMOTO Takashi
57f45a07c4 drivers/mtd/at25.c: Fix a syslog format 2020-11-30 05:28:17 -06:00
YAMAMOTO Takashi
cac4f384e5 drivers/mtd/at25.c: Appease nxstyle 2020-11-30 05:28:17 -06:00
YAMAMOTO Takashi
819e13888c drivers/mtd/at24xx.c: Fix a syslog format 2020-11-30 05:28:17 -06:00
YAMAMOTO Takashi
99f545f5c3 drivers/mtd/at24xx.c: Appease nxstyle 2020-11-30 05:28:17 -06:00
YAMAMOTO Takashi
723f590345 drivers/mtd/m25px.c: Fix a syslog format 2020-11-25 05:11:26 -08:00
YAMAMOTO Takashi
ab7ae96a1e drivers/mtd/m25px.c: Appease nxstyle 2020-11-25 05:11:26 -08:00
YAMAMOTO Takashi
7f32cfa720 drivers/mtd/mtd_rwbuffer.c: Fix a syslog format 2020-11-23 05:00:10 -08:00
YAMAMOTO Takashi
5b25cf8e47 drivers/mtd/mtd_rwbuffer.c: Appease nxstyle 2020-11-23 05:00:10 -08:00
YAMAMOTO Takashi
ce228e5de5 drivers/mtd/smart.c: Fix syslog formats 2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
2aaee783c9 drivers/mtd/sst25xx.c: Fix syslog formats 2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
3ca8e3ff37 drivers/mtd/sst25xx.c: Appease nxstyle 2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
a11c987699 drivers/mtd/smart.c: Fix syslog formats 2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
c807ad9220 drivers/mtd/smart.c: Appease nxstyle 2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
b48408cdeb drivers/mtd/ftl.c: Fix syslog formats 2020-11-21 19:38:32 -08:00
YAMAMOTO Takashi
b286902266 drivers/mtd/ftl.c: Fix syslog formats 2020-11-20 22:22:53 -08:00
Juha Niskanen
23495a7fa2 drivers/mtd/mtd_progmem.c: fix progmem_log2 parameter type to match prototype
If size_t != uint32_t, this can give a build error:

 mtd/mtd_progmem.c:134:16: error: conflicting types for 'progmem_log2'
   134 | static int32_t progmem_log2(uint32_t blocksize)
       |                ^~~~~~~~~~~~
 mtd/mtd_progmem.c:82:16: note: previous declaration of 'progmem_log2' was here
    82 | static int32_t progmem_log2(size_t blocksize);
       |                ^~~~~~~~~~~~
 Makefile:118: recipe for target 'mtd_progmem.o' failed

Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2020-11-19 07:43:07 -08:00