Skip to content

Commit 6a0a17e

Browse files
committed
Merge tag 'mtd/fixes-for-5.19-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux
Pull mtd fixes from Miquel RAynal: "NAND controller fix: - gpmi: Fix busy timeout setting (wrong calculation) NAND chip driver fix: - Thoshiba: Revert the commit introducing support for a chip that might have been counterfeit" * tag 'mtd/fixes-for-5.19-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux: mtd: rawnand: gpmi: Fix setting busy timeout setting Revert "mtd: rawnand: add support for Toshiba TC58NVG0S3HTA00 NAND flash"
2 parents 4039974 + 06781a5 commit 6a0a17e

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ static int gpmi_nfc_compute_timings(struct gpmi_nand_data *this,
890890
hw->timing0 = BF_GPMI_TIMING0_ADDRESS_SETUP(addr_setup_cycles) |
891891
BF_GPMI_TIMING0_DATA_HOLD(data_hold_cycles) |
892892
BF_GPMI_TIMING0_DATA_SETUP(data_setup_cycles);
893-
hw->timing1 = BF_GPMI_TIMING1_BUSY_TIMEOUT(busy_timeout_cycles * 4096);
893+
hw->timing1 = BF_GPMI_TIMING1_BUSY_TIMEOUT(DIV_ROUND_UP(busy_timeout_cycles, 4096));
894894

895895
/*
896896
* Derive NFC ideal delay from {3}:

drivers/mtd/nand/raw/nand_ids.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ struct nand_flash_dev nand_flash_ids[] = {
2929
{"TC58NVG0S3E 1G 3.3V 8-bit",
3030
{ .id = {0x98, 0xd1, 0x90, 0x15, 0x76, 0x14, 0x01, 0x00} },
3131
SZ_2K, SZ_128, SZ_128K, 0, 8, 64, NAND_ECC_INFO(1, SZ_512), },
32-
{"TC58NVG0S3HTA00 1G 3.3V 8-bit",
33-
{ .id = {0x98, 0xf1, 0x80, 0x15} },
34-
SZ_2K, SZ_128, SZ_128K, 0, 4, 128, NAND_ECC_INFO(8, SZ_512), },
3532
{"TC58NVG2S0F 4G 3.3V 8-bit",
3633
{ .id = {0x98, 0xdc, 0x90, 0x26, 0x76, 0x15, 0x01, 0x08} },
3734
SZ_4K, SZ_512, SZ_256K, 0, 8, 224, NAND_ECC_INFO(4, SZ_512) },

0 commit comments

Comments
 (0)