From mboxrd@z Thu Jan 1 00:00:00 1970 From: computersforpeace@gmail.com (Brian Norris) Date: Mon, 20 Jul 2015 10:46:18 -0700 Subject: [PATCH v5 1/2] mtd: nand: sunxi: Replace failsafe timing cfg with calculated value In-Reply-To: <1435309211-15236-1-git-send-email-r.spliet@ultimaker.com> References: <1435309211-15236-1-git-send-email-r.spliet@ultimaker.com> Message-ID: <20150720174618.GF24125@google.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Fri, Jun 26, 2015 at 11:00:10AM +0200, Roy Spliet wrote: > The TIMING_CFG register was previously statically set to a magic value > (extracted from Allwinner's BSP) when initializing the NAND controller. > Now that we have more details about the TIMING_CFG register layout > (extracted from the A83 user manual) we can dynamically calculate the > appropriate value for each NAND chip and set it when selecting the > chip. > > Signed-off-by: Roy Spliet > Acked-by: Boris Brezillon > > --- > V2: > - Fix crippled comments > > V3: > - Warn for invalid timings > - Style > > V4: > - Make better use of return types > - Style and comments > - Remove superfluous initialisation > > V5: > - Tidy up macros Pushed both to l2-mtd.git. Thanks! Brian