The relevant informations which command is sent for which page is already contained in the informations imx_nand_command() prints, so remove the debug prints in send_cmd and send_addr (which only exist for v1/v2 controllers, not for v3). Also use dev_dbg to print debug informations instead of MTD_DEBUG. Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- drivers/mtd/nand/nand_imx.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/mtd/nand/nand_imx.c b/drivers/mtd/nand/nand_imx.c index 77c0ad8..590d7fe 100644 --- a/drivers/mtd/nand/nand_imx.c +++ b/drivers/mtd/nand/nand_imx.c @@ -261,8 +261,6 @@ static void send_cmd_v3(struct imx_nand_host *host, uint16_t cmd) static void send_cmd_v1_v2(struct imx_nand_host *host, u16 cmd) { - MTD_DEBUG(MTD_DEBUG_LEVEL3, "send_cmd(host, 0x%x)\n", cmd); - writew(cmd, host->regs + NFC_V1_V2_FLASH_CMD); writew(NFC_CMD, host->regs + NFC_V1_V2_CONFIG2); @@ -301,8 +299,6 @@ static void send_addr_v3(struct imx_nand_host *host, uint16_t addr) static void send_addr_v1_v2(struct imx_nand_host *host, u16 addr) { - MTD_DEBUG(MTD_DEBUG_LEVEL3, "send_addr(host, 0x%x %d)\n", addr, islast); - writew(addr, host->regs + NFC_V1_V2_FLASH_ADDR); writew(NFC_ADDR, host->regs + NFC_V1_V2_CONFIG2); @@ -891,7 +887,7 @@ static void imx_nand_command(struct mtd_info *mtd, unsigned command, struct nand_chip *nand_chip = mtd->priv; struct imx_nand_host *host = nand_chip->priv; - MTD_DEBUG(MTD_DEBUG_LEVEL3, + dev_dbg(host->dev, "imx_nand_command (cmd = 0x%x, col = 0x%x, page = 0x%x)\n", command, column, page_addr); -- 2.7.0 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox