On 3/24/20 1:44 AM, Marek Vasut wrote:
On 3/23/20 3:58 PM, Christophe Kerello wrote:
[...]
@@ -531,11 +515,11 @@ static int stm32_fmc2_nfc_bch_correct(struct nand_chip *chip, u8 *dat,
return -ETIMEDOUT;
}
- ecc_sta[0] = readl_relaxed(nfc->io_base + FMC2_BCHDSR0);
- ecc_sta[1] = readl_relaxed(nfc->io_base + FMC2_BCHDSR1);
- ecc_sta[2] = readl_relaxed(nfc->io_base + FMC2_BCHDSR2);
- ecc_sta[3] = readl_relaxed(nfc->io_base + FMC2_BCHDSR3);
- ecc_sta[4] = readl_relaxed(nfc->io_base + FMC2_BCHDSR4);
+ regmap_read(nfc->regmap, FMC2_BCHDSR0, &ecc_sta[0]);
+ regmap_read(nfc->regmap, FMC2_BCHDSR1, &ecc_sta[1]);
+ regmap_read(nfc->regmap, FMC2_BCHDSR2, &ecc_sta[2]);
+ regmap_read(nfc->regmap, FMC2_BCHDSR3, &ecc_sta[3]);
+ regmap_read(nfc->regmap, FMC2_BCHDSR4, &ecc_sta[4]);
Would regmap_bulk_read() work here ?
Hi Marek,
Yes, regmap_bulk_read can be used. It will be done on V2.
Regards,
Christophe Kerello.
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/