]> git.karo-electronics.de Git - linux-beck.git/commit
mtd: atmel_nand: check NFC busy flag by HSMC_SR instead of NFC cmd regs
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Thu, 22 Jan 2015 10:21:30 +0000 (18:21 +0800)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 11 Mar 2015 16:49:28 +0000 (09:49 -0700)
commit111573ccd89b67fdef64d945cc0e611df85a6ac8
treeec40f8cf07fb775985097824a95a42f4d04d579c
parent393d23c4e22996ad0c694577927bcf13ba31beda
mtd: atmel_nand: check NFC busy flag by HSMC_SR instead of NFC cmd regs

Currently the driver read NFC command registers to get NFC busy flag.
Actually this flag also can be get by reading HSMC_SR register.

Use the read NFC command registers need mapping a huge memory region.
To save the mapped memory region, we change to check NFC busy flag by
reading HSMC_SR register.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/atmel_nand.c
drivers/mtd/nand/atmel_nand_nfc.h