From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752199AbbI2T5A (ORCPT ); Tue, 29 Sep 2015 15:57:00 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:36200 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751344AbbI2T4v (ORCPT ); Tue, 29 Sep 2015 15:56:51 -0400 Date: Tue, 29 Sep 2015 12:56:48 -0700 From: Brian Norris To: Graham Moore Cc: linux-mtd@lists.infradead.org, David Woodhouse , linux-kernel@vger.kernel.org, Alan Tull , Dinh Nguyen , Yves Vandervennet , Enrico Jorns Subject: Re: [PATCH] mtd: nand: denali: max_banks calculation changed in revision 5.1 Message-ID: <20150929195648.GG31505@google.com> References: <1437489571-916-1-git-send-email-grmoore@opensource.altera.com> <560AA7B6.3010505@opensource.altera.com> <20150929183121.GC31505@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150929183121.GC31505@google.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 29, 2015 at 11:31:21AM -0700, Brian Norris wrote: > On Tue, Sep 29, 2015 at 10:01:10AM -0500, Graham Moore wrote: > > On 07/21/2015 09:39 AM, Graham Moore wrote: > > >diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c > > >index 870c7fc..a98b41e 100644 > > >--- a/drivers/mtd/nand/denali.h > > >+++ b/drivers/mtd/nand/denali.h > > >@@ -178,6 +178,8 @@ > > > > > > #define REVISION 0x370 > > > #define REVISION__VALUE 0xffff > > >+#define MAKE_COMPARABLE_REVISION(x) swab16(x & REVISION__VALUE) > > It's probably best to add parentheses around the 'x'. > > > >+#define REVISION_5_1 0x00000501 > > > > > > #define ONFI_DEVICE_FEATURES 0x380 > > > #define ONFI_DEVICE_FEATURES__VALUE 0x003f > > > > > > > I can fix that up and apply, if no objections. Pushed to l2-mtd.git with that fixup.