public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Boris Brezillon <boris.brezillon@free-electrons.com>
To: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Marek Vasut <marek.vasut@gmail.com>,
	linux-mtd@lists.infradead.org, Alan Cox <alan@linux.intel.com>,
	David Woodhouse <David.Woodhouse@intel.com>,
	Jason Roberts <jason.e.roberts@intel.com>,
	Chuanxiao Dong <chuanxiao.dong@intel.com>,
	Dinh Nguyen <dinguyen@altera.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Brian Norris <computersforpeace@gmail.com>,
	Richard Weinberger <richard@nod.at>,
	David Woodhouse <dwmw2@infradead.org>,
	Cyrille Pitchen <cyrille.pitchen@atmel.com>
Subject: Re: [PATCH 05/11] mtd: nand: denali: remove "Spectra:" prefix from printk strings
Date: Sat, 19 Nov 2016 09:25:30 +0100	[thread overview]
Message-ID: <20161119092530.18bd2516@bbrezillon> (raw)
In-Reply-To: <CAK7LNAQYAcGcXnwgKYohgyDNN=5S3czCbDm7enKnVUBVhf3T8g@mail.gmail.com>

On Fri, 18 Nov 2016 17:42:55 +0900
Masahiro Yamada <yamada.masahiro@socionext.com> wrote:

> Hi Marek,
> 
> 
> 2016-11-13 6:35 GMT+09:00 Marek Vasut <marek.vasut@gmail.com>:
> > On 11/09/2016 05:35 AM, Masahiro Yamada wrote:  
> >> As far as I understood from the Kconfig menu deleted by commit
> >> be7f39c5ecf5 ("Staging: delete spectra driver"), the "Spectra" is
> >> specific to Intel Moorestown Platform.
> >>
> >> The Denali NAND controller IP is used for various SoCs such as
> >> Altera SOCFPGA, Socionext UniPhier, etc.  The platform specific
> >> strings are not preferred in this driver.
> >>
> >> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>  
> >
> > Reviewed-by: Marek Vasut <marek.vasut@gmail.com>
> >  
> >> ---
> >>
> >> As an ARM-SoC developer, I only need denali.c and denali_dt.c.
> >>
> >> I see some "Spectra:" in drivers/mtd/nand/denali_pci.c as well.
> >> I was not quite sure if they are needed or not.
> >> If desired, I can update this patch to remove them too.  
> >
> > Is anyone even using Denali on Intel now ?
> >  
> >>  drivers/mtd/nand/denali.c | 11 +++++------
> >>  1 file changed, 5 insertions(+), 6 deletions(-)
> >>
> >> diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c
> >> index 80d3e26..78d795b 100644
> >> --- a/drivers/mtd/nand/denali.c
> >> +++ b/drivers/mtd/nand/denali.c
> >> @@ -402,7 +402,7 @@ static void get_hynix_nand_para(struct denali_nand_info *denali,
> >>               break;
> >>       default:
> >>               dev_warn(denali->dev,
> >> -                      "Spectra: Unknown Hynix NAND (Device ID: 0x%x).\n"
> >> +                      "Unknown Hynix NAND (Device ID: 0x%x).\n"
> >>                        "Will use default parameter values instead.\n",
> >>                        device_id);
> >>       }
> >> @@ -1458,7 +1458,7 @@ int denali_init(struct denali_nand_info *denali)
> >>        */
> >>       if (request_irq(denali->irq, denali_isr, IRQF_SHARED,
> >>                       DENALI_NAND_NAME, denali)) {
> >> -             pr_err("Spectra: Unable to allocate IRQ\n");
> >> +             dev_err(denali->dev, "Unable to request IRQ\n");
> >>               return -ENODEV;
> >>       }
> >>
> >> @@ -1495,7 +1495,7 @@ int denali_init(struct denali_nand_info *denali)
> >>       /* Is 32-bit DMA supported? */
> >>       ret = dma_set_mask(denali->dev, DMA_BIT_MASK(32));
> >>       if (ret) {
> >> -             pr_err("Spectra: no usable DMA configuration\n");
> >> +             dev_err(denali->dev, "no usable DMA configuration\n");
> >>               goto failed_req_irq;
> >>       }
> >>
> >> @@ -1503,7 +1503,7 @@ int denali_init(struct denali_nand_info *denali)
> >>                            mtd->writesize + mtd->oobsize,
> >>                            DMA_BIDIRECTIONAL);
> >>       if (dma_mapping_error(denali->dev, denali->buf.dma_buf)) {
> >> -             dev_err(denali->dev, "Spectra: failed to map DMA buffer\n");
> >> +             dev_err(denali->dev, "failed to map DMA buffer\n");  
> >
> > Nit: For consistency's sake, use Failed with capital F . Fix the "No
> > usable DMA ..." too.  
> 
> 
> Even if we fix those two, we still have some more printk strings
> that start with a lower case.
> 
> 
> line 177:  dev_err(denali->dev, "reset bank failed.\n");
> 
> line 699:  pr_err("timeout occurred, status = 0x%x, mask = 0x%x\n",
> 
> line 863:  dev_err(denali->dev, "unable to send pipeline command\n");
> 
> line 1074:  dev_err(denali->dev, "timeout on write_page (type = %d)\n",
> 
> line 1309:  pr_err(": unsupported command received 0x%x\n", cmd);
> 
> 
> 
> If you say "consistency's sake" and
> you are a big fan of capital letters instead of lower cases,
> will you send a patch that touches those globally?
> 
> 
> Your comments against this series are just about
> "upper cases vs lower cases".

It's not like your series was doing useful things either ;-), all I see
is a bunch of cleanup and cosmetic changes. I'm perfectly fine taking
the series, but Marek comments about 'Upper case vs Lower case' is
perfectly valid in regards to this kind of changes.

> 
> If I get more useful comments, I am happy to send v2.
> 
> But, at this moment, I see no good reason for v2
> because changing those two lines does not give us any consistency.
> 
> 

  parent reply	other threads:[~2016-11-19  8:25 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-09  4:35 [PATCH 00/11] mtd: nand: denali: first round of cleanups of Denali NAND driver Masahiro Yamada
2016-11-09  4:35 ` [PATCH 01/11] mtd: nand: denali: remove unneeded <linux/slab.h> includes Masahiro Yamada
2016-11-12 21:28   ` Marek Vasut
2016-11-09  4:35 ` [PATCH 02/11] mtd: nand: denali: remove unused struct member denali_nand_info::idx Masahiro Yamada
2016-11-12 21:29   ` Marek Vasut
2016-11-09  4:35 ` [PATCH 03/11] mtd: nand: denali: remove bogus comment about interrupt handler setup Masahiro Yamada
2016-11-12 21:29   ` Marek Vasut
2016-11-09  4:35 ` [PATCH 04/11] mtd: nand: denali: remove detect_partition_feature() Masahiro Yamada
2016-11-12 21:31   ` Marek Vasut
2016-11-09  4:35 ` [PATCH 05/11] mtd: nand: denali: remove "Spectra:" prefix from printk strings Masahiro Yamada
2016-11-12 21:35   ` Marek Vasut
2016-11-15  2:32     ` Masahiro Yamada
2016-11-18  8:42     ` Masahiro Yamada
2016-11-18  8:49       ` Marek Vasut
2016-11-19  8:25       ` Boris Brezillon [this message]
2016-11-09  4:35 ` [PATCH 06/11] mtd: nand: denali: remove unused struct member totalblks, blksperchip Masahiro Yamada
2016-11-12 21:35   ` Marek Vasut
2016-11-09  4:35 ` [PATCH 07/11] mtd: nand: denali: use managed devm_irq_request() Masahiro Yamada
2016-11-12 21:38   ` Marek Vasut
2016-11-09  4:35 ` [PATCH 08/11] mtd: nand: denali: return error code from devm_request_irq() on error Masahiro Yamada
2016-11-12 21:39   ` Marek Vasut
2016-11-09  4:35 ` [PATCH 09/11] mtd: nand: denali: return error code from nand_scan_ident/tail " Masahiro Yamada
2016-11-12 21:40   ` Marek Vasut
2016-11-09  4:35 ` [PATCH 10/11] mtd: nand: denali: remove unneeded parentheses Masahiro Yamada
2016-11-12 21:41   ` Marek Vasut
2016-11-09  4:35 ` [PATCH 11/11] mtd: nand: denali: remove debug lines of __FILE__, __LINE__, __func__ Masahiro Yamada
2016-11-12 21:41   ` Marek Vasut
2016-11-12 21:41 ` [PATCH 00/11] mtd: nand: denali: first round of cleanups of Denali NAND driver Marek Vasut
2016-11-19  8:30 ` Boris Brezillon
2016-11-19 16:15   ` Masahiro Yamada
2016-11-19 18:26     ` Boris Brezillon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161119092530.18bd2516@bbrezillon \
    --to=boris.brezillon@free-electrons.com \
    --cc=David.Woodhouse@intel.com \
    --cc=alan@linux.intel.com \
    --cc=chuanxiao.dong@intel.com \
    --cc=computersforpeace@gmail.com \
    --cc=cyrille.pitchen@atmel.com \
    --cc=dinguyen@altera.com \
    --cc=dwmw2@infradead.org \
    --cc=jason.e.roberts@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=marek.vasut@gmail.com \
    --cc=richard@nod.at \
    --cc=yamada.masahiro@socionext.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox