On Fri, 17 Aug 2018 10:54:24 +0000 Prabhakar Kushwaha <prabhakar.kushwaha@xxxxxxx> wrote: > Hi Boris, > > I am trying to access NOR flash with ARM running in big-endian mode. But it is causing error as " do_map_probe() failed for type cfi_probe" > > On our platform, The connection between Flash controller and NOR flash is little-endian. > Here, ARM core running in littler endian mode with MTD_CFI_NOSWAP every things work fine. > > if we change ARM mode as big-endian, it start showing error as mentioned above. > Error is same even with MTD_CFI_BE_BYTE_SWAP option. > As per my understanding MTD_CFI_BE_BYTE_SWAP or MTD_CFI_LE_BYTE_SWAP deals with flash controller and flash connection. If it works in little endian, you should enable MTD_CFI_LE_BYTE_SWAP (or add the little-endian prop to the flash node in your DT). > Not sure, if take care of Core endianness also. > > Please suggest!! > > Regards, > Prabhakar > ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/