Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1630136 > unrolled thread

Re: [PATCH v3 1/3] mtd: nand: Cleanup/rework the atmel_nand driver

Started byBrian Norris <computersforpeace@gmail.com>
First post2017-04-25 03:10 +0200
Last post2017-04-25 09:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v3 1/3] mtd: nand: Cleanup/rework the atmel_nand driver Brian Norris <computersforpeace@gmail.com> - 2017-04-25 03:10 +0200
    Re: [PATCH v3 1/3] mtd: nand: Cleanup/rework the atmel_nand driver Boris Brezillon <boris.brezillon@free-electrons.com> - 2017-04-25 09:00 +0200

#1630136 — Re: [PATCH v3 1/3] mtd: nand: Cleanup/rework the atmel_nand driver

FromBrian Norris <computersforpeace@gmail.com>
Date2017-04-25 03:10 +0200
SubjectRe: [PATCH v3 1/3] mtd: nand: Cleanup/rework the atmel_nand driver
Message-ID<tzX9n-6aR-7@gated-at.bofh.it>
On Thu, Mar 16, 2017 at 09:02:40AM +0100, Boris Brezillon wrote:

> diff --git a/drivers/mtd/nand/atmel/nand-controller.c b/drivers/mtd/nand/atmel/nand-controller.c
> new file mode 100644
> index 000000000000..f71b9e5d7d9d
> --- /dev/null
> +++ b/drivers/mtd/nand/atmel/nand-controller.c
> @@ -0,0 +1,2198 @@
[...]

> +static int
> +atmel_hsmc_nand_controller_legacy_init(struct atmel_hsmc_nand_controller *nc)
> +{
> +	struct regmap_config regmap_conf = {
> +		.reg_bits = 32,
> +		.val_bits = 32,
> +		.reg_stride = 4,
> +		.val_bits = 32,

You assigned val_bits twice. Is that just a harmless mistake, or did you
mean to set something else?

(sparse and other tools complain about this)

> +	};


Brian

[toc] | [next] | [standalone]


#1630229

FromBoris Brezillon <boris.brezillon@free-electrons.com>
Date2017-04-25 09:00 +0200
Message-ID<tA2C6-1bC-19@gated-at.bofh.it>
In reply to#1630136
On Mon, 24 Apr 2017 18:09:30 -0700
Brian Norris <computersforpeace@gmail.com> wrote:

> On Thu, Mar 16, 2017 at 09:02:40AM +0100, Boris Brezillon wrote:
> 
> > diff --git a/drivers/mtd/nand/atmel/nand-controller.c b/drivers/mtd/nand/atmel/nand-controller.c
> > new file mode 100644
> > index 000000000000..f71b9e5d7d9d
> > --- /dev/null
> > +++ b/drivers/mtd/nand/atmel/nand-controller.c
> > @@ -0,0 +1,2198 @@  
> [...]
> 
> > +static int
> > +atmel_hsmc_nand_controller_legacy_init(struct atmel_hsmc_nand_controller *nc)
> > +{
> > +	struct regmap_config regmap_conf = {
> > +		.reg_bits = 32,
> > +		.val_bits = 32,
> > +		.reg_stride = 4,
> > +		.val_bits = 32,  
> 
> You assigned val_bits twice. Is that just a harmless mistake, or did you
> mean to set something else?

Nope, I didn't mean to set another field to 32. I'll just apply the fix
you provided.

Thanks,

Boris

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web