Merge tag 'mtd/fixes-for-5.5-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux

Pull MTD fixes from Miquel Raynal:
"Raw NAND:
- GPMI: Fix the suspend/resume

SPI-NOR:
- Fix quad enable on Spansion like flashes
- Fix selection of 4-byte addressing opcodes on Spansion"

* tag 'mtd/fixes-for-5.5-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux:
mtd: rawnand: gpmi: Restore nfc timing setup after suspend/resume
mtd: rawnand: gpmi: Fix suspend/resume problem
mtd: spi-nor: Fix quad enable for Spansion like flashes
mtd: spi-nor: Fix selection of 4-byte addressing opcodes on Spansion

Changed files
+13 -4
drivers
mtd
nand
raw
gpmi-nand
spi-nor
+10 -1
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
··· 148 148 struct resources *r = &this->resources; 149 149 int ret; 150 150 151 + ret = pm_runtime_get_sync(this->dev); 152 + if (ret < 0) 153 + return ret; 154 + 151 155 ret = gpmi_reset_block(r->gpmi_regs, false); 152 156 if (ret) 153 157 goto err_out; ··· 183 179 */ 184 180 writel(BM_GPMI_CTRL1_DECOUPLE_CS, r->gpmi_regs + HW_GPMI_CTRL1_SET); 185 181 186 - return 0; 187 182 err_out: 183 + pm_runtime_mark_last_busy(this->dev); 184 + pm_runtime_put_autosuspend(this->dev); 188 185 return ret; 189 186 } 190 187 ··· 2726 2721 dev_err(this->dev, "Error setting GPMI : %d\n", ret); 2727 2722 return ret; 2728 2723 } 2724 + 2725 + /* Set flag to get timing setup restored for next exec_op */ 2726 + if (this->hw.clk_rate) 2727 + this->hw.must_apply_timings = true; 2729 2728 2730 2729 /* re-init the BCH registers */ 2731 2730 ret = bch_set_geometry(this);
+3 -3
drivers/mtd/spi-nor/spi-nor.c
··· 2124 2124 if (nor->bouncebuf[0] & SR2_QUAD_EN_BIT1) 2125 2125 return 0; 2126 2126 2127 + nor->bouncebuf[0] |= SR2_QUAD_EN_BIT1; 2128 + 2127 2129 return spi_nor_write_16bit_cr_and_check(nor, nor->bouncebuf[0]); 2128 2130 } 2129 2131 ··· 4771 4769 4772 4770 static void spansion_post_sfdp_fixups(struct spi_nor *nor) 4773 4771 { 4774 - struct mtd_info *mtd = &nor->mtd; 4775 - 4776 - if (mtd->size <= SZ_16M) 4772 + if (nor->params.size <= SZ_16M) 4777 4773 return; 4778 4774 4779 4775 nor->flags |= SNOR_F_4B_OPCODES;