Re: [PATCH V4 2/2] mtd: rawnand: qcom: set BAM mode only if not set already

From: Miquel Raynal
Date: Mon Jun 15 2020 - 04:59:52 EST


On Fri, 2020-06-12 at 07:58:16 UTC, Sivaprakash Murugesan wrote:
> BAM is DMA controller on QCOM ipq platforms, BAM mode on NAND driver
> is set by writing BAM_MODE_EN bit on NAND_CTRL register.
>
> NAND_CTRL is an operational register and in BAM mode operational
> registers are read only.
>
> So, before enabling BAM mode by writing the NAND_CTRL register, check
> if BAM mode was already enabled by the bootloader, and enable BAM mode
> only if it is not enabled already.
>
> Signed-off-by: Sivaprakash Murugesan <sivaprak@xxxxxxxxxxxxxx>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel