Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933051AbcKLV4Y (ORCPT ); Sat, 12 Nov 2016 16:56:24 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:36091 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932898AbcKLV4U (ORCPT ); Sat, 12 Nov 2016 16:56:20 -0500 Subject: Re: [PATCH 11/11] mtd: nand: denali: remove debug lines of __FILE__, __LINE__, __func__ To: Masahiro Yamada , linux-mtd@lists.infradead.org References: <1478666130-13413-1-git-send-email-yamada.masahiro@socionext.com> <1478666130-13413-12-git-send-email-yamada.masahiro@socionext.com> Cc: Alan Cox , David Woodhouse , Jason Roberts , Chuanxiao Dong , Dinh Nguyen , linux-kernel@vger.kernel.org, Boris Brezillon , Brian Norris , Richard Weinberger , David Woodhouse , Cyrille Pitchen From: Marek Vasut Message-ID: <360ae82b-d601-d54a-a64e-fcc41b1675b4@gmail.com> Date: Sat, 12 Nov 2016 22:41:41 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 MIME-Version: 1.0 In-Reply-To: <1478666130-13413-12-git-send-email-yamada.masahiro@socionext.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2059 Lines: 63 On 11/09/2016 05:35 AM, Masahiro Yamada wrote: > Such debug lines might be useful when debugging the driver first, > but should be deleted from the upstream code. > > Signed-off-by: Masahiro Yamada Reviewed-by: Marek Vasut > --- > > drivers/mtd/nand/denali.c | 12 ------------ > 1 file changed, 12 deletions(-) > > diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c > index 14e66ab..e32e13c 100644 > --- a/drivers/mtd/nand/denali.c > +++ b/drivers/mtd/nand/denali.c > @@ -181,9 +181,6 @@ static uint16_t denali_nand_reset(struct denali_nand_info *denali) > { > int i; > > - dev_dbg(denali->dev, "%s, Line %d, Function: %s\n", > - __FILE__, __LINE__, __func__); > - > for (i = 0; i < denali->max_banks; i++) > iowrite32(INTR_STATUS__RST_COMP | INTR_STATUS__TIME_OUT, > denali->flash_reg + INTR_STATUS(i)); > @@ -233,9 +230,6 @@ static void nand_onfi_timing_set(struct denali_nand_info *denali, > uint16_t acc_clks; > uint16_t addr_2_data, re_2_we, re_2_re, we_2_re, cs_cnt; > > - dev_dbg(denali->dev, "%s, Line %d, Function: %s\n", > - __FILE__, __LINE__, __func__); > - > en_lo = CEIL_DIV(Trp[mode], CLK_X); > en_hi = CEIL_DIV(Treh[mode], CLK_X); > #if ONFI_BLOOM_TIME > @@ -480,9 +474,6 @@ static uint16_t denali_nand_timing_set(struct denali_nand_info *denali) > uint8_t maf_id, device_id; > int i; > > - dev_dbg(denali->dev, "%s, Line %d, Function: %s\n", > - __FILE__, __LINE__, __func__); > - > /* > * Use read id method to get device ID and other params. > * For some NAND chips, controller can't report the correct > @@ -537,9 +528,6 @@ static uint16_t denali_nand_timing_set(struct denali_nand_info *denali) > static void denali_set_intr_modes(struct denali_nand_info *denali, > uint16_t INT_ENABLE) > { > - dev_dbg(denali->dev, "%s, Line %d, Function: %s\n", > - __FILE__, __LINE__, __func__); > - > if (INT_ENABLE) > iowrite32(1, denali->flash_reg + GLOBAL_INT_ENABLE); > else > -- Best regards, Marek Vasut