Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1364691
| From | Rob Herring <robh@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] mtd: nand: denali: allow to override max_banks from DT property |
| Date | 2016-03-25 15:40 +0100 |
| Message-ID | <rgB46-2Zh-5@gated-at.bofh.it> (permalink) |
| References | <rgcyK-2B9-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Mar 24, 2016 at 09:24:37PM +0900, Masahiro Yamada wrote:
> Commit 271707b1d817 ("mtd: nand: denali: max_banks calculation
> changed in revision 5.1") supported the new encoding of the "n_banks"
> bits of the "features" register, but there is an unfortunate case
> that is not covered by that commit.
>
> Panasonic (its System LSI division is now Socionext) bought several
> versions of this IP. The IP released for Panasonic around Feb. 2012
> is revision 5 and uses the old encoding for n_banks (2 << n_banks).
> While the one released around Nov. 2012 is also revision 5, but it
> uses the new encoding (1 << n_banks).
>
> The revision register cannot distinguish these two incompatible
> hardware. I guess this IP series is not well-organized. I could not
> find any alternative but giving max_banks from DT property.
>
> This commit works around the problem by allowing DT to set the
> max_banks forcibly. Of course, this DT property can be optional if
> the auto detection based on the hardware registers works well.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> ---
>
> Documentation/devicetree/bindings/mtd/denali-nand.txt | 4 ++++
Acked-by: Rob Herring <robh@kernel.org>
> drivers/mtd/nand/denali.c | 3 ++-
> drivers/mtd/nand/denali_dt.c | 3 +++
> 3 files changed, 9 insertions(+), 1 deletion(-)
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] mtd: nand: denali: allow to override max_banks from DT property Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-03-24 13:30 +0100
Re: [PATCH] mtd: nand: denali: allow to override max_banks from DT property Rob Herring <robh@kernel.org> - 2016-03-25 15:40 +0100
Re: [PATCH] mtd: nand: denali: allow to override max_banks from DT property Boris Brezillon <boris.brezillon@free-electrons.com> - 2016-03-25 15:50 +0100
Re: [PATCH] mtd: nand: denali: allow to override max_banks from DT property Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-03-26 05:30 +0100
Re: [PATCH] mtd: nand: denali: allow to override max_banks from DT property Boris Brezillon <boris.brezillon@free-electrons.com> - 2016-03-29 10:00 +0200
Re: [PATCH] mtd: nand: denali: allow to override max_banks from DT property Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-04-02 07:20 +0200
Re: [PATCH] mtd: nand: denali: allow to override max_banks from DT property Boris Brezillon <boris.brezillon@free-electrons.com> - 2016-04-02 16:10 +0200
csiph-web