diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-03-16 15:26:11 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-03-17 12:05:48 +0100 |
commit | d4d667c0d0b14b9774d3d4af5d55889dcc8091fc (patch) | |
tree | d63a25c63f760d47aa01ebba45f721b55fb53b7a /drivers/mtd/nand/nand_imx.c | |
parent | ba62a5bc7d248fcb8ba1ffffd72708c5ad9b07af (diff) | |
download | barebox-d4d667c0d0b14b9774d3d4af5d55889dcc8091fc.tar.gz barebox-d4d667c0d0b14b9774d3d4af5d55889dcc8091fc.tar.xz |
mtd: nand-imx: remove/replace debug print
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@pengutronix.de>
Diffstat (limited to 'drivers/mtd/nand/nand_imx.c')
-rw-r--r-- | drivers/mtd/nand/nand_imx.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/mtd/nand/nand_imx.c b/drivers/mtd/nand/nand_imx.c index 77c0ad8a8b..590d7fe82a 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); |